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

[发券][新增]:发券列表增加用户限领字段

release_toaliyun_real
hupeng 7 лет назад
Родитель
Сommit
6ef51c92b3
2 измененных файлов: 15 добавлений и 1 удалений
  1. +13
    -0
      mallinkService/src/main/java/com/iformall/domain/vo/WxCouponSendVo.java
  2. +2
    -1
      mallinkService/src/main/resources/mapper/WxCouponSendMapper.xml

+ 13
- 0
mallinkService/src/main/java/com/iformall/domain/vo/WxCouponSendVo.java Просмотреть файл

@@ -21,6 +21,11 @@ public class WxCouponSendVo extends WxCouponSend implements Serializable{
/*剩余库存**/
@io.swagger.annotations.ApiModelProperty(value="剩余库存",name="remainInventory")
private Integer remainInventory;

/**限领张数**/
@io.swagger.annotations.ApiModelProperty(value="限领张数",name="useLimitQuantity")
private Integer useLimitQuantity;

/*总库存**/
@io.swagger.annotations.ApiModelProperty(value="总库存",name="inventory")
private Integer inventory;
@@ -67,4 +72,12 @@ public class WxCouponSendVo extends WxCouponSend implements Serializable{
public void setMerchantName(String merchantName) {
this.merchantName = merchantName;
}

public Integer getUseLimitQuantity() {
return useLimitQuantity;
}

public void setUseLimitQuantity(Integer useLimitQuantity) {
this.useLimitQuantity = useLimitQuantity;
}
}

+ 2
- 1
mallinkService/src/main/resources/mapper/WxCouponSendMapper.xml Просмотреть файл

@@ -15,6 +15,7 @@
<result column="merchant_name" jdbcType="VARCHAR" property="merchantName" />
<result column="remain_inventory" jdbcType="INTEGER" property="remainInventory"/>
<result column="inventory" jdbcType="INTEGER" property="inventory"/>
<result column="use_limit_quantity" jdbcType="INTEGER" property="useLimitQuantity"/>
<result column="valid_start_date" jdbcType="TIMESTAMP" property="validStartDate"/>
<result column="valid_end_date" jdbcType="TIMESTAMP" property="validEndDate"/>
</resultMap>
@@ -28,7 +29,7 @@
else
'[多商户通用]'
end) as merchant_name,
c.remain_inventory, c.inventory, c.valid_start_date, c.valid_end_date
c.remain_inventory, c.use_limit_quantity, c.inventory, c.valid_start_date, c.valid_end_date
</sql>

<sql id="dynamicWhereConditions">


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