From e72a234e11a6a14aed2da582bea84b4f5478a95c Mon Sep 17 00:00:00 2001 From: wuweida <2918581207@qq.com> Date: Thu, 9 Jun 2022 15:38:21 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9F=A5=E8=AF=A2=E7=8E=AF=E5=8D=AB=E8=BD=A6?= =?UTF-8?q?=E8=BD=A8=E8=BF=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../monitormanage/controller/Controller.java | 15 +++++++++++++++ .../mapper/TrailSanitationMapper.java | 4 ++++ 2 files changed, 19 insertions(+) diff --git a/src/main/java/com/hisense/monitormanage/controller/Controller.java b/src/main/java/com/hisense/monitormanage/controller/Controller.java index f6cab63..e21659c 100644 --- a/src/main/java/com/hisense/monitormanage/controller/Controller.java +++ b/src/main/java/com/hisense/monitormanage/controller/Controller.java @@ -68,6 +68,9 @@ public class Controller { @Autowired private PassengerFlowMapper passengerFlowlMapper; + @Autowired + private TrailSanitationMapper trailSanitationMapper; + @GetMapping("all") public Object all(){ @@ -536,6 +539,18 @@ public class Controller { return Result.success(list); } + /** + * 查询全部环卫车轨迹信息 + * @return + */ + @GetMapping("selectAllTrailSanitation") + @ApiOperation("查询全部环卫车轨迹信息") + public Result selectAllTrailSanitation(){ + List trailSanitations = trailSanitationMapper.selectAllTrailSanitation(); + Result success = Result.success(trailSanitations); + return success; + } + //查询道路污染数据 //输入参考:2022-05-10 00:00:00,只能查询当前日期前一天及以前的 @GetMapping(value="listRoadData") diff --git a/src/main/java/com/hisense/monitormanage/mapper/TrailSanitationMapper.java b/src/main/java/com/hisense/monitormanage/mapper/TrailSanitationMapper.java index b42ee93..537452c 100644 --- a/src/main/java/com/hisense/monitormanage/mapper/TrailSanitationMapper.java +++ b/src/main/java/com/hisense/monitormanage/mapper/TrailSanitationMapper.java @@ -3,10 +3,14 @@ package com.hisense.monitormanage.mapper; import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.hisense.monitormanage.entity.TrailSanitation; +import org.apache.ibatis.annotations.Select; import java.util.List; import java.util.Map; public interface TrailSanitationMapper extends BaseMapper { public void batchaSave(List list); + + @Select("select * from t_trail_sanitation") + List selectAllTrailSanitation(); }