Commit beda5d5f authored by zhaobiyan's avatar zhaobiyan

会员积分列表新增城市字段

parents 9561d378 b11276e7
...@@ -17,6 +17,8 @@ public class MemberUserScoreQueryVO extends PageParam { ...@@ -17,6 +17,8 @@ public class MemberUserScoreQueryVO extends PageParam {
private String key; private String key;
@ApiModelProperty(value = "国家") @ApiModelProperty(value = "国家")
private Integer country; private Integer country;
@ApiModelProperty(value = "城市")
private Integer city;
@ApiModelProperty(value = "当前积分") @ApiModelProperty(value = "当前积分")
private Integer holdScore; private Integer holdScore;
@ApiModelProperty(value = "当前积分操作") @ApiModelProperty(value = "当前积分操作")
......
...@@ -13,10 +13,13 @@ ...@@ -13,10 +13,13 @@
ifnull(mus.hold_score, 0) as holdScore, ifnull(mus.hold_score, 0) as holdScore,
ifnull(mus.used_score, 0) as usedScore, ifnull(mus.used_score, 0) as usedScore,
ifnull(mus.expired_score, 0) as expiredScore, ifnull(mus.expired_score, 0) as expiredScore,
mu.create_time as createTime mu.create_time as createTime,
rea.title_zh as cityNameZh,
rea.title_en as cityNameEn,
from member_user mu from member_user mu
left join member_user_score mus on mus.member_id = mu.id left join member_user_score mus on mus.member_id = mu.id
left join ecw_region re on re.id = mu.country left join ecw_region re on re.id = mu.country
left join ecw_region rea on re.id = mu.city
where 1 = 1 where 1 = 1
<include refid="scoreCondition"/> <include refid="scoreCondition"/>
order by mu.id order by mu.id
...@@ -43,6 +46,9 @@ ...@@ -43,6 +46,9 @@
<if test="query.country != null"> <if test="query.country != null">
and mu.country = #{query.country} and mu.country = #{query.country}
</if> </if>
<if test="query.city != null">
and mu.city = #{query.city}
</if>
<if test="query.startTime != null "> <if test="query.startTime != null ">
and mu.create_time &gt;= #{query.startTime} and mu.create_time &gt;= #{query.startTime}
</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