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; }