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