From ee168c490da9ac9a82422d1bcd2ac60c0a7bc1c8 Mon Sep 17 00:00:00 2001
From: liusheng <337615773@qq.com>
Date: 星期三, 25 三月 2026 16:06:35 +0800
Subject: [PATCH] 模糊查询时,创建的存储过程没有带QUOTE,导致报错
---
ruoyi-system/src/main/resources/mapper/system/SysNoticeMapper.xml | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/ruoyi-system/src/main/resources/mapper/system/SysNoticeMapper.xml b/ruoyi-system/src/main/resources/mapper/system/SysNoticeMapper.xml
index 9ba3964..8ab9dd0 100644
--- a/ruoyi-system/src/main/resources/mapper/system/SysNoticeMapper.xml
+++ b/ruoyi-system/src/main/resources/mapper/system/SysNoticeMapper.xml
@@ -42,7 +42,7 @@
<select id="selectNoticeList" parameterType="SysNotice" resultMap="SysNoticeResult">
<include refid="selectNoticeVo"/>
- <where>
+ where 1=1
<if test="noticeTitle != null and noticeTitle != ''">
AND notice_title like concat('%', #{noticeTitle}, '%')
</if>
@@ -52,7 +52,9 @@
<if test="createBy != null and createBy != ''">
AND create_by like concat('%', #{createBy}, '%')
</if>
- </where>
+ <if test="orgid != null and orgid != ''">
+ AND orgid = #{orgid}
+ </if>
</select>
<insert id="insertNotice" parameterType="SysNotice">
--
Gitblit v1.9.3