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"));