道路污染事件时间显示去掉时分秒

This commit is contained in:
wuweida 2022-08-08 14:28:23 +08:00
parent 20a10d977a
commit 0e958c92ea
1 changed files with 3 additions and 0 deletions

View File

@ -299,6 +299,9 @@ public class QidiController {
@ApiOperation("查询全部道路污染累计事件数量") @ApiOperation("查询全部道路污染累计事件数量")
public Result selectRoadData(Integer page,Integer pageSize){ public Result selectRoadData(Integer page,Integer pageSize){
List<RoadData> roadData = roadDataMapper.selectRoadData(page,pageSize); List<RoadData> roadData = roadDataMapper.selectRoadData(page,pageSize);
roadData.forEach(roadData1 -> {
roadData1.setDt(roadData1.getDt().substring(0,10));
});
Integer integer = roadDataMapper.selectCountRoadData(); Integer integer = roadDataMapper.selectCountRoadData();
Map<String,Object> map = new HashMap<>(); Map<String,Object> map = new HashMap<>();
map.put("sum",integer); map.put("sum",integer);