From a0908ea52722e32bf509b28ee3ceca371dfaa767 Mon Sep 17 00:00:00 2001 From: winter Date: Thu, 12 May 2022 11:17:00 +0800 Subject: [PATCH] fix bug --- .../com/iformall/domain/vo/WxCouponChannelVo.java | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/mallinkService/src/main/java/com/iformall/domain/vo/WxCouponChannelVo.java b/mallinkService/src/main/java/com/iformall/domain/vo/WxCouponChannelVo.java index f4d6e19a7..24603537c 100644 --- a/mallinkService/src/main/java/com/iformall/domain/vo/WxCouponChannelVo.java +++ b/mallinkService/src/main/java/com/iformall/domain/vo/WxCouponChannelVo.java @@ -174,17 +174,8 @@ public class WxCouponChannelVo extends WxCouponChannel implements Serializable { */ public void setWxCoupon(WxCoupon c){ if(c != null){ - if(this.getChannelStock() == null){ - this.setRemainInventory(c.getRemainInventory()); - }else{ - this.setRemainInventory(this.getChannelStock()); - } - if(this.getChannelPrice() == null){ - this.setSalePrice(c.getSalePrice()); - }else{ - this.setSalePrice(this.getChannelPrice()); - } - + this.setRemainInventory(c.getRemainInventory()); + this.setSalePrice(c.getSalePrice()); this.setInventory(c.getInventory()); this.setCoverImg(c.getCoverImg()); this.setSubTitle(c.getSubTitle());