From 87e919aaef52370977b67efa08f4836fd03c8c49 Mon Sep 17 00:00:00 2001 From: hupeng Date: Fri, 19 Oct 2018 21:55:11 +0800 Subject: [PATCH] =?UTF-8?q?[=E6=B8=B8=E6=88=8F][=E4=BF=AE=E5=A4=8D]:?= =?UTF-8?q?=E6=9D=83=E9=87=8D=E5=AD=97=E6=AE=B5=E6=B7=BB=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/iformall/domain/vo/WxCouponChannelVo.java | 12 ++++++++++++ .../com/iformall/service/impl/WxGameServiceImpl.java | 1 + 2 files changed, 13 insertions(+) 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 0b787d7c5..76192daef 100644 --- a/mallinkService/src/main/java/com/iformall/domain/vo/WxCouponChannelVo.java +++ b/mallinkService/src/main/java/com/iformall/domain/vo/WxCouponChannelVo.java @@ -71,6 +71,18 @@ public class WxCouponChannelVo extends WxCouponChannel implements Serializable { @io.swagger.annotations.ApiModelProperty(value="1.主动领取2.定向投放",name="sendType") private Integer sendType; + + @Transient + private Integer gameWeight; + + public Integer getGameWeight() { + return gameWeight; + } + + public void setGameWeight(Integer gameWeight) { + this.gameWeight = gameWeight; + } + public Integer getInventory() { return inventory; } diff --git a/mallinkService/src/main/java/com/iformall/service/impl/WxGameServiceImpl.java b/mallinkService/src/main/java/com/iformall/service/impl/WxGameServiceImpl.java index ffbafb15c..ad4bf393f 100644 --- a/mallinkService/src/main/java/com/iformall/service/impl/WxGameServiceImpl.java +++ b/mallinkService/src/main/java/com/iformall/service/impl/WxGameServiceImpl.java @@ -103,6 +103,7 @@ public class WxGameServiceImpl implements WxGameService { WxCouponChannelVo couponChannelVo = wxCouponChannelsMap.get(couponId); if (couponChannelVo != null) { + couponChannelVo.setGameWeight(couponChanObj.getInteger("weight")); couponIdsList.add(couponChannelVo); } }