更新用户列表查询逻辑

This commit is contained in:
huangdeliang 2020-12-10 19:49:21 +08:00
parent 0f3da466a0
commit b1a04377a1
2 changed files with 4 additions and 2 deletions

View File

@ -108,7 +108,6 @@ public class SysWxUserLogController extends BaseController {
@GetMapping(value = "/wx/logs/list") @GetMapping(value = "/wx/logs/list")
public AjaxResult getLogs(SysWxUserLog sysWxUserLog) { public AjaxResult getLogs(SysWxUserLog sysWxUserLog) {
System.out.println(sysWxUserLog.toString());
List<WxLogInfo> list = sysWxUserLogService.selectWxLogInfoList(sysWxUserLog); List<WxLogInfo> list = sysWxUserLogService.selectWxLogInfoList(sysWxUserLog);
return AjaxResult.success(list); return AjaxResult.success(list);
} }

View File

@ -36,11 +36,14 @@
</select> </select>
<select id="selectSysWxUserInfoListNot" parameterType="SysWxUserInfo" resultMap="SysWxUserInfoResult"> <select id="selectSysWxUserInfoListNot" parameterType="SysWxUserInfo" resultMap="SysWxUserInfoResult">
select openid, nick_name, appid, phone, avatar_url, sex from sys_wx_user_info right join sys_order using(phone) select user.openid, user.nick_name, user.appid, user.phone, user.avatar_url, user.sex, user.update_time from sys_wx_user_info user
right join sys_order
on user.phone = sys_order.phone
<where> <where>
<if test="appid != null and appid != ''">and appid = #{appid}</if> <if test="appid != null and appid != ''">and appid = #{appid}</if>
<if test="openid != null and openid != ''">and openid != #{openid}</if> <if test="openid != null and openid != ''">and openid != #{openid}</if>
</where> </where>
order by update_time desc
</select> </select>
<select id="selectSysWxUserInfoById" parameterType="String" resultMap="SysWxUserInfoResult"> <select id="selectSysWxUserInfoById" parameterType="String" resultMap="SysWxUserInfoResult">