|
|
@@ -75,17 +75,7 @@ public class AccidentTipsService { |
|
|
|
if (StringUtils.isNotEmpty(dept.getName())) { |
|
|
|
accidentTipsVo.setDeptName(dept.getName()); |
|
|
|
} |
|
|
|
User user = userMapper.selectOne(Wrappers.<User>lambdaQuery() |
|
|
|
.eq(User::getDeptId, accident.getDeptId()) |
|
|
|
.eq(User::getDataPermission, DataPermissionEnum.DEPT_AND_SUB_DEPT.getCode()) |
|
|
|
.eq(User::getMark, MarkEnum.VALID.getCode())); |
|
|
|
if(ObjectUtils.isEmpty(user)){ |
|
|
|
throw new ServiceException("登录用户对应的部门没有管理员账户"); |
|
|
|
} |
|
|
|
if(StringUtils.isNotEmpty(user.getRealname())){ |
|
|
|
accidentTipsVo.setRealName(user.getRealname()); |
|
|
|
} |
|
|
|
|
|
|
|
accidentTipsVo.setRealName(""); |
|
|
|
return JsonResult.success(accidentTipsVo); |
|
|
|
} |
|
|
|
} |