Commit b11276e7 authored by zhaobiyan's avatar zhaobiyan

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

parent bf15ac59
...@@ -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 = "当前积分操作")
......
...@@ -12,10 +12,13 @@ ...@@ -12,10 +12,13 @@
re.title_en as countryNameEn, re.title_en as countryNameEn,
mus.hold_score as holdScore, mus.hold_score as holdScore,
mus.used_score as usedScore, mus.used_score as usedScore,
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
...@@ -42,6 +45,9 @@ ...@@ -42,6 +45,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