|
|
|
@@ -204,10 +204,11 @@ public class DataTowerServiceImpl implements DataTowerService { |
|
|
|
//昨日 |
|
|
|
String date = DateUtils.getTimeBefore(1, new Date()); |
|
|
|
chartDataQ.setQuerytime(DateUtils.stringToDate(date)); |
|
|
|
WxChartDataEntity wxChartDataEntity = wxChartDataMapper.selectOne(new QueryWrapper<>(chartDataQ)); |
|
|
|
List<WxChartDataEntity> list = wxChartDataMapper.findList(chartDataQ); |
|
|
|
Integer carCount = list.stream().map(e -> Integer.parseInt(e.getResult())).reduce(Integer::sum).get(); |
|
|
|
|
|
|
|
HashMap<String, Object> carMap = new HashMap<>(); |
|
|
|
carMap.put("carCount", wxChartDataEntity==null?0:wxChartDataEntity.getResult()); |
|
|
|
carMap.put("carCount",carCount); |
|
|
|
return carMap; |
|
|
|
} |
|
|
|
|
|
|
|
|