Browse Source

工作台任务列表当部门id为空时修改返回结果

tags/v1.0.0^2
chengwang 1 year ago
parent
commit
d7766ddf3d
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/service/inspection/query/QueryInspectionCardListService.java

+ 1
- 1
tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/service/inspection/query/QueryInspectionCardListService.java View File

//部门 //部门
Dept dept = deptMapper.selectById(user.getDeptId()); Dept dept = deptMapper.selectById(user.getDeptId());
if(ObjectUtil.isNull(dept)){ if(ObjectUtil.isNull(dept)){
return JsonResult.error(QueryUserInfoByIdCodeEnum.USER_DEPT_NOT_EXIST.getCode(),
return JsonResult.success(QueryUserInfoByIdCodeEnum.USER_DEPT_NOT_EXIST.getCode(),
QueryUserInfoByIdCodeEnum.USER_DEPT_NOT_EXIST.getMsg()); QueryUserInfoByIdCodeEnum.USER_DEPT_NOT_EXIST.getMsg());
} }
//根据用户查询对应的数据权限 //根据用户查询对应的数据权限

Loading…
Cancel
Save