Browse Source

//spu_sync bug

release_toaliyun_real
xhxu 3 years ago
parent
commit
d2232b2d49
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      mallinkService/src/main/java/com/iformall/service/impl/WxCouponChannelServiceImpl.java

+ 4
- 0
mallinkService/src/main/java/com/iformall/service/impl/WxCouponChannelServiceImpl.java View File

@@ -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){
//查找是否该券 在该频道有其他上架


Loading…
Cancel
Save