Parcourir la source

//spu_sync bug

release_toaliyun_real
xhxu il y a 3 ans
Parent
révision
d2232b2d49
1 fichiers modifiés avec 4 ajouts et 0 suppressions
  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 Voir le fichier

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


Chargement…
Annuler
Enregistrer