From c69d5201dca055acc872e845c13aa6429d797084 Mon Sep 17 00:00:00 2001 From: Sum1Dream <418471657@qq.com> Date: Mon, 21 Aug 2023 17:31:42 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=98=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/com/hai/service/impl/HighUserServiceImpl.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/hai-service/src/main/java/com/hai/service/impl/HighUserServiceImpl.java b/hai-service/src/main/java/com/hai/service/impl/HighUserServiceImpl.java index 74393a1f..e65884a9 100644 --- a/hai-service/src/main/java/com/hai/service/impl/HighUserServiceImpl.java +++ b/hai-service/src/main/java/com/hai/service/impl/HighUserServiceImpl.java @@ -170,8 +170,9 @@ public class HighUserServiceImpl implements HighUserService { if (StringUtils.isNotBlank(MapUtils.getString(map , "name"))) { criteria.andNameLike("%" + MapUtils.getString(map , "name") + "%"); } - if (StringUtils.isNotBlank(map.get("status"))) { - criteria.andStatusEqualTo(Integer.valueOf(map.get("status"))); + + if (MapUtils.getInteger(map , "status") != null) { + criteria.andStatusEqualTo(MapUtils.getInteger(map , "status")); } if (MapUtils.getBoolean(map , "isAgent") != null) { criteria.andIsAgentEqualTo(MapUtils.getBoolean(map , "isAgent"));