From 24044dfc99608a0ad56c8de58b32d6e47fc1f25d Mon Sep 17 00:00:00 2001
From: wuxw <928255095@qq.com>
Date: 星期三, 05 三月 2025 23:36:33 +0800
Subject: [PATCH] 运营加入用户查询功能
---
java110-db/src/main/resources/mapper/user/UserV1ServiceDaoImplMapper.xml | 56 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 56 insertions(+), 0 deletions(-)
diff --git a/java110-db/src/main/resources/mapper/user/UserV1ServiceDaoImplMapper.xml b/java110-db/src/main/resources/mapper/user/UserV1ServiceDaoImplMapper.xml
index 6065145..ca3911a 100644
--- a/java110-db/src/main/resources/mapper/user/UserV1ServiceDaoImplMapper.xml
+++ b/java110-db/src/main/resources/mapper/user/UserV1ServiceDaoImplMapper.xml
@@ -203,4 +203,60 @@
limit #{page}, #{row}
</if>
</select>
+ <select id="getSystemUserCount" parameterType="Map" resultType="Map">
+ select count(1) count
+ from u_user t
+ where t.status_cd = '0'
+ and t.level_cd != '00'
+ <if test="userId !=null and userId != ''">
+ and t.user_id= #{userId}
+ </if>
+ <if test="levelCd !=null and levelCd != ''">
+ and t.level_cd= #{levelCd}
+ </if>
+ <if test="name !=null and name != ''">
+ and t.name= #{name}
+ </if>
+ <if test="nameLike !=null and nameLike != ''">
+ and t.name like concat('%', #{nameLike},'%')
+ </if>
+ <if test="tel !=null and tel != ''">
+ and t.tel= #{tel}
+ </if>
+ <if test="email !=null and email != ''">
+ and t.email= #{email}
+ </if>
+ </select>
+
+ <select id="getSystemUsers" parameterType="Map" resultType="Map">
+ select t.user_id userId,t.`name` userName,t.email,t.address,t.tel,t.create_time createTime,t.level_cd levelCd,
+ count(oau.app_user_id) ownerCount
+ from u_user t
+ left join owner_app_user oau on t.user_id = oau.user_id and oau.status_cd = '0'
+ where t.status_cd = '0'
+ and t.level_cd != '00'
+ <if test="userId !=null and userId != ''">
+ and t.user_id= #{userId}
+ </if>
+ <if test="levelCd !=null and levelCd != ''">
+ and t.level_cd= #{levelCd}
+ </if>
+ <if test="name !=null and name != ''">
+ and t.name= #{name}
+ </if>
+ <if test="nameLike !=null and nameLike != ''">
+ and t.name like concat('%', #{nameLike},'%')
+ </if>
+ <if test="tel !=null and tel != ''">
+ and t.tel= #{tel}
+ </if>
+ <if test="email !=null and email != ''">
+ and t.email= #{email}
+ </if>
+ group by t.user_id ,t.`name` ,t.email,t.address,t.tel,t.create_time ,t.level_cd
+ order by t.create_time desc
+ <if test="page != -1 and page != null ">
+ limit #{page}, #{row}
+ </if>
+ </select>
</mapper>
--
Gitblit v1.8.0