Commit e9f2782a by zhiwj

修改bug

parent a11a7297
......@@ -85,12 +85,14 @@ public class AuditorApiServiceImpl implements AuditorApiService {
if (auditedGroupIsNotExist) {
return EnterpriseServiceResponse.failure(ErrorCode.PARAMETER_ERROR);
}
TabSysUser user = userService.getUserById(auditorDTO.getUserId());
if (user == null) {
return EnterpriseServiceResponse.failure(ErrorCode.NOTEXISTS);
}
if (!StringUtils.equals(auditorDTO.getPhone(), user.getPhoneNumber())) {
return EnterpriseServiceResponse.failure(ErrorCode.PARAMETER_ERROR.getCode(), "关联管理员手机号不一致");
if (auditorDTO.getUserId() != null) {
TabSysUser user = userService.getUserById(auditorDTO.getUserId());
if (user == null) {
return EnterpriseServiceResponse.failure(ErrorCode.NOTEXISTS);
}
if (!StringUtils.equals(auditorDTO.getPhone(), user.getPhoneNumber())) {
return EnterpriseServiceResponse.failure(ErrorCode.PARAMETER_ERROR.getCode(), "关联管理员手机号不一致");
}
}
auditorDTO.setIsUse(auditorDTO.getUserId() == null ? 0 : 1);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment