| 
						
						
							
								
							
						
						
					 | 
					 | 
					@ -749,7 +749,12 @@ public class HydropowerServiceImpl implements HydropowerService { | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
							if(CollectionUtil.isEmpty(realList)){ | 
					 | 
					 | 
					 | 
							if(CollectionUtil.isEmpty(realList)){ | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
								return 0.0; | 
					 | 
					 | 
					 | 
								return 0.0; | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
							} | 
					 | 
					 | 
					 | 
							} | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
							return realList.stream().filter(o->deptId.equals(o.getDeptId())).mapToDouble(HydropowerUnitRealVo::getActivePower).sum(); | 
					 | 
					 | 
					 | 
							return realList.stream().filter(o->deptId.equals(o.getDeptId())).mapToDouble(o->{ | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
								if("MW".equalsIgnoreCase(o.getPowerUnit())){ | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
									return o.getActivePower() * 1000; | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
								} | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
								return o.getActivePower(); | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
							}).sum(); | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
						} | 
					 | 
					 | 
					 | 
						} | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
						/** | 
					 | 
					 | 
					 | 
						/** | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
					 | 
					@ -1006,7 +1011,12 @@ public class HydropowerServiceImpl implements HydropowerService { | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
									// 容量
 | 
					 | 
					 | 
					 | 
									// 容量
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
									kpi.setInstalledCapacity(reals.stream().mapToDouble(HydropowerUnitRealVo::getInstalledCapacity).sum()); | 
					 | 
					 | 
					 | 
									kpi.setInstalledCapacity(reals.stream().mapToDouble(HydropowerUnitRealVo::getInstalledCapacity).sum()); | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
									// 负荷
 | 
					 | 
					 | 
					 | 
									// 负荷
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
									kpi.setLoad(reals.stream().mapToDouble(HydropowerUnitRealVo::getActivePower).sum()); | 
					 | 
					 | 
					 | 
									kpi.setLoad(reals.stream().mapToDouble(o->{ | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
										if("MW".equalsIgnoreCase(o.getPowerUnit())){ | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
											return o.getActivePower() * 1000; | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
										} | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
										return o.getActivePower(); | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
									}).sum()); | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
									// 容量利用率
 | 
					 | 
					 | 
					 | 
									// 容量利用率
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
									if (Math.abs(kpi.getInstalledCapacity()) <= 0) { | 
					 | 
					 | 
					 | 
									if (Math.abs(kpi.getInstalledCapacity()) <= 0) { | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
										kpi.setCapacityRate(0.0); | 
					 | 
					 | 
					 | 
										kpi.setCapacityRate(0.0); | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
					 | 
					@ -1105,7 +1115,12 @@ public class HydropowerServiceImpl implements HydropowerService { | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
								// 实时数据: 容量利用率、电站利用率
 | 
					 | 
					 | 
					 | 
								// 实时数据: 容量利用率、电站利用率
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
								if(CollectionUtil.isNotEmpty(reals)){ | 
					 | 
					 | 
					 | 
								if(CollectionUtil.isNotEmpty(reals)){ | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
									// 实时功率
 | 
					 | 
					 | 
					 | 
									// 实时功率
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
									double use = reals.stream().filter(real->entry.getValue().stream().map(StationEntity::getRefDept).collect(Collectors.toList()).contains(real.getDeptId())).mapToDouble(HydropowerUnitRealVo::getActivePower).sum(); | 
					 | 
					 | 
					 | 
									double use = reals.stream().filter(real->entry.getValue().stream().map(StationEntity::getRefDept).collect(Collectors.toList()).contains(real.getDeptId())).mapToDouble(o->{ | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
										if("MW".equalsIgnoreCase(o.getPowerUnit())){ | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
											return o.getActivePower() * 1000; | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
										} | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
										return o.getActivePower(); | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
									}).sum(); | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
									if(CollectionUtil.isNotEmpty(plans)){ | 
					 | 
					 | 
					 | 
									if(CollectionUtil.isNotEmpty(plans)){ | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
										// 装机容量
 | 
					 | 
					 | 
					 | 
										// 装机容量
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
										double capacity = reals.stream().filter(real-> entry.getValue().stream().map(StationEntity::getRefDept).collect(Collectors.toList()).contains(real.getDeptId())).mapToDouble(HydropowerUnitRealVo::getInstalledCapacity).sum(); | 
					 | 
					 | 
					 | 
										double capacity = reals.stream().filter(real-> entry.getValue().stream().map(StationEntity::getRefDept).collect(Collectors.toList()).contains(real.getDeptId())).mapToDouble(HydropowerUnitRealVo::getInstalledCapacity).sum(); | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
					 | 
					@ -1651,7 +1666,7 @@ public class HydropowerServiceImpl implements HydropowerService { | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
								return; | 
					 | 
					 | 
					 | 
								return; | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
							} | 
					 | 
					 | 
					 | 
							} | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
							item.setNextShift(nextDuty.getClassName()); | 
					 | 
					 | 
					 | 
							item.setNextShift(nextDuty.getClassName()); | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
							item.setNextTeam(Optional.ofNullable(nextDuty.getGroupName()).orElse("灵活排版")); | 
					 | 
					 | 
					 | 
							item.setNextTeam(Optional.ofNullable(nextDuty.getGroupName()).orElse("灵活排班")); | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
							// 下一班组负责人
 | 
					 | 
					 | 
					 | 
							// 下一班组负责人
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
							String managerName = this.getManagerName(nextDuty.getManagerId()); | 
					 | 
					 | 
					 | 
							String managerName = this.getManagerName(nextDuty.getManagerId()); | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
							item.setNextTeamLeader(managerName); | 
					 | 
					 | 
					 | 
							item.setNextTeamLeader(managerName); | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
					 | 
					
  |