Browse Source

#代码优化

zhongwei
yang_shj 1 year ago
parent
commit
82aa13fc1f
  1. 4
      hzims-service/operational/src/main/java/com/hnac/hzims/operational/maintenance/service/impl/OperMaintenanceMonitorServiceImpl.java

4
hzims-service/operational/src/main/java/com/hnac/hzims/operational/maintenance/service/impl/OperMaintenanceMonitorServiceImpl.java

@ -53,8 +53,8 @@ public class OperMaintenanceMonitorServiceImpl implements IOperMaintenanceMonito
}});
//获取列表班次ID集合
List<Long> classIdList = planEntities.stream().filter(planEntity -> ObjectUtil.isNotEmpty(planEntity.getImsDutyClassId()))
.map(OperMaintenancePlanEntity::getImsDutyClassId).collect(Collectors.toList());
List<Long> classIdList = planEntities.stream().map(OperMaintenancePlanEntity::getImsDutyClassId)
.filter(ObjectUtil::isNotEmpty).collect(Collectors.toList());
IImsDutyClassService imsDutyClassService = SpringUtil.getBean(IImsDutyClassService.class);
Map<Long, List<ImsDutyClassEntity>> classMap = null;
if (CollectionUtil.isNotEmpty(classIdList)) {

Loading…
Cancel
Save