From 31b53ed4e328090798dae35cecc9f5a60cdccd67 Mon Sep 17 00:00:00 2001
From: zqy <2522236926@qq.com>
Date: 星期三, 21 一月 2026 18:10:39 +0800
Subject: [PATCH] 修改人物搜索bug
---
zhang-content/src/main/java/com/ruoyi/service/impl/ZfCollectionServiceImpl.java | 14 +++++++++-----
1 files changed, 9 insertions(+), 5 deletions(-)
diff --git a/zhang-content/src/main/java/com/ruoyi/service/impl/ZfCollectionServiceImpl.java b/zhang-content/src/main/java/com/ruoyi/service/impl/ZfCollectionServiceImpl.java
index fef4e6b..fc1b493 100644
--- a/zhang-content/src/main/java/com/ruoyi/service/impl/ZfCollectionServiceImpl.java
+++ b/zhang-content/src/main/java/com/ruoyi/service/impl/ZfCollectionServiceImpl.java
@@ -93,9 +93,13 @@
.isNull(ZfCollection::getIsHide)
);
}
- if (zfCollection.getHasAttachment() != null && zfCollection.getHasAttachment().equals("鏄�")) {
- lqw.apply("url IS NOT NULL AND url != ''");
- }
+ if (zfCollection.getHasAttachment() != null) {
+ if (zfCollection.getHasAttachment().equals("鏄�")) {
+ lqw.apply("url IS NOT NULL AND url != ''");
+ }
+ else {
+ lqw.apply("(url IS NULL OR url = '')");
+ } }
// lqw.in(StringUtils.isNotEmpty(zfCollection.getCompanionList()),zfCollection::getCompanion,zfCollection.getCompanionList());
// if (zfCollection.getYear() != 0) {
// System.out.println("pppppppppppppppppppppppppppppppppppppppppppppppppppp"+zfCollection.getYear());
@@ -115,7 +119,7 @@
if (!companionList.isEmpty()) {
// 纭繚鎵�鏈夊弬涓庝汉閮藉湪companion瀛楁涓�
for (String companion : companionList) {
- lqw.apply("FIND_IN_SET({0}, REPLACE(REPLACE(companion, ' ', ''), '锛�', ',')) > 0",
+ lqw.apply("FIND_IN_SET({0}, REPLACE(REPLACE(REPLACE(people, ' ', ''), '锛�', ','),';',',')) > 0",
companion);
}
}
@@ -729,7 +733,7 @@
zfEventdto atd = new zfEventdto();
atd.setId(Math.toIntExact(obj.getId()));
atd.setModule("鏀惰棌");
- atd.setName(obj.getCompanion());
+ atd.setName(obj.getOwner());
atd.setCreateTime(obj.getCreateTime());
daoRes.add(atd);
}
--
Gitblit v1.9.1