From 77be36cc9077b09186e69440f3204f9e623c335a Mon Sep 17 00:00:00 2001 From: qirong <2032486488@qq.com> Date: 星期一, 26 六月 2023 15:52:24 +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