From 2ed572d6b2a4be6b91b3e2a1ed48485abde91553 Mon Sep 17 00:00:00 2001
From: zj <1772600164@qq.com>
Date: Mon, 15 Jul 2024 10:54:46 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/zyqs-0502' into rb-copy

---
 src/main/resources/mapper/UserMapper.xml |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)

diff --git a/src/main/resources/mapper/UserMapper.xml b/src/main/resources/mapper/UserMapper.xml
index 5665a62..994e939 100644
--- a/src/main/resources/mapper/UserMapper.xml
+++ b/src/main/resources/mapper/UserMapper.xml
@@ -36,6 +36,9 @@
   </sql>
 
 
+    <select id="findByPhone" parameterType="string" resultType="com.nq.pojo.User">
+        select * from user where phone= #{phone}
+    </select>
 
     <select id="login" resultMap="BaseResultMap" parameterType="map">
         SELECT
@@ -74,6 +77,10 @@
         select count(*) from user where TO_DAYS(reg_time) = TO_DAYS(NOW()) and agent_id = #{id}
     </select>
 
+    <select id="findByPhone" parameterType="string" resultType="com.nq.pojo.User">
+        select * from user where phone= #{phone}
+    </select>
+
 
     <select id="queryAgintSumTodayRegCount"  parameterType="integer"   resultType="int">
         select count(*) from user where agent_id =#{id}   TO_DAYS(reg_time) = TO_DAYS(NOW())
@@ -84,6 +91,9 @@
         <include refid="Base_Column_List"/>
         FROM user
         <where>
+            <if test="id != null and id != '' ">
+                and id = #{id}
+            </if>
             <if test="searchId != null ">
                 and agent_id = #{searchId}
             </if>

--
Gitblit v1.9.3