Sfoglia il codice sorgente

fix

release_toaliyun_real
winter 4 mesi fa
parent
commit
b00ed84c8f
1 ha cambiato i file con 11 aggiunte e 2 eliminazioni
  1. +11
    -2
      mallinkService/src/main/java/com/iformall/service/impl/WxCouponChannelServiceImpl.java

+ 11
- 2
mallinkService/src/main/java/com/iformall/service/impl/WxCouponChannelServiceImpl.java Vedi File

@@ -776,8 +776,17 @@ public class WxCouponChannelServiceImpl implements WxCouponChannelService {
wxCouponChannel.setSubBusiness(wxCoupon.getSubBusiness());
wxCouponChannel.setTitle(wxCoupon.getTitle());
wxCouponChannel.setTtSpuId(wxCoupon.getGoodsId());
wxCouponChannel.setChannelPrice(channelPrice);
wxCouponChannel.setChannelStock(channelStock);
if (null != channelPrice) {
wxCouponChannel.setChannelPrice(channelPrice);
}else {
wxCouponChannel.setChannelPrice(wxCoupon.getSalePrice());
}
if (null != channelStock) {
wxCouponChannel.setChannelStock(channelStock);
}else {
wxCouponChannel.setChannelStock(wxCoupon.getRemainInventory());
}
ResultData resultData = saveOrUpdate(wxCouponChannel);
WxCouponChannel channel = (WxCouponChannel)resultData.data;
if(channel != null){


Caricamento…
Annulla
Salva