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/ZfEquipmentServiceImpl.java |   12 +++++++++---
 1 files changed, 9 insertions(+), 3 deletions(-)

diff --git a/zhang-content/src/main/java/com/ruoyi/service/impl/ZfEquipmentServiceImpl.java b/zhang-content/src/main/java/com/ruoyi/service/impl/ZfEquipmentServiceImpl.java
index 34b6632..ba854ec 100644
--- a/zhang-content/src/main/java/com/ruoyi/service/impl/ZfEquipmentServiceImpl.java
+++ b/zhang-content/src/main/java/com/ruoyi/service/impl/ZfEquipmentServiceImpl.java
@@ -87,8 +87,14 @@
                 .isNull(ZfEquipment::getIsHide)
             );
         }
-        if (zfEquipment.getHasAttachment() != null && zfEquipment.getHasAttachment().equals("鏄�")) {
-            lqw.apply("url IS NOT NULL AND url != ''");
+        if (zfEquipment.getHasAttachment() != null) {
+            if (zfEquipment.getHasAttachment().equals("鏄�")) {
+                lqw.apply("url IS NOT NULL AND url != ''");
+            }
+            else {
+                lqw.apply("(url IS NULL OR url = '')");
+            }
+
         }
 //        lqw.in(StringUtils.isNotEmpty(zfEquipment.getCompanionList()),zfEquipment::getCompanion,zfEquipment.getCompanionList());
 //        if (zfEquipment.getYear() != 0) {
@@ -109,7 +115,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);
                 }
             }

--
Gitblit v1.9.1