From fd658508f4470f0c479b2a36738b0f50481cbbe9 Mon Sep 17 00:00:00 2001
From: 44323 <443237572@qq.com>
Date: 星期六, 16 九月 2023 10:59:09 +0800
Subject: [PATCH] 后台代码

---
 cloud-server-account/src/main/resources/mapper/TAppUserMapper.xml |   21 +++++++++++++++++++++
 1 files changed, 21 insertions(+), 0 deletions(-)

diff --git a/cloud-server-account/src/main/resources/mapper/TAppUserMapper.xml b/cloud-server-account/src/main/resources/mapper/TAppUserMapper.xml
index e253b64..4b5cfd9 100644
--- a/cloud-server-account/src/main/resources/mapper/TAppUserMapper.xml
+++ b/cloud-server-account/src/main/resources/mapper/TAppUserMapper.xml
@@ -36,4 +36,25 @@
     <update id="membershipEnd">
         update t_app_user set isVip = 0 where isVip = 1 and now() >= vipEndTime
     </update>
+    <select id="listAll" resultType="com.dsh.account.model.vo.QueryAppUserVO">
+        select t1.* from t_app_user t1
+        <where>
+            <if test="query.city!=null and query.city!= ''">
+                and t1.city = #{query.city}
+            </if>
+            <if test="query.province!=null and query.province!= ''">
+                and t1.province = #{query.province}
+            </if>
+            <if test="query.name!=null and query.name!= ''">
+                AND t1.name LIKE concat('%',#{query.name},'%')
+            </if>
+            <if test="query.phone!=null and query.phone!= ''">
+                and t1.phone LIKE concat('%',#{query.phone},'%')
+            </if>
+            <if test="query.isVip!=null and query.isVip!= ''">
+                and t1.isVip = #{query.isVip}
+            </if>
+            and t1.state != 3
+        </where>
+    </select>
 </mapper>

--
Gitblit v1.7.1