|
@@ -212,8 +212,16 @@ public class ZhcxPmqManagementDistributionServiceImpl extends ServiceImpl<ZhcxPm
|
|
// 构建第二层数据
|
|
// 构建第二层数据
|
|
List<ZhcxPmqManageChildVo> childList = baseMapper.getAllDeptByPid(id);
|
|
List<ZhcxPmqManageChildVo> childList = baseMapper.getAllDeptByPid(id);
|
|
for (ZhcxPmqManageChildVo zhcxPmqManageChildVo : childList) {
|
|
for (ZhcxPmqManageChildVo zhcxPmqManageChildVo : childList) {
|
|
|
|
+ String closestatus = zhcxPmqManageChildVo.getClosestatus();
|
|
// 构造第三层数据
|
|
// 构造第三层数据
|
|
List<MachineState> machines = baseMapper.getMachinesStatus(projectId,zhcxPmqManageChildVo.getId());
|
|
List<MachineState> machines = baseMapper.getMachinesStatus(projectId,zhcxPmqManageChildVo.getId());
|
|
|
|
+ if (!StringUtils.isEmpty(closestatus)){
|
|
|
|
+ machines.forEach(item ->{
|
|
|
|
+ if(item.getSTATUS().equals("未关闭")){
|
|
|
|
+ item.setSTATUS(closestatus);
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ }
|
|
zhcxPmqManageChildVo.setMachines(machines);
|
|
zhcxPmqManageChildVo.setMachines(machines);
|
|
}
|
|
}
|
|
return R.ok(childList);
|
|
return R.ok(childList);
|