企业大屏
This commit is contained in:
		| @ -183,6 +183,7 @@ public class EnterpriseBigScreenController { | ||||
|         } else { | ||||
|             todayAttendanceCountVo.setAttendanceRate(0.0); | ||||
|         } | ||||
|         todayAttendanceCountVo.setAttendanceCount(Long.valueOf(countAttendance)); | ||||
|         return R.ok(todayAttendanceCountVo); | ||||
|     } | ||||
|  | ||||
|  | ||||
| @ -105,7 +105,7 @@ public class EnterpriseBigScreenServiceImpl implements EnterpriseBigScreenServic | ||||
|             .size(); | ||||
|         BigDecimal photovoltaicTotalCapacity = projectList.stream() | ||||
|             .filter(s -> s.getProjectType().equals("1")) | ||||
|             .map(BusProject::getActual) | ||||
|             .map(BusProject::getPlan) | ||||
|             .filter(s -> s != null && !s.isBlank()) // 过滤掉空值 | ||||
|             .map(BigDecimal::new) // 转成 BigDecimal | ||||
|             .reduce(BigDecimal.ZERO, BigDecimal::add); | ||||
| @ -116,7 +116,7 @@ public class EnterpriseBigScreenServiceImpl implements EnterpriseBigScreenServic | ||||
|             .size(); | ||||
|         BigDecimal windElectricityTotalCapacity = projectList.stream() | ||||
|             .filter(s -> s.getProjectType().equals("2")) | ||||
|             .map(BusProject::getActual) | ||||
|             .map(BusProject::getPlan) | ||||
|             .filter(s -> s != null && !s.isBlank()) // 过滤掉空值 | ||||
|             .map(BigDecimal::new) // 转成 BigDecimal | ||||
|             .reduce(BigDecimal.ZERO, BigDecimal::add); | ||||
|  | ||||
		Reference in New Issue
	
	Block a user