From 1b5800c788e8c9277a23f76666abc1b757d56b42 Mon Sep 17 00:00:00 2001
From: zrj <646384940@qq.com>
Date: Fri, 14 Jun 2024 15:53:25 +0800
Subject: [PATCH] 线上 es 全文检索升级到8.14.1 版本导致数据更新异常调整(不抛出异常),实际数据已经被操作
---
src/main/java/org/springblade/modules/article/mapper/ArticleCollectMapper.xml | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
diff --git a/src/main/java/org/springblade/modules/article/mapper/ArticleCollectMapper.xml b/src/main/java/org/springblade/modules/article/mapper/ArticleCollectMapper.xml
index bb275da..9e8fe1c 100644
--- a/src/main/java/org/springblade/modules/article/mapper/ArticleCollectMapper.xml
+++ b/src/main/java/org/springblade/modules/article/mapper/ArticleCollectMapper.xml
@@ -12,7 +12,13 @@
<select id="selectArticleCollectPage" resultMap="articleCollectResultMap">
- select * from jczz_article_collect where is_deleted = 0
+ select * from jczz_article_collect
+ <where>
+ <if test="noticeCollect.id != null "> and id = #{noticeCollect.id}</if>
+ <if test="noticeCollect.articleId != null "> and article_id = #{noticeCollect.articleId}</if>
+ <if test="noticeCollect.userId != null "> and user_id = #{noticeCollect.userId}</if>
+ <if test="noticeCollect.createTime != null "> and create_time = #{noticeCollect.createTime}</if>
+ </where>
</select>
--
Gitblit v1.9.3