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/ZfEventServiceImpl.java |   19 ++++++++++++++-----
 1 files changed, 14 insertions(+), 5 deletions(-)

diff --git a/zhang-content/src/main/java/com/ruoyi/service/impl/ZfEventServiceImpl.java b/zhang-content/src/main/java/com/ruoyi/service/impl/ZfEventServiceImpl.java
index 5238235..854e8ab 100644
--- a/zhang-content/src/main/java/com/ruoyi/service/impl/ZfEventServiceImpl.java
+++ b/zhang-content/src/main/java/com/ruoyi/service/impl/ZfEventServiceImpl.java
@@ -85,8 +85,14 @@
                     lqw.like(!StringUtils.isEmpty(zfEvent.getPeople()), ZfEvent::getPeople, zfEvent.getPeople());
 
         }
-        if (zfEvent.getHasAttachment() != null && zfEvent.getHasAttachment().equals("鏄�")) {
-            lqw.apply("url IS NOT NULL AND url != ''");
+        if (zfEvent.getHasAttachment() != null) {
+            if (zfEvent.getHasAttachment().equals("鏄�")) {
+                lqw.apply("url IS NOT NULL AND url != ''");
+            }
+            else {
+                lqw.apply("(url IS NULL OR url = '')");
+            }
+
         }
 //        lqw.in(StringUtils.isNotEmpty(ZfEvent.getCompanionList()),ZfEvent::getCompanion,ZfEvent.getCompanionList());
 //        if (ZfEvent.getYear() != 0) {
@@ -107,8 +113,9 @@
             if (!companionList.isEmpty()) {
                 // 纭繚鎵�鏈夊弬涓庝汉閮藉湪companion瀛楁涓�
                 for (String companion : companionList) {
+                    System.out.println("[[[[["+companion);
                     lqw.apply(
-                        "FIND_IN_SET({0}, REPLACE(REPLACE(people, ' ', ''), '锛�', ',')) > 0",
+                        "FIND_IN_SET({0}, REPLACE(REPLACE(REPLACE(people, ' ', ''), '锛�', ','),';',',')) > 0",
                         companion);
                 }
             }
@@ -677,7 +684,9 @@
         zfEvent.setHappenEndTime(happenEndTime);
 
         System.out.println("--------------"+companion+"-----------------");
-        String[] split = companion.trim().replace(" ", "").replace("锛�", ",").split(",");
+        String[] split = companion.trim().replace(" ", "").replace("锛�", ",").replace(";",",").split(",");
+
+        System.out.println(Arrays.toString(split));
         List<String> list = Arrays.asList(split);
 
         zfEvent.setCompanionList(list);
@@ -707,7 +716,7 @@
         {
             zfEventdto atd = new zfEventdto();
             atd.setId(Math.toIntExact(obj.getId()));
-            atd.setModule("瀹剁邯");
+            atd.setModule("浜嬬邯");
             atd.setName(obj.getPeople());
             atd.setCreateTime(obj.getCreateTime());
             daoRes.add(atd);

--
Gitblit v1.9.1