Browse Source

修改应急弹框代码

tags/V1.3.3
wanjing 11 months ago
parent
commit
2191ca5e6e
1 changed files with 1 additions and 11 deletions
  1. +1
    -11
      tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/service/accident/AccidentTipsService.java

+ 1
- 11
tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/service/accident/AccidentTipsService.java View File

if (StringUtils.isNotEmpty(dept.getName())) { if (StringUtils.isNotEmpty(dept.getName())) {
accidentTipsVo.setDeptName(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); return JsonResult.success(accidentTipsVo);
} }
} }

Loading…
Cancel
Save