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