1.单位变电站公共方法

This commit is contained in:
wr
2024-02-27 15:14:37 +08:00
parent b45fe4c040
commit 7c7c66280d
20 changed files with 264 additions and 25 deletions

View File

@@ -45,9 +45,8 @@ public class RStatSubstationVoltageMServiceImpl extends ServiceImpl<RStatSubstat
@Override
public List<RVoltageIconVO> getStatSubstationIcon(StatisticsBizBaseParam param) {
//获取当前部门下所有部门信息
List<DeptDTO> deptList = deptFeignClient.getDeptDescendantIndexes(param.getId(), WebUtil.filterDeptType()).getData();
List<DeptDTO> deptDTOList = DeptUtil.getDeptSubsetVOList(deptList, param.getId());
List<String> deptIds = deptDTOList.stream().map(DeptDTO::getCode).collect(Collectors.toList());
List<DeptDTO> deptList = deptFeignClient.getDepSonDetailByDeptId(param.getId()).getData();
List<String> deptIds = deptList.stream().map(DeptDTO::getCode).collect(Collectors.toList());
StatSubstationBizBaseParam baseParam= BeanUtil.copyProperties(param,StatSubstationBizBaseParam.class);
baseParam.setIds(deptIds);