Browse Source

当前新租户没有部门正常返值

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

+ 1
- 1
tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/service/dept/query/QueryChildListService.java View File

JsonResult result = this.check(tenantId, deptId); JsonResult result = this.check(tenantId, deptId);
if (0 != result.getCode()) { if (0 != result.getCode()) {
log.info("根据id查询子部门列表业务:校验失败:{}", result.getMsg()); log.info("根据id查询子部门列表业务:校验失败:{}", result.getMsg());
return result;
return JsonResult.success("当前新租户下目前没有部门");
} }
List<String> deptIdList = deptMapper.selectAllChildListById(deptId); List<String> deptIdList = deptMapper.selectAllChildListById(deptId);
if (CollectionUtil.isEmpty(deptIdList)) { if (CollectionUtil.isEmpty(deptIdList)) {

Loading…
Cancel
Save