From 24b2b6eb44be2844ca146bccaca9c6eabca24bc5 Mon Sep 17 00:00:00 2001 From: Helius <wangdoubleone@gmail.com> Date: Mon, 28 Jun 2021 22:46:50 +0800 Subject: [PATCH] modify --- gc-user/src/main/resources/mapper/user/JhyInfoMapper.xml | 8 ++++++-- 1 files changed, 6 insertions(+), 2 deletions(-) diff --git a/gc-user/src/main/resources/mapper/user/JhyInfoMapper.xml b/gc-user/src/main/resources/mapper/user/JhyInfoMapper.xml index b9925bd..43c85d5 100644 --- a/gc-user/src/main/resources/mapper/user/JhyInfoMapper.xml +++ b/gc-user/src/main/resources/mapper/user/JhyInfoMapper.xml @@ -19,13 +19,13 @@ </select> <select id="selectJhyInfoList" resultType="com.xzx.gc.user.vo.JhyInfoListVo"> - select * from xzx_jhy_info + select *,CREATED_TIME createTime 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 != ''"> + <if test="record.isJhy != null and record.isJhy != ''"> and is_jhy=#{record.isJhy} </if> <if test="record.status != null"> @@ -34,4 +34,8 @@ </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