|
@@ -33,10 +33,7 @@ import com.kmall.admin.entity.vip.Mall2MemberPointsEntity;
|
|
import com.kmall.admin.entity.vip.Mall2PointsRulesEntity;
|
|
import com.kmall.admin.entity.vip.Mall2PointsRulesEntity;
|
|
import com.kmall.admin.fromcomm.dao.SysConfigDao;
|
|
import com.kmall.admin.fromcomm.dao.SysConfigDao;
|
|
import com.kmall.admin.fromcomm.entity.SysUserEntity;
|
|
import com.kmall.admin.fromcomm.entity.SysUserEntity;
|
|
-import com.kmall.admin.haikong.constant.Constants;
|
|
|
|
-import com.kmall.admin.haikong.constant.HaiKongMemberOrderResendStatusEnum;
|
|
|
|
-import com.kmall.admin.haikong.constant.HaiKongMemberScoreChangeEventEnum;
|
|
|
|
-import com.kmall.admin.haikong.constant.VmcconnectUrlEnum;
|
|
|
|
|
|
+import com.kmall.admin.haikong.constant.*;
|
|
import com.kmall.admin.haikong.dto.*;
|
|
import com.kmall.admin.haikong.dto.*;
|
|
import com.kmall.admin.haikong.utils.ListUtils;
|
|
import com.kmall.admin.haikong.utils.ListUtils;
|
|
import com.kmall.admin.haikong.vo.CalculateOrderDiscountPriceResponseVO;
|
|
import com.kmall.admin.haikong.vo.CalculateOrderDiscountPriceResponseVO;
|
|
@@ -216,10 +213,6 @@ public class OrderServiceImpl implements OrderService {
|
|
|
|
|
|
@Autowired
|
|
@Autowired
|
|
private AddressInfoService addressInfoService;
|
|
private AddressInfoService addressInfoService;
|
|
-
|
|
|
|
-// @Autowired
|
|
|
|
-// private CustomsClearanceTimeliness customsClearanceTimeliness;
|
|
|
|
-
|
|
|
|
@Autowired
|
|
@Autowired
|
|
private HaiKongMemberTemplate haiKongMemberTemplate;
|
|
private HaiKongMemberTemplate haiKongMemberTemplate;
|
|
|
|
|
|
@@ -272,6 +265,12 @@ public class OrderServiceImpl implements OrderService {
|
|
@Autowired
|
|
@Autowired
|
|
private HaiKongMemberScoreChangeRecordService haiKongMemberScoreChangeRecordService;
|
|
private HaiKongMemberScoreChangeRecordService haiKongMemberScoreChangeRecordService;
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
+ * 接口重发信息
|
|
|
|
+ */
|
|
|
|
+ @Autowired
|
|
|
|
+ private HaiKongResendMsgDao haiKongResendMsgDao;
|
|
|
|
+
|
|
@Override
|
|
@Override
|
|
public OrderEntity queryObject(Long id) {
|
|
public OrderEntity queryObject(Long id) {
|
|
return orderDao.queryObject(id);
|
|
return orderDao.queryObject(id);
|
|
@@ -3341,7 +3340,6 @@ public class OrderServiceImpl implements OrderService {
|
|
if (sellVolume.compareTo(Constant.ZERO) < 0) {
|
|
if (sellVolume.compareTo(Constant.ZERO) < 0) {
|
|
sellVolume = Constant.ZERO;
|
|
sellVolume = Constant.ZERO;
|
|
}
|
|
}
|
|
-
|
|
|
|
GoodsEntity goodsEntity = goodsDao.queryObject(orderGoodsEntity.getGoodsId());
|
|
GoodsEntity goodsEntity = goodsDao.queryObject(orderGoodsEntity.getGoodsId());
|
|
if (goodsEntity != null) {
|
|
if (goodsEntity != null) {
|
|
//还原商户商品总库存
|
|
//还原商户商品总库存
|
|
@@ -3354,9 +3352,33 @@ public class OrderServiceImpl implements OrderService {
|
|
}
|
|
}
|
|
//调用免税mall接口
|
|
//调用免税mall接口
|
|
vmcShopMall(order);
|
|
vmcShopMall(order);
|
|
- //调用会员系统积分回退接口
|
|
|
|
|
|
+ //调用会员系统积分全量回退接口
|
|
|
|
+ vipIntegralGoBack(order);
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ * 调用会员系统积分全量回退接口
|
|
|
|
+ * @param order
|
|
|
|
+ * @throws Exception
|
|
|
|
+ */
|
|
|
|
+ private void vipIntegralGoBack(OrderEntity order) throws Exception{
|
|
IntegralGoBackEntity changeRecordEntity = haiKongMemberScoreChangeRecordService.queryIntegralGoBack(order.getOrderSn());
|
|
IntegralGoBackEntity changeRecordEntity = haiKongMemberScoreChangeRecordService.queryIntegralGoBack(order.getOrderSn());
|
|
- haiKongMemberTemplate.rollbackMemberScore(JSON.toJSONString(changeRecordEntity));
|
|
|
|
|
|
+ String responseMsg = haiKongMemberTemplate.rollbackMemberScore(JSON.toJSONString(changeRecordEntity));
|
|
|
|
+ Map<String,Object> res = JSON.parseObject(responseMsg,Map.class);
|
|
|
|
+ if("true".equals(res.get("success"))){
|
|
|
|
+ LOGGER.info("=======> [vipIntegralGoBack-----调用会员系统积分全量回退接口数据]"+responseMsg);
|
|
|
|
+ }else{
|
|
|
|
+ LOGGER.error("=======> [vipIntegralGoBack-----调用会员系统积分全量回退接口异常数据]"+responseMsg);
|
|
|
|
+ HaiKongResendMsgEntity haiKongResendMsgEntity = new HaiKongResendMsgEntity();
|
|
|
|
+ haiKongResendMsgEntity.setOpenId(changeRecordEntity.getOpen_id());
|
|
|
|
+ haiKongResendMsgEntity.setOrderSn(order.getOrderSn());
|
|
|
|
+ haiKongResendMsgEntity.setInterfaceType(HaiKongMemberSystemUrlEnum.ROLLBACK_MEMBER_SCORE.getUrl());
|
|
|
|
+ haiKongResendMsgEntity.setRequestMsg(JSON.toJSONString(changeRecordEntity));
|
|
|
|
+ haiKongResendMsgEntity.setResponseMsg(responseMsg);
|
|
|
|
+ haiKongResendMsgEntity.setIsValid(1);
|
|
|
|
+ haiKongResendMsgDao.saveResendMsg(haiKongResendMsgEntity);
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|