From cef87e5c90c5551df2f98047e113530d79270e9f Mon Sep 17 00:00:00 2001 From: 44323 <443237572@qq.com> Date: 星期三, 17 一月 2024 14:30:51 +0800 Subject: [PATCH] 修改附近方圆报错 --- guns-management/src/main/java/com/stylefeng/guns/modular/system/dao/mapping/AppUserMapper.xml | 37 +++++++++++++++++++++++++++++++------ 1 files changed, 31 insertions(+), 6 deletions(-) diff --git a/guns-management/src/main/java/com/stylefeng/guns/modular/system/dao/mapping/AppUserMapper.xml b/guns-management/src/main/java/com/stylefeng/guns/modular/system/dao/mapping/AppUserMapper.xml index 8190b38..a92adbb 100644 --- a/guns-management/src/main/java/com/stylefeng/guns/modular/system/dao/mapping/AppUserMapper.xml +++ b/guns-management/src/main/java/com/stylefeng/guns/modular/system/dao/mapping/AppUserMapper.xml @@ -37,7 +37,7 @@ order by houseCount desc </select> <select id="listHost" resultType="com.stylefeng.guns.modular.system.dto.Host"> - SELECT id,insert_time,nickname,phone,profile_photo,user_type,wechat_qr_code,watch_app,phone,status + SELECT id,insert_time as insertTime,nickname,profile_photo as profilePhoto,user_type as userType,ifnull(wechat_qr_code1,wechat_qr_code) as wechatQrCode,ifnull(watch_app1,watch_app) as watchApp,phone as phone,status from t_app_user <where> status != 3 @@ -54,15 +54,14 @@ and phone like CONCAT('%', #{phone}, '%') </if> </where> - limit #{index},#{size} - + ORDER BY insert_time desc </select> <select id="listMedium" resultType="com.stylefeng.guns.modular.system.dto.Medium"> - SELECT id,insert_time,nickname,company_name,agent_licence_code,wechat_qr_code,watch_app,phone,status + SELECT id,insert_time as insertTime,nickname,company_name as companyName,agent_licence_code as agentLicenceCode,ifnull(wechat_qr_code1,wechat_qr_code) as wechatQrCode,ifnull(watch_app1,watch_app) as watchApp,phone as phone,status from t_app_user <where> - status != 3 + status != 3 and auth = 2 <if test="null != nickname and '' != nickname"> and nickname like CONCAT('%', #{nickname}, '%') </if> @@ -76,7 +75,33 @@ and phone like CONCAT('%', #{phone}, '%') </if> </where> - limit #{index},#{size} + </select> + + <select id="listAuMedium" resultType="com.stylefeng.guns.modular.system.dto.Medium"> + SELECT id,insert_time as insertTime,nickname,company_name as companyName, + agent_licence_code as agentLicenceCode,ifnull(wechat_qr_code1,wechat_qr_code) as wechatQrCode,ifnull(watch_app1,watch_app) as watchApp,phone as phone,status,auth as auditStatus,audit_note as auditNote + ,refuse_date as refuseDate + from t_app_user + <where> + status != 3 and auth != 0 + <if test="null != nickname and '' != nickname"> + and nickname like CONCAT('%', #{nickname}, '%') + </if> + <if test="null != userType"> + and user_type = #{userType} + </if> + <if test="null != status"> + and auth = #{status} + </if> + <if test="null != phone and '' != phone"> + and phone like CONCAT('%', #{phone}, '%') + </if> + </where> + + + </select> + + </mapper> \ No newline at end of file -- Gitblit v1.7.1