|
|
|
@@ -439,6 +439,7 @@ public class WxCouponServiceImpl implements WxCouponService { |
|
|
|
WxCouponMerchant cm = new WxCouponMerchant(); |
|
|
|
WxCouponMerchantDto wxCouponMerchantDto = parseMerchantParam(merchantParam); |
|
|
|
cm.setId(idWorker.nextId()); |
|
|
|
cm.updateTenantInfo(record); |
|
|
|
cm.setMerchantId(wxCouponMerchantDto.getMerchantId()); |
|
|
|
cm.setParameter(wxCouponMerchantDto.getParameter()); |
|
|
|
cm.setProductId(record.getId()); |
|
|
|
@@ -508,12 +509,14 @@ public class WxCouponServiceImpl implements WxCouponService { |
|
|
|
} |
|
|
|
if (merchantParamList != null && merchantParamList.size() > 0) { |
|
|
|
WxCouponMerchant cmParam = new WxCouponMerchant(); |
|
|
|
cmParam.updateTenantInfo(record); |
|
|
|
cmParam.setProductId(record.getId()); |
|
|
|
List<WxCouponMerchant> oldList = wxCouponMerchantMapper.findList(cmParam); |
|
|
|
List<WxCouponMerchantDto> wxCouponMerchantDtoList = new ArrayList<>(); |
|
|
|
merchantParamList.stream().forEach(merchantParam -> { |
|
|
|
WxCouponMerchant cm = new WxCouponMerchant(); |
|
|
|
WxCouponMerchantDto wxCouponMerchantDto = parseMerchantParam(merchantParam); |
|
|
|
cm.updateTenantInfo(record); |
|
|
|
cm.setMerchantId(wxCouponMerchantDto.getMerchantId()); |
|
|
|
cm.setProductId(record.getId()); |
|
|
|
WxCouponMerchant rcm = wxCouponMerchantMapper.selectOne(new QueryWrapper<>(cm)); |
|
|
|
|