|
|
|
@@ -144,6 +144,7 @@ public class WxCouponChannelServiceImpl implements WxCouponChannelService { |
|
|
|
}else{ |
|
|
|
WxCouponChannel old = getById(record.getId(),record.getTenantId()); |
|
|
|
wxCoupon = wxCouponService.getById(old.getCouponId(),old.getTenantId()); |
|
|
|
|
|
|
|
if(EnumCouponChannelStatus.STATUS_TAKE_OFFF.getCode().equals(old.getStatus()) |
|
|
|
&& EnumCouponChannelStatus.STATUS_THROW_IN.getCode().equals(record.getStatus())){ |
|
|
|
if(record.getTargetAd() == null){ |
|
|
|
@@ -168,6 +169,9 @@ public class WxCouponChannelServiceImpl implements WxCouponChannelService { |
|
|
|
return new ResultData(ErrorCode.SYS_PARAMETER_ERROR.getCode(),"该券未提交审核或审核未通过"); |
|
|
|
} |
|
|
|
} |
|
|
|
if(record.getCouponId() == null){ |
|
|
|
record.setCouponId(wxCoupon.getId()); |
|
|
|
} |
|
|
|
|
|
|
|
if(isThrowIn){ |
|
|
|
//查找是否该券 在该频道有其他上架 |
|
|
|
|