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/ZfPetServiceImpl.java | 12 ++++++++----
1 files changed, 8 insertions(+), 4 deletions(-)
diff --git a/zhang-content/src/main/java/com/ruoyi/service/impl/ZfPetServiceImpl.java b/zhang-content/src/main/java/com/ruoyi/service/impl/ZfPetServiceImpl.java
index e8590d3..58eeff0 100644
--- a/zhang-content/src/main/java/com/ruoyi/service/impl/ZfPetServiceImpl.java
+++ b/zhang-content/src/main/java/com/ruoyi/service/impl/ZfPetServiceImpl.java
@@ -385,9 +385,13 @@
.isNull(ZfPet::getIsHide)
);
}
- if (zfPet.getHasAttachment() != null && zfPet.getHasAttachment().equals("鏄�")) {
- lqw.apply("url IS NOT NULL AND url != ''");
- }
+ if (zfPet.getHasAttachment() != null) {
+ if (zfPet.getHasAttachment().equals("鏄�")) {
+ lqw.apply("url IS NOT NULL AND url != ''");
+ }
+ else {
+ lqw.apply("(url IS NULL OR url = '')");
+ } }
// lqw.in(StringUtils.isNotEmpty(zfPet.getCompanionList()),zfPet::getCompanion,zfPet.getCompanionList());
// if (zfPet.getYear() != 0) {
// System.out.println("pppppppppppppppppppppppppppppppppppppppppppppppppppp"+zfPet.getYear());
@@ -407,7 +411,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