Explorar el Código

fix

release_toaliyun_real
winter hace 4 meses
padre
commit
b00ed84c8f
Se han modificado 1 ficheros con 11 adiciones y 2 borrados
  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 Ver fichero

@@ -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){


Cargando…
Cancelar
Guardar