From 70c2a1cf49a5e0931d8bcf694b9426c0697691f3 Mon Sep 17 00:00:00 2001 From: shuliYao <1397940314@qq.com> Date: Mon, 20 May 2024 16:46:55 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BB=BB=E5=8A=A1=E5=90=8D=E7=A7=B0?= =?UTF-8?q?=E6=A8=A1=E7=B3=8A=E6=9F=A5=E8=AF=A2=20bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../xiaoyao/ocr/controller/OcrCheckDuplicateController.java | 2 +- .../cn/jyjz/xiaoyao/ocr/controller/OcrPictureController.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/jyjz-system/jyjz-system-oa/src/main/java/cn/jyjz/xiaoyao/ocr/controller/OcrCheckDuplicateController.java b/jyjz-system/jyjz-system-oa/src/main/java/cn/jyjz/xiaoyao/ocr/controller/OcrCheckDuplicateController.java index 707054db..5ddd287c 100644 --- a/jyjz-system/jyjz-system-oa/src/main/java/cn/jyjz/xiaoyao/ocr/controller/OcrCheckDuplicateController.java +++ b/jyjz-system/jyjz-system-oa/src/main/java/cn/jyjz/xiaoyao/ocr/controller/OcrCheckDuplicateController.java @@ -86,7 +86,7 @@ public class OcrCheckDuplicateController { String upUserName = req.getParameter("upUserName"); if(StringUtils.isNotBlank(upUserName)){ queryWrapper.and(q->{ - q.like("upName",upUserName).or().eq("taskName",upUserName); + q.like("upName",upUserName).or().like("taskName",upUserName); }); // queryWrapper.like("upName",upUserName); // queryWrapper.like("taskName", upUserName); diff --git a/jyjz-system/jyjz-system-oa/src/main/java/cn/jyjz/xiaoyao/ocr/controller/OcrPictureController.java b/jyjz-system/jyjz-system-oa/src/main/java/cn/jyjz/xiaoyao/ocr/controller/OcrPictureController.java index 902d3e06..88a56a0a 100644 --- a/jyjz-system/jyjz-system-oa/src/main/java/cn/jyjz/xiaoyao/ocr/controller/OcrPictureController.java +++ b/jyjz-system/jyjz-system-oa/src/main/java/cn/jyjz/xiaoyao/ocr/controller/OcrPictureController.java @@ -302,7 +302,7 @@ public class OcrPictureController extends BaseController { String upUserName = req.getParameter("upUserName"); if (StringUtils.isNotBlank(upUserName)) { queryWrapper.and(q->{ - q.like("upName",upUserName).or().eq("taskName",upUserName); + q.like("upName",upUserName).or().like("taskName",upUserName); }); // queryWrapper.like("upName", upUserName); // queryWrapper.like("taskName", upUserName);