Commit 5add2249 authored by hezhen's avatar hezhen

Merge branch 'master_position' into dev

parents d8081044 a987cd4a
...@@ -25,6 +25,9 @@ public class UserCouponDTO { ...@@ -25,6 +25,9 @@ public class UserCouponDTO {
@ApiModelProperty(value = "抵扣金额") @ApiModelProperty(value = "抵扣金额")
private BigDecimal usedAmount; private BigDecimal usedAmount;
@ApiModelProperty(value = "时效")
private Integer validType;
@ApiModelProperty(value = "0-未使用;1-已使用") @ApiModelProperty(value = "0-未使用;1-已使用")
private Integer isUse; private Integer isUse;
......
...@@ -82,6 +82,7 @@ ...@@ -82,6 +82,7 @@
uc.is_use AS `isUse`, uc.is_use AS `isUse`,
cp.title, cp.title,
cp.used_amount AS `usedAmount`, cp.used_amount AS `usedAmount`,
cp.valid_type AS `validType`,
uc.crt_time AS `crtTime`, uc.crt_time AS `crtTime`,
uc.expire_time AS `expireTime`, uc.expire_time AS `expireTime`,
uc.use_time AS `useTime` uc.use_time AS `useTime`
...@@ -94,7 +95,7 @@ ...@@ -94,7 +95,7 @@
<if test="status != null"> <if test="status != null">
AND `is_use`=#{status} AND `is_use`=#{status}
</if>) AS `uc` </if>) AS `uc`
INNER JOIN ( SELECT `id`, `title`, `used_amount` FROM `coupon` WHERE 1=1 INNER JOIN ( SELECT `id`, `title`, `used_amount`,`valid_type` FROM `coupon` WHERE 1=1
<if test="couponId != null"> <if test="couponId != null">
AND `id`=#{couponId} AND `id`=#{couponId}
</if> </if>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment