Przeglądaj źródła

fix

release_toaliyun_real
winter 3 miesięcy temu
rodzic
commit
ddafb777fc
1 zmienionych plików z 16 dodań i 2 usunięć
  1. +16
    -2
      mallinkService/src/main/java/com/iformall/service/impl/WxCouponChannelServiceImpl.java

+ 16
- 2
mallinkService/src/main/java/com/iformall/service/impl/WxCouponChannelServiceImpl.java Wyświetl plik

@@ -776,8 +776,22 @@ 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 != channelId && channelId.intValue() == EnumCouponChannelType.COUPON_CHANNEL_ID_WXLIVE_LIST.getCode().intValue()) {
if (null != channelPrice) {
wxCouponChannel.setChannelPrice(channelPrice);
}else {
wxCouponChannel.setChannelPrice(wxCoupon.getSalePrice());
}
if (null != channelStock) {
wxCouponChannel.setChannelStock(channelStock);
}else {
wxCouponChannel.setChannelStock(wxCoupon.getRemainInventory());
}
}else {
wxCouponChannel.setChannelPrice(channelPrice);
wxCouponChannel.setChannelStock(channelStock);
}
ResultData resultData = saveOrUpdate(wxCouponChannel);
WxCouponChannel channel = (WxCouponChannel)resultData.data;


Ładowanie…
Anuluj
Zapisz