技术监督管理
This commit is contained in:
@@ -26,6 +26,13 @@ public class DeptGetBase implements Serializable {
|
||||
*/
|
||||
private String unitName;
|
||||
|
||||
/**
|
||||
* 部门层级 1.全国 2.省级 3.市级 4.县级 (具体根据单位层级调整)
|
||||
* @author cdf
|
||||
* @date 2023/6/26
|
||||
*/
|
||||
private Integer deptLevel;
|
||||
|
||||
/**
|
||||
* 所有子级单位索引
|
||||
*/
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
package com.njcn.device.pms.service.ledgerManger.impl;
|
||||
|
||||
import cn.hutool.core.collection.CollectionUtil;
|
||||
import cn.hutool.core.util.StrUtil;
|
||||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||
import com.njcn.common.pojo.enums.common.ServerEnum;
|
||||
import com.njcn.common.pojo.enums.response.CommonResponseEnum;
|
||||
@@ -99,6 +100,7 @@ public class CommTerminalServiceImpl implements CommTerminalService {
|
||||
List<String> deptChildren = deptDTOList.stream().filter(deptDTO -> deptDTO.getPids().contains(it.getId())).map(DeptDTO::getCode).collect(Collectors.toList());
|
||||
deptChildren.add(it.getId());
|
||||
deptGetBase.setUnitChildrenList(deptChildren);
|
||||
deptGetBase.setDeptLevel(it.getPids().split(StrUtil.COMMA).length);
|
||||
result.add(deptGetBase);
|
||||
});
|
||||
//redisUtil.saveByKey(commTerminal + deptGetLineParam.getDeptId(),result);
|
||||
|
||||
Reference in New Issue
Block a user