From e7d9742cbbd884ca72df302889d91173e8d9ea87 Mon Sep 17 00:00:00 2001 From: zyx <1029606625@qq.com> Date: Mon, 19 Jun 2023 16:47:40 +0800 Subject: [PATCH] =?UTF-8?q?6/19=20=E5=AE=8C=E6=88=90=E8=8F=9C=E5=93=81?= =?UTF-8?q?=E7=AE=A1=E7=90=86=E9=A1=B5=E9=9D=A2=E6=90=9C=E7=B4=A2=E6=8C=89?= =?UTF-8?q?=E9=92=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../io/renren/modules/takeout/service/impl/DishServiceImpl.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/renren-admin/src/main/java/io/renren/modules/takeout/service/impl/DishServiceImpl.java b/renren-admin/src/main/java/io/renren/modules/takeout/service/impl/DishServiceImpl.java index 38ece22..94b5920 100644 --- a/renren-admin/src/main/java/io/renren/modules/takeout/service/impl/DishServiceImpl.java +++ b/renren-admin/src/main/java/io/renren/modules/takeout/service/impl/DishServiceImpl.java @@ -24,10 +24,12 @@ public class DishServiceImpl extends CrudServiceImpl getWrapper(Map params){ String id = (String)params.get("id"); String categoryId = (String)params.get("categoryId"); + String name = (String)params.get("name"); QueryWrapper wrapper = new QueryWrapper<>(); wrapper.eq(StringUtils.isNotBlank(id), "id", id); wrapper.eq(StringUtils.isNotBlank(categoryId), "category_id", categoryId); + wrapper.like(StringUtils.isNotBlank(name), "name", name); return wrapper; }