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(); }