//部门 | //部门 | ||||
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()); | ||||
} | } | ||||
//根据用户查询对应的数据权限 | //根据用户查询对应的数据权限 |