From 239c97e6701bc5ee5a1b9b890003dd6cd2132f48 Mon Sep 17 00:00:00 2001 From: qirong <2032486488@qq.com> Date: 星期一, 19 六月 2023 10:20:54 +0800 Subject: [PATCH] 统计 --- src/main/resources/mapper/UserMapper.xml | 12 +++++++++++- 1 files changed, 11 insertions(+), 1 deletions(-) diff --git a/src/main/resources/mapper/UserMapper.xml b/src/main/resources/mapper/UserMapper.xml index c9c344a..750a560 100644 --- a/src/main/resources/mapper/UserMapper.xml +++ b/src/main/resources/mapper/UserMapper.xml @@ -410,5 +410,15 @@ limit 1 </select> - + <select id="selectByIdName" resultMap="BaseResultMap"> + select + <include refid="Base_Column_List" /> + from t_user + <where> + and deleted=0 and id = #{id} + <if test="userName != null and userName != ''"> + and user_name like concat('%',#{userName},"%") + </if> + </where> + </select> </mapper> -- Gitblit v1.8.0