Преглед изворни кода

// verify

release_toaliyun_real
xhxu пре 3 година
родитељ
комит
358aa4da94
1 измењених фајлова са 2 додато и 5 уклоњено
  1. +2
    -5
      mallinkService/src/main/java/com/iformall/service/impl/WxCouponServiceImpl.java

+ 2
- 5
mallinkService/src/main/java/com/iformall/service/impl/WxCouponServiceImpl.java Прегледај датотеку

@@ -436,11 +436,6 @@ public class WxCouponServiceImpl implements WxCouponService {
return resultData;
}
List<JSONObject> merchantParamList = JSONObject.parseArray(record.getMerchantParams(), JSONObject.class);
if(merchantParamList != null && merchantParamList.size() == 1){
record.setMerchantType(EnumCouponMerchantType.ONE_MERCHANT.getCode());
}else if(merchantParamList != null && merchantParamList.size() > 1){
record.setMerchantType(EnumCouponMerchantType.MULTIPLE_MERCHANT.getCode());
}

final IdWorker idWorker = IdWorker.get();
if (record.getId() == null) {
@@ -687,8 +682,10 @@ public class WxCouponServiceImpl implements WxCouponService {
}else if(list.size() > 1){
return new ResultData(ErrorCode.SYS_PARAMETER_ERROR.getCode(), "直连模式多门店券只能包含一个商管商户");
}
record.setMerchantType(EnumCouponMerchantType.MULTIPLE_MERCHANT.getCode());
merchantId = list.get(0);
}else{
record.setMerchantType(EnumCouponMerchantType.ONE_MERCHANT.getCode());
merchantId = merchantParamList.get(0).getLong("id");
}
WxProfitSharingReceiver psReceiverQ = new WxProfitSharingReceiver();


Loading…
Откажи
Сачувај