Просмотр исходного кода

[游戏][修复]:权重字段添加

release_toaliyun_real
hupeng 7 лет назад
Родитель
Сommit
87e919aaef
2 измененных файлов: 13 добавлений и 0 удалений
  1. +12
    -0
      mallinkService/src/main/java/com/iformall/domain/vo/WxCouponChannelVo.java
  2. +1
    -0
      mallinkService/src/main/java/com/iformall/service/impl/WxGameServiceImpl.java

+ 12
- 0
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") @io.swagger.annotations.ApiModelProperty(value="1.主动领取2.定向投放",name="sendType")
private Integer sendType; private Integer sendType;



@Transient
private Integer gameWeight;

public Integer getGameWeight() {
return gameWeight;
}

public void setGameWeight(Integer gameWeight) {
this.gameWeight = gameWeight;
}

public Integer getInventory() { public Integer getInventory() {
return inventory; return inventory;
} }


+ 1
- 0
mallinkService/src/main/java/com/iformall/service/impl/WxGameServiceImpl.java Просмотреть файл

@@ -103,6 +103,7 @@ public class WxGameServiceImpl implements WxGameService {


WxCouponChannelVo couponChannelVo = wxCouponChannelsMap.get(couponId); WxCouponChannelVo couponChannelVo = wxCouponChannelsMap.get(couponId);
if (couponChannelVo != null) { if (couponChannelVo != null) {
couponChannelVo.setGameWeight(couponChanObj.getInteger("weight"));
couponIdsList.add(couponChannelVo); couponIdsList.add(couponChannelVo);
} }
} }


Загрузка…
Отмена
Сохранить