diff --git a/src/main/java/com/glxp/api/controller/auth/RegisterController.java b/src/main/java/com/glxp/api/controller/auth/RegisterController.java index 6f1a82d..71abe4b 100644 --- a/src/main/java/com/glxp/api/controller/auth/RegisterController.java +++ b/src/main/java/com/glxp/api/controller/auth/RegisterController.java @@ -89,7 +89,7 @@ public class RegisterController { if (userRegisterEntity2 !=null ) { if(userRegisterEntity.getId()==null) return ResultVOUtils.error(500, "该单位已被注册!"); - if(!userRegisterEntity2.getId().equals(userRegisterEntity.getId())) + if(userRegisterEntity2.getId()!=userRegisterEntity.getId()) return ResultVOUtils.error(500, "该单位已被注册!"); } if(StringUtils.isEmpty(userRegisterEntity.getCheckStatus()))