From f3642777d395234ab33aa35f1f49a5c1ee9e9f15 Mon Sep 17 00:00:00 2001
From: xiaoyong931011 <15274802129@163.com>
Date: Fri, 23 Jul 2021 10:45:35 +0800
Subject: [PATCH] Merge branch 'score-shop' of http://120.27.238.55:7000/r/xzx into score-shop
---
gc-user/src/main/resources/mapper/user/JhyInfoMapper.xml | 22 ++++++++++++++++++++++
1 files changed, 22 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..c94ed1e 100644
--- a/gc-user/src/main/resources/mapper/user/JhyInfoMapper.xml
+++ b/gc-user/src/main/resources/mapper/user/JhyInfoMapper.xml
@@ -17,4 +17,26 @@
<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 *,CREATED_TIME createTime from xzx_jhy_info
+ <where>
+ 1=1
+ <if test="record.name != null and record.name != ''">
+ and (username like concat('%',#{record.name},'%')
+ or mobile like concat('%',#{record.name},'%') )
+ </if>
+ <if test="record.isJhy != null and record.isJhy != ''">
+ and is_jhy=#{record.isJhy}
+ </if>
+ <if test="record.status != null">
+ and status = #{record.status}
+ </if>
+ </where>
+ order by id desc
+ </select>
+
+ <delete id="deleteByUserId">
+ delete from xzx_jhy_info where user_id=#{userId}
+ </delete>
</mapper>
\ No newline at end of file
--
Gitblit v1.9.1