用户来源筛选

main
cheney 10 months ago
parent 7df99b4e87
commit d5065b39eb
  1. 9
      users/src/main/java/com/huoran/users/entity/req/UserInfoReq.java
  2. 13
      users/src/main/java/com/huoran/users/mapper/xml/HrUserAccountMapper.xml

@ -32,9 +32,16 @@ public class UserInfoReq {
private String creationTime;
@ApiModelProperty("结束时间")
private String endTime;
@ApiModelProperty("平台id")
@ApiModelProperty("平台用户端权限,5幼儿园,6供应商,7个人端")
private Integer platformId;
@ApiModelProperty("来源 1自行注册 ,注册该字段给值")
private Integer registration;
@ApiModelProperty("来源 2邀请 ,邀请该字段给值")
private Integer invite;
private Integer pageNum;
private Integer pageSize;

@ -885,17 +885,16 @@
<if test='userInfoReq.platformId !=null and userInfoReq.platformId !=""'>
AND FIND_IN_SET(a.platform_id,#{userInfoReq.platformId})
</if>
<if test='userInfoReq.provinceId !=null and userInfoReq.provinceId !=""'>
AND u.province_id = #{userInfoReq.provinceId}
</if>
<if test='userInfoReq.cityId !=null and userInfoReq.cityId !=""'>
and u.city_id =#{userInfoReq.cityId}
</if>
<if test='userInfoReq.searchContent !=null and userInfoReq.searchContent !=""'>
AND ( a.phone LIKE CONCAT('%',#{userInfoReq.searchContent},'%')
OR u.user_name LIKE CONCAT('%',#{userInfoReq.searchContent},'%'))
</if>
<if test='userInfoReq.registration !=null'>
and ta.invitation_account IS NULL
</if>
<if test='userInfoReq.invite !=null'>
AND ta.invitation_account IS NOT NULL
</if>
GROUP BY a.app_open_id
ORDER BY
create_time DESC

Loading…
Cancel
Save