From a8d2cb07f6440dc54dc4005b0b06d5a47cb1517d Mon Sep 17 00:00:00 2001
From: luodangjia <luodangjia>
Date: 星期一, 16 十二月 2024 13:34:03 +0800
Subject: [PATCH] 12.16

---
 ruoyi-service/ruoyi-account/src/main/resources/mapper/account/AgentApplicationMapper.xml |   19 +++++++++++++++++++
 1 files changed, 19 insertions(+), 0 deletions(-)

diff --git a/ruoyi-service/ruoyi-account/src/main/resources/mapper/account/AgentApplicationMapper.xml b/ruoyi-service/ruoyi-account/src/main/resources/mapper/account/AgentApplicationMapper.xml
index 6be8b7e..e4b75ad 100644
--- a/ruoyi-service/ruoyi-account/src/main/resources/mapper/account/AgentApplicationMapper.xml
+++ b/ruoyi-service/ruoyi-account/src/main/resources/mapper/account/AgentApplicationMapper.xml
@@ -23,5 +23,24 @@
     <sql id="Base_Column_List">
         id, app_user_id, application_vip_id, application_time, status, shop_point, share_point, direct_vip_num, direct_agent_num, bind_shop_num, remark, del_flag, create_time
     </sql>
+    <select id="pageList" resultType="com.ruoyi.account.api.model.AgentApplication">
+        select t1.*,t2.name as userName,t2.phone as userPhone
+        from t_agent_application t1
+        left join t_app_user t2 on t1.app_user_id = t2.id
+        <where>
+            <if test="agentQuery.name !=null and agentQuery.name !=''">
+                and t2.name like concat('%',#{agentQuery.name},'%')
+            </if>
+            <if test="agentQuery.phone !=null and agentQuery.phone !=''">
+                and t2.phone like concat('%',#{agentQuery.phone},'%')
+            </if>
+            <if test="agentQuery.vipId !=null">
+                and t1.applicationVipId = #{agentQuery.vipId}
+            </if>
+            <if test="agentQuery.status !=null">
+                and t1.status = #{agentQuery.status}
+            </if>
+        </where>
+    </select>
 
 </mapper>

--
Gitblit v1.7.1