From d910a3e7ad5bc3a5e5443f506d05bbb9e83a4c8e Mon Sep 17 00:00:00 2001
From: xiangpei <xiangpei@timesnew.cn>
Date: 星期四, 31 十月 2024 17:14:33 +0800
Subject: [PATCH] 生成试卷时如果题目列表为空,则不反悔这个题型的数据
---
src/main/resources/mapper/UserEventLogMapper.xml | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/main/resources/mapper/UserEventLogMapper.xml b/src/main/resources/mapper/UserEventLogMapper.xml
index 9da0df6..be0dccd 100644
--- a/src/main/resources/mapper/UserEventLogMapper.xml
+++ b/src/main/resources/mapper/UserEventLogMapper.xml
@@ -32,8 +32,8 @@
<if test="userId != null">
and user_id= #{userId}
</if>
- <if test="userName != null">
- and user_name= #{userName}
+ <if test="realName != null">
+ and real_name like concat('%', #{realName} , '%')
</if>
</where>
</select>
--
Gitblit v1.8.0