diff --git a/src/main/java/com/glxp/udi/admin/service/info/PlatformService.java b/src/main/java/com/glxp/udi/admin/service/info/PlatformService.java index 4dd29ba..a18b724 100644 --- a/src/main/java/com/glxp/udi/admin/service/info/PlatformService.java +++ b/src/main/java/com/glxp/udi/admin/service/info/PlatformService.java @@ -71,9 +71,9 @@ public class PlatformService { public IPage list(Map map) { QueryWrapper wrapper = new QueryWrapper<>(); - wrapper.eq(StrUtil.isNotBlank(String.valueOf(map.get("id"))), "id", map.get("id")) - .like(StrUtil.isNotBlank(String.valueOf(map.get("name"))), "name", map.get("name")) - .like(StrUtil.isNotBlank(String.valueOf(map.get("host"))), "host", map.get("host")); + wrapper.eq(StrUtil.isNotBlank(String.valueOf(map.get("id"))) && !"null".equals(String.valueOf(map.get("id"))), "id", map.get("id")) + .like(StrUtil.isNotBlank(String.valueOf(map.get("name"))) && !"null".equals(String.valueOf(map.get("name"))), "name", map.get("name")) + .like(StrUtil.isNotBlank(String.valueOf(map.get("host"))) && !"null".equals(String.valueOf(map.get("host"))), "host", map.get("host")); if (map.get("page") != null && map.get("limit") != null) { Integer page = Integer.valueOf(map.get("page").toString());