From c6fc2986a5ad7e422ca4b97ebbacc46fda903ccb Mon Sep 17 00:00:00 2001
From: Helius <wangdoubleone@gmail.com>
Date: Mon, 28 Jun 2021 14:12:52 +0800
Subject: [PATCH] modify

---
 gc-user/src/main/resources/mapper/user/JhyInfoMapper.xml |   17 +++++++++++++++++
 1 files changed, 17 insertions(+), 0 deletions(-)

diff --git a/gc-user/src/main/resources/mapper/user/JhyInfoMapper.xml b/gc-user/src/main/resources/mapper/user/JhyInfoMapper.xml
index 2dd4a67..b9925bd 100644
--- a/gc-user/src/main/resources/mapper/user/JhyInfoMapper.xml
+++ b/gc-user/src/main/resources/mapper/user/JhyInfoMapper.xml
@@ -17,4 +17,21 @@
     <select id="selectExistJhyByIndeityOrMobile" resultType="com.xzx.gc.entity.JhyInfo">
         select * from xzx_jhy_info where (mobile=#{mobile} or identity = #{identity}) and status in (1, 2)
     </select>
+
+    <select id="selectJhyInfoList" resultType="com.xzx.gc.user.vo.JhyInfoListVo">
+        select * from xzx_jhy_info
+        <where>
+            1=1
+            <if test="record.name != null and record.name != ''">
+                and (username like CONCAT(CONCAT(#{record.name}, '%'), '%') or phone=#{record.phone})
+            </if>
+            <if test="record.isJhy != null and record.name != ''">
+                and is_jhy=#{record.isJhy}
+            </if>
+            <if test="record.status != null">
+                and status = #{record.status}
+            </if>
+        </where>
+        order by id desc
+    </select>
 </mapper>
\ No newline at end of file

--
Gitblit v1.9.1