From 0e958c92ea94a5ea81b21deaaa79e83b63cd90bf Mon Sep 17 00:00:00 2001 From: wuweida <2918581207@qq.com> Date: Mon, 8 Aug 2022 14:28:23 +0800 Subject: [PATCH] =?UTF-8?q?=E9=81=93=E8=B7=AF=E6=B1=A1=E6=9F=93=E4=BA=8B?= =?UTF-8?q?=E4=BB=B6=E6=97=B6=E9=97=B4=E6=98=BE=E7=A4=BA=E5=8E=BB=E6=8E=89?= =?UTF-8?q?=E6=97=B6=E5=88=86=E7=A7=92?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/hisense/monitormanage/controller/QidiController.java | 3 +++ 1 file changed, 3 insertions(+) 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);