卡券功能
This commit is contained in:
parent
d9b769ce52
commit
390b7ff440
|
@ -10,6 +10,12 @@ public class VipUserQuery extends VipUserVO {
|
|||
|
||||
@ApiModelProperty("ID列表")
|
||||
private List<Long> ids;
|
||||
|
||||
@ApiModelProperty("是否在有效期内")
|
||||
private Boolean isEffective;
|
||||
|
||||
@ApiModelProperty("最小剩余次数")
|
||||
private Integer minSurplusCount;
|
||||
|
||||
}
|
||||
|
|
@ -51,6 +51,15 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
<if test="query.discount != null "> and bvu.discount = #{query.discount}</if>
|
||||
<if test="query.limitRound != null "> and bvu.limit_round = #{query.limitRound}</if>
|
||||
<if test="query.limitCount != null "> and bvu.limit_count = #{query.limitCount}</if>
|
||||
<if test="query.isEffective != null ">
|
||||
<if test="query.isEffective == true">
|
||||
and bvu.end_time >= now() and bvu.start_time <= now()
|
||||
</if>
|
||||
<if test="query.isEffective == false">
|
||||
and (bvu.end_time <= now() or bvu.start_time >= now())
|
||||
</if>
|
||||
</if>
|
||||
<if test="query.minSurplusCount != null "> and bvu.surplus_total >= #{query.minSurplusCount}</if>
|
||||
<if test="query.ids != null and query.ids.size > 0">
|
||||
and bvu.id in
|
||||
<foreach item="item" collection="query.ids" open="(" separator="," close=")">
|
||||
|
|
Loading…
Reference in New Issue
Block a user