|
|
@ -4,7 +4,9 @@ import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
|
|
|
import com.baomidou.mybatisplus.core.metadata.IPage; |
|
|
|
import com.baomidou.mybatisplus.core.metadata.IPage; |
|
|
|
import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
|
|
|
import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
|
|
|
import com.google.common.util.concurrent.ThreadFactoryBuilder; |
|
|
|
import com.google.common.util.concurrent.ThreadFactoryBuilder; |
|
|
|
|
|
|
|
import com.hnac.hzims.equipment.entity.EmInfoEntity; |
|
|
|
import com.hnac.hzims.equipment.entity.PlanGenerationEntity; |
|
|
|
import com.hnac.hzims.equipment.entity.PlanGenerationEntity; |
|
|
|
|
|
|
|
import com.hnac.hzims.equipment.feign.IEmInfoClient; |
|
|
|
import com.hnac.hzims.equipment.feign.IPlanGenertionClient; |
|
|
|
import com.hnac.hzims.equipment.feign.IPlanGenertionClient; |
|
|
|
import com.hnac.hzims.equipment.vo.EminfoAndEmParamVo; |
|
|
|
import com.hnac.hzims.equipment.vo.EminfoAndEmParamVo; |
|
|
|
import com.hnac.hzims.operational.access.dto.OperAccessTaskDTO; |
|
|
|
import com.hnac.hzims.operational.access.dto.OperAccessTaskDTO; |
|
|
@ -86,6 +88,8 @@ public class TargetServiceImpl implements TargetService { |
|
|
|
|
|
|
|
|
|
|
|
private final ISysClient sysClient; |
|
|
|
private final ISysClient sysClient; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private final IEmInfoClient emInfoClient; |
|
|
|
|
|
|
|
|
|
|
|
private final IPlanGenertionClient planClient; |
|
|
|
private final IPlanGenertionClient planClient; |
|
|
|
|
|
|
|
|
|
|
|
private final ITicketInfoAllClient ticketInfoAllClient; |
|
|
|
private final ITicketInfoAllClient ticketInfoAllClient; |
|
|
@ -782,20 +786,20 @@ public class TargetServiceImpl implements TargetService { |
|
|
|
return page; |
|
|
|
return page; |
|
|
|
} |
|
|
|
} |
|
|
|
// 设备
|
|
|
|
// 设备
|
|
|
|
List<EminfoAndEmParamVo> devices = maintenanceService.getEmInfoList(); |
|
|
|
List<EmInfoEntity> devices = emInfoClient.list(); |
|
|
|
if(CollectionUtils.isEmpty(devices)){ |
|
|
|
if(CollectionUtils.isEmpty(devices)){ |
|
|
|
return page; |
|
|
|
return page; |
|
|
|
} |
|
|
|
} |
|
|
|
// 获取设备集合
|
|
|
|
// 获取设备集合
|
|
|
|
List<DeviceClassifyVo> deviceClassifys = devices.stream().filter(device->detpIds.contains(device.getCreateDept())).sorted(Comparator.comparing(EminfoAndEmParamVo::getCreateDept)).map(device -> { |
|
|
|
List<DeviceClassifyVo> deviceClassifys = devices.stream().filter(device->detpIds.contains(device.getCreateDept())).sorted(Comparator.comparing(EmInfoEntity::getCreateDept)).map(device -> { |
|
|
|
DeviceClassifyVo deviceClassify = new DeviceClassifyVo(); |
|
|
|
DeviceClassifyVo deviceClassify = new DeviceClassifyVo(); |
|
|
|
deviceClassify.setStationName(stations.stream().filter(o-> o.getRefDept().equals(device.getCreateDept())).collect(Collectors.toList()).get(0).getName()); |
|
|
|
deviceClassify.setStationName(stations.stream().filter(o-> o.getRefDept().equals(device.getCreateDept())).collect(Collectors.toList()).get(0).getName()); |
|
|
|
deviceClassify.setDeviceName(device.getName()); |
|
|
|
deviceClassify.setDeviceName(device.getName()); |
|
|
|
if(faultList.contains(device.getEmCode())){ |
|
|
|
if(faultList.contains(device.getNumber())){ |
|
|
|
deviceClassify.setDeviceStatus(4); |
|
|
|
deviceClassify.setDeviceStatus(4); |
|
|
|
}else if(overhaultList.contains(device.getEmCode())){ |
|
|
|
}else if(overhaultList.contains(device.getNumber())){ |
|
|
|
deviceClassify.setDeviceStatus(0); |
|
|
|
deviceClassify.setDeviceStatus(0); |
|
|
|
}else if(runtList.contains(device.getEmCode())){ |
|
|
|
}else if(runtList.contains(device.getNumber())){ |
|
|
|
deviceClassify.setDeviceStatus(1); |
|
|
|
deviceClassify.setDeviceStatus(1); |
|
|
|
}else{ |
|
|
|
}else{ |
|
|
|
deviceClassify.setDeviceStatus(2); |
|
|
|
deviceClassify.setDeviceStatus(2); |
|
|
|