From 91f82652d3a19efa3da0be659aa8954bbde2c712 Mon Sep 17 00:00:00 2001
From: zyy <zyy@email.com>
Date: Tue, 28 Oct 2025 14:03:59 +0800
Subject: [PATCH] 1
---
src/main/resources/mapper/UserMapper.xml | 21 ++++++++++++++++++---
1 files changed, 18 insertions(+), 3 deletions(-)
diff --git a/src/main/resources/mapper/UserMapper.xml b/src/main/resources/mapper/UserMapper.xml
index 5665a62..f866af1 100644
--- a/src/main/resources/mapper/UserMapper.xml
+++ b/src/main/resources/mapper/UserMapper.xml
@@ -26,16 +26,19 @@
<result column="vaild_number" property="vaildNumber"/>
<result column="lever" property="lever"/>
<result column="fund_ratio" property="fundRatio"/>
-
+ <result column="real_type" property="realType"/>
</resultMap>
<sql id="Base_Column_List">
id, agent_id, agent_name, phone, user_pwd, with_pwd, nick_name, real_name, id_card,
account_type, is_lock, is_login,
reg_time, reg_ip, reg_address, img1_key, img2_key, img3_key, is_active, auth_msg,
- withdrawal_Pwd,vaild_number,lever,fund_ratio
+ withdrawal_Pwd,vaild_number,lever,fund_ratio,credit_score,loan_limit
</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
@@ -81,7 +84,7 @@
<select id="listByAdmin" resultMap="BaseResultMap" parameterType="map">
SELECT
- <include refid="Base_Column_List"/>
+ *
FROM user
<where>
<if test="searchId != null ">
@@ -96,6 +99,18 @@
<if test="accountType != null ">
and account_type = #{accountType}
</if>
+ <if test="isLock != null ">
+ and is_lock = #{isLock}
+ </if>
+ <if test="isLogin != null ">
+ and is_login = #{isLogin}
+ </if>
+ <if test="regTime != null and regTime != ''">
+ and DATE_FORMAT(reg_time, '%Y-%m-%d') = #{regTime}
+ </if>
+ <if test="isActive != null ">
+ and is_active = #{isActive}
+ </if>
</where>
ORDER BY id DESC
</select>
--
Gitblit v1.9.3