Pārlūkot izejas kodu

修改应急弹框代码

tags/V1.3.3
wanjing pirms 11 mēnešiem
vecāks
revīzija
2191ca5e6e
1 mainītis faili ar 1 papildinājumiem un 11 dzēšanām
  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 Parādīt failu

@@ -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);
}
}

Notiek ielāde…
Atcelt
Saglabāt