diff --git a/src/main/java/com/hisense/monitormanage/controller/QidiController.java b/src/main/java/com/hisense/monitormanage/controller/QidiController.java index 00c2b28..ae42cbf 100644 --- a/src/main/java/com/hisense/monitormanage/controller/QidiController.java +++ b/src/main/java/com/hisense/monitormanage/controller/QidiController.java @@ -299,6 +299,9 @@ public class QidiController { @ApiOperation("查询全部道路污染累计事件数量") public Result selectRoadData(Integer page,Integer pageSize){ List roadData = roadDataMapper.selectRoadData(page,pageSize); + roadData.forEach(roadData1 -> { + roadData1.setDt(roadData1.getDt().substring(0,10)); + }); Integer integer = roadDataMapper.selectCountRoadData(); Map map = new HashMap<>(); map.put("sum",integer);