From 5f18744949b9fa9dd6a8f25d9220b568307c68e8 Mon Sep 17 00:00:00 2001 From: wuweida <2918581207@qq.com> Date: Fri, 1 Jul 2022 18:02:35 +0800 Subject: [PATCH] =?UTF-8?q?mapper=E5=B1=82=E6=B7=BB=E5=8A=A0@Repository?= =?UTF-8?q?=E6=B3=A8=E8=A7=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/hisense/monitormanage/mapper/BoothMapper.java | 2 ++ .../hisense/monitormanage/mapper/BuildingRecordsMapper.java | 2 ++ .../com/hisense/monitormanage/mapper/BuildingSiteMapper.java | 2 ++ .../com/hisense/monitormanage/mapper/CameraChannelMapper.java | 2 ++ .../java/com/hisense/monitormanage/mapper/CameraMapper.java | 2 ++ .../hisense/monitormanage/mapper/CameraOrgenizationMapper.java | 2 ++ .../com/hisense/monitormanage/mapper/CameraScenicMapper.java | 2 ++ .../com/hisense/monitormanage/mapper/CaseCityLawMapper.java | 2 ++ .../com/hisense/monitormanage/mapper/ChannelPictureMapper.java | 3 ++- .../java/com/hisense/monitormanage/mapper/EventMapper.java | 2 ++ .../java/com/hisense/monitormanage/mapper/KeyAreaMapper.java | 2 ++ .../com/hisense/monitormanage/mapper/PassengerFlowMapper.java | 2 ++ .../com/hisense/monitormanage/mapper/PassengerTestMapper.java | 2 ++ .../hisense/monitormanage/mapper/PeopleRecognizeMapper.java | 2 ++ .../java/com/hisense/monitormanage/mapper/ProjectMapper.java | 2 ++ .../java/com/hisense/monitormanage/mapper/RoadDataMapper.java | 2 ++ .../com/hisense/monitormanage/mapper/SanitationMapper.java | 2 ++ .../com/hisense/monitormanage/mapper/SanitationTaskMapper.java | 2 ++ .../java/com/hisense/monitormanage/mapper/ScenicMapper.java | 2 ++ .../com/hisense/monitormanage/mapper/SedimentTrailMapper.java | 2 ++ .../hisense/monitormanage/mapper/TrailSanitationMapper.java | 2 ++ .../java/com/hisense/monitormanage/mapper/UserLoginMapper.java | 2 ++ 22 files changed, 44 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/hisense/monitormanage/mapper/BoothMapper.java b/src/main/java/com/hisense/monitormanage/mapper/BoothMapper.java index 977bc33..ec6cc74 100644 --- a/src/main/java/com/hisense/monitormanage/mapper/BoothMapper.java +++ b/src/main/java/com/hisense/monitormanage/mapper/BoothMapper.java @@ -3,9 +3,11 @@ package com.hisense.monitormanage.mapper; import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.hisense.monitormanage.entity.Booth; import org.apache.ibatis.annotations.Select; +import org.springframework.stereotype.Repository; import java.util.List; +@Repository public interface BoothMapper extends BaseMapper { @Select("select * from t_booth where capture_time = #{captureTime}") diff --git a/src/main/java/com/hisense/monitormanage/mapper/BuildingRecordsMapper.java b/src/main/java/com/hisense/monitormanage/mapper/BuildingRecordsMapper.java index c62d6bf..f547023 100644 --- a/src/main/java/com/hisense/monitormanage/mapper/BuildingRecordsMapper.java +++ b/src/main/java/com/hisense/monitormanage/mapper/BuildingRecordsMapper.java @@ -6,6 +6,7 @@ import com.hisense.monitormanage.dto.BuildingRecordsDtos; import com.hisense.monitormanage.entity.BuildingRecords; import org.apache.ibatis.annotations.Param; import org.apache.ibatis.annotations.Select; +import org.springframework.stereotype.Repository; import java.util.List; import java.util.Map; @@ -17,6 +18,7 @@ import java.util.Map; * @Description TODO * @createTime 2022年05月17日 15:32:00 */ +@Repository public interface BuildingRecordsMapper extends BaseMapper { public void batchSave(@Param("list") List list); diff --git a/src/main/java/com/hisense/monitormanage/mapper/BuildingSiteMapper.java b/src/main/java/com/hisense/monitormanage/mapper/BuildingSiteMapper.java index bf22923..3d040b6 100644 --- a/src/main/java/com/hisense/monitormanage/mapper/BuildingSiteMapper.java +++ b/src/main/java/com/hisense/monitormanage/mapper/BuildingSiteMapper.java @@ -3,6 +3,7 @@ package com.hisense.monitormanage.mapper; import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.hisense.monitormanage.entity.BuildingSite; import org.apache.ibatis.annotations.Select; +import org.springframework.stereotype.Repository; import java.util.List; @@ -13,6 +14,7 @@ import java.util.List; * @Description TODO * @createTime 2022年05月12日 13:59:00 */ +@Repository public interface BuildingSiteMapper extends BaseMapper { @Select("select * from t_building_new_site") diff --git a/src/main/java/com/hisense/monitormanage/mapper/CameraChannelMapper.java b/src/main/java/com/hisense/monitormanage/mapper/CameraChannelMapper.java index 130e001..1defa35 100644 --- a/src/main/java/com/hisense/monitormanage/mapper/CameraChannelMapper.java +++ b/src/main/java/com/hisense/monitormanage/mapper/CameraChannelMapper.java @@ -9,9 +9,11 @@ import com.hisense.monitormanage.entity.CameraChannel; import com.hisense.monitormanage.entity.Label; import org.apache.ibatis.annotations.Param; import org.apache.ibatis.annotations.Select; +import org.springframework.stereotype.Repository; import java.util.List; +@Repository public interface CameraChannelMapper extends BaseMapper { void updateCameraStatus(List list); diff --git a/src/main/java/com/hisense/monitormanage/mapper/CameraMapper.java b/src/main/java/com/hisense/monitormanage/mapper/CameraMapper.java index 973a90b..a0a9a29 100644 --- a/src/main/java/com/hisense/monitormanage/mapper/CameraMapper.java +++ b/src/main/java/com/hisense/monitormanage/mapper/CameraMapper.java @@ -5,9 +5,11 @@ import com.hisense.monitormanage.entity.Camera; import com.hisense.monitormanage.dto.ChengguanDto; import com.hisense.monitormanage.entity.Picture; import org.apache.ibatis.annotations.Select; +import org.springframework.stereotype.Repository; import java.util.List; +@Repository public interface CameraMapper extends BaseMapper { @Select("SELECT tc.pic,tc.capture_time AS captureTime FROM t_project_mtm_camera pmc JOIN t_camera tc ON pmc.project_id = #{id} AND pmc.camera_id = tc.`code` AND tc.pic IS NOT NULL") diff --git a/src/main/java/com/hisense/monitormanage/mapper/CameraOrgenizationMapper.java b/src/main/java/com/hisense/monitormanage/mapper/CameraOrgenizationMapper.java index fe82262..2a0cd6a 100644 --- a/src/main/java/com/hisense/monitormanage/mapper/CameraOrgenizationMapper.java +++ b/src/main/java/com/hisense/monitormanage/mapper/CameraOrgenizationMapper.java @@ -4,9 +4,11 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.hisense.monitormanage.entity.CameraOrganization; import org.apache.ibatis.annotations.Param; import org.apache.ibatis.annotations.Select; +import org.springframework.stereotype.Repository; import java.util.List; +@Repository public interface CameraOrgenizationMapper extends BaseMapper { @Select("select * from t_camera_organization where parent_id = #{parentId}") diff --git a/src/main/java/com/hisense/monitormanage/mapper/CameraScenicMapper.java b/src/main/java/com/hisense/monitormanage/mapper/CameraScenicMapper.java index 158076c..8a40277 100644 --- a/src/main/java/com/hisense/monitormanage/mapper/CameraScenicMapper.java +++ b/src/main/java/com/hisense/monitormanage/mapper/CameraScenicMapper.java @@ -2,6 +2,8 @@ package com.hisense.monitormanage.mapper; import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.hisense.monitormanage.entity.CameraScenic; +import org.springframework.stereotype.Repository; +@Repository public interface CameraScenicMapper extends BaseMapper { } diff --git a/src/main/java/com/hisense/monitormanage/mapper/CaseCityLawMapper.java b/src/main/java/com/hisense/monitormanage/mapper/CaseCityLawMapper.java index 9f5507e..2e711cf 100644 --- a/src/main/java/com/hisense/monitormanage/mapper/CaseCityLawMapper.java +++ b/src/main/java/com/hisense/monitormanage/mapper/CaseCityLawMapper.java @@ -2,6 +2,7 @@ package com.hisense.monitormanage.mapper; import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.hisense.monitormanage.entity.CaseCityLaw; +import org.springframework.stereotype.Repository; import java.util.List; import java.util.Map; @@ -13,6 +14,7 @@ import java.util.Map; * @Description TODO * @createTime 2022年05月13日 16:22:00 */ +@Repository public interface CaseCityLawMapper extends BaseMapper { public void batchSave(List list); public void singleSave(Map map); diff --git a/src/main/java/com/hisense/monitormanage/mapper/ChannelPictureMapper.java b/src/main/java/com/hisense/monitormanage/mapper/ChannelPictureMapper.java index 84c26e8..cccccc4 100644 --- a/src/main/java/com/hisense/monitormanage/mapper/ChannelPictureMapper.java +++ b/src/main/java/com/hisense/monitormanage/mapper/ChannelPictureMapper.java @@ -5,9 +5,10 @@ import com.hisense.monitormanage.dto.ChannelPictureDto; import com.hisense.monitormanage.dto.PictureDto; import com.hisense.monitormanage.entity.ChannelPicture; import org.apache.ibatis.annotations.Select; +import org.springframework.stereotype.Repository; import java.util.List; - +@Repository public interface ChannelPictureMapper extends BaseMapper { @Select("select * from t_project p JOIN t_channel_picture cp JOIN t_project_mtm_camera pmc on p.id = pmc.project_id AND cp.channel_code = pmc.channel_code") diff --git a/src/main/java/com/hisense/monitormanage/mapper/EventMapper.java b/src/main/java/com/hisense/monitormanage/mapper/EventMapper.java index 72e4a8f..a1d7be5 100644 --- a/src/main/java/com/hisense/monitormanage/mapper/EventMapper.java +++ b/src/main/java/com/hisense/monitormanage/mapper/EventMapper.java @@ -5,9 +5,11 @@ import com.hisense.monitormanage.dto.EventDto; import com.hisense.monitormanage.entity.Event; import org.apache.ibatis.annotations.Param; import org.apache.ibatis.annotations.Select; +import org.springframework.stereotype.Repository; import java.util.List; +@Repository public interface EventMapper extends BaseMapper { List selectEvent(@Param("page") Integer page,@Param("pageSize") Integer pageSize); diff --git a/src/main/java/com/hisense/monitormanage/mapper/KeyAreaMapper.java b/src/main/java/com/hisense/monitormanage/mapper/KeyAreaMapper.java index 098092d..89b7a59 100644 --- a/src/main/java/com/hisense/monitormanage/mapper/KeyAreaMapper.java +++ b/src/main/java/com/hisense/monitormanage/mapper/KeyAreaMapper.java @@ -3,9 +3,11 @@ package com.hisense.monitormanage.mapper; import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.hisense.monitormanage.entity.KeyArea; +import org.springframework.stereotype.Repository; import java.util.List; +@Repository public interface KeyAreaMapper extends BaseMapper { List seelctKeyAreaList(String timeId); diff --git a/src/main/java/com/hisense/monitormanage/mapper/PassengerFlowMapper.java b/src/main/java/com/hisense/monitormanage/mapper/PassengerFlowMapper.java index 24d9c67..95d591b 100644 --- a/src/main/java/com/hisense/monitormanage/mapper/PassengerFlowMapper.java +++ b/src/main/java/com/hisense/monitormanage/mapper/PassengerFlowMapper.java @@ -6,10 +6,12 @@ import com.hisense.monitormanage.dto.PassengerFlowDto; import com.hisense.monitormanage.entity.PassengerFlow; import org.apache.ibatis.annotations.Param; import org.apache.ibatis.annotations.Select; +import org.springframework.stereotype.Repository; import java.util.List; import java.util.Map; +@Repository public interface PassengerFlowMapper extends BaseMapper { void batchSave(List list); PassengerFlow getByMaxId(); diff --git a/src/main/java/com/hisense/monitormanage/mapper/PassengerTestMapper.java b/src/main/java/com/hisense/monitormanage/mapper/PassengerTestMapper.java index 998115b..3fa0a3a 100644 --- a/src/main/java/com/hisense/monitormanage/mapper/PassengerTestMapper.java +++ b/src/main/java/com/hisense/monitormanage/mapper/PassengerTestMapper.java @@ -2,6 +2,8 @@ package com.hisense.monitormanage.mapper; import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.hisense.monitormanage.entity.PassengerTest; +import org.springframework.stereotype.Repository; +@Repository public interface PassengerTestMapper extends BaseMapper { } diff --git a/src/main/java/com/hisense/monitormanage/mapper/PeopleRecognizeMapper.java b/src/main/java/com/hisense/monitormanage/mapper/PeopleRecognizeMapper.java index 8edab4e..076d814 100644 --- a/src/main/java/com/hisense/monitormanage/mapper/PeopleRecognizeMapper.java +++ b/src/main/java/com/hisense/monitormanage/mapper/PeopleRecognizeMapper.java @@ -4,9 +4,11 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.hisense.monitormanage.dto.PeopleRecognizeDto; import com.hisense.monitormanage.entity.PeopleRecognize; import org.apache.ibatis.annotations.Select; +import org.springframework.stereotype.Repository; import java.util.List; +@Repository public interface PeopleRecognizeMapper extends BaseMapper { @Select("select pr.*,cc.* from t_camera_channel cc JOIN t_people_recognize pr ON cc.channel_code = pr.channel_code") List selectPeopleRecognize(); diff --git a/src/main/java/com/hisense/monitormanage/mapper/ProjectMapper.java b/src/main/java/com/hisense/monitormanage/mapper/ProjectMapper.java index d86a379..82050bf 100644 --- a/src/main/java/com/hisense/monitormanage/mapper/ProjectMapper.java +++ b/src/main/java/com/hisense/monitormanage/mapper/ProjectMapper.java @@ -2,7 +2,9 @@ package com.hisense.monitormanage.mapper; import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.hisense.monitormanage.entity.Project; +import org.springframework.stereotype.Repository; +@Repository public interface ProjectMapper extends BaseMapper { } diff --git a/src/main/java/com/hisense/monitormanage/mapper/RoadDataMapper.java b/src/main/java/com/hisense/monitormanage/mapper/RoadDataMapper.java index fe6e3f2..5900627 100644 --- a/src/main/java/com/hisense/monitormanage/mapper/RoadDataMapper.java +++ b/src/main/java/com/hisense/monitormanage/mapper/RoadDataMapper.java @@ -4,6 +4,7 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.hisense.monitormanage.entity.RoadData; import org.apache.ibatis.annotations.Param; import org.apache.ibatis.annotations.Select; +import org.springframework.stereotype.Repository; import java.util.List; import java.util.Map; @@ -15,6 +16,7 @@ import java.util.Map; * @Description TODO * @createTime 2022年05月11日 11:10:00 */ +@Repository public interface RoadDataMapper extends BaseMapper { public void batchSave(List list); diff --git a/src/main/java/com/hisense/monitormanage/mapper/SanitationMapper.java b/src/main/java/com/hisense/monitormanage/mapper/SanitationMapper.java index 7c892c9..20c3e08 100644 --- a/src/main/java/com/hisense/monitormanage/mapper/SanitationMapper.java +++ b/src/main/java/com/hisense/monitormanage/mapper/SanitationMapper.java @@ -3,6 +3,7 @@ package com.hisense.monitormanage.mapper; import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.hisense.monitormanage.entity.Sanitation; import org.apache.ibatis.annotations.Param; +import org.springframework.stereotype.Repository; import java.util.List; import java.util.Map; @@ -14,6 +15,7 @@ import java.util.Map; * @Description TODO * @createTime 2022年05月19日 11:24:00 */ +@Repository public interface SanitationMapper extends BaseMapper { void batchSave(@Param("list") List list); void batchSaveSanitationRoad(@Param("list") List list); diff --git a/src/main/java/com/hisense/monitormanage/mapper/SanitationTaskMapper.java b/src/main/java/com/hisense/monitormanage/mapper/SanitationTaskMapper.java index 9d5a8d3..ecd13cf 100644 --- a/src/main/java/com/hisense/monitormanage/mapper/SanitationTaskMapper.java +++ b/src/main/java/com/hisense/monitormanage/mapper/SanitationTaskMapper.java @@ -2,6 +2,7 @@ package com.hisense.monitormanage.mapper; import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.hisense.monitormanage.entity.SanitationTask; +import org.springframework.stereotype.Repository; /** * @author admin @@ -10,5 +11,6 @@ import com.hisense.monitormanage.entity.SanitationTask; * @Description TODO * @createTime 2022年05月20日 17:54:00 */ +@Repository public interface SanitationTaskMapper extends BaseMapper { } diff --git a/src/main/java/com/hisense/monitormanage/mapper/ScenicMapper.java b/src/main/java/com/hisense/monitormanage/mapper/ScenicMapper.java index ad533bc..e6af1ab 100644 --- a/src/main/java/com/hisense/monitormanage/mapper/ScenicMapper.java +++ b/src/main/java/com/hisense/monitormanage/mapper/ScenicMapper.java @@ -5,9 +5,11 @@ import com.hisense.monitormanage.dto.ScenicCameraDto; import com.hisense.monitormanage.entity.Camera; import com.hisense.monitormanage.entity.Scenic; import org.apache.ibatis.annotations.Select; +import org.springframework.stereotype.Repository; import java.util.List; +@Repository public interface ScenicMapper extends BaseMapper { //带去重 diff --git a/src/main/java/com/hisense/monitormanage/mapper/SedimentTrailMapper.java b/src/main/java/com/hisense/monitormanage/mapper/SedimentTrailMapper.java index 4ad2e8f..e4a7784 100644 --- a/src/main/java/com/hisense/monitormanage/mapper/SedimentTrailMapper.java +++ b/src/main/java/com/hisense/monitormanage/mapper/SedimentTrailMapper.java @@ -2,6 +2,7 @@ package com.hisense.monitormanage.mapper; import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.hisense.monitormanage.entity.SedimentTrail; +import org.springframework.stereotype.Repository; import java.util.List; import java.util.Map; @@ -13,6 +14,7 @@ import java.util.Map; * @Description TODO * @createTime 2022年05月09日 13:59:00 */ +@Repository public interface SedimentTrailMapper extends BaseMapper { public void batchaSave(List list); } diff --git a/src/main/java/com/hisense/monitormanage/mapper/TrailSanitationMapper.java b/src/main/java/com/hisense/monitormanage/mapper/TrailSanitationMapper.java index 537452c..f4a2dd0 100644 --- a/src/main/java/com/hisense/monitormanage/mapper/TrailSanitationMapper.java +++ b/src/main/java/com/hisense/monitormanage/mapper/TrailSanitationMapper.java @@ -4,10 +4,12 @@ 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 org.springframework.stereotype.Repository; import java.util.List; import java.util.Map; +@Repository public interface TrailSanitationMapper extends BaseMapper { public void batchaSave(List list); diff --git a/src/main/java/com/hisense/monitormanage/mapper/UserLoginMapper.java b/src/main/java/com/hisense/monitormanage/mapper/UserLoginMapper.java index d432825..7d106f2 100644 --- a/src/main/java/com/hisense/monitormanage/mapper/UserLoginMapper.java +++ b/src/main/java/com/hisense/monitormanage/mapper/UserLoginMapper.java @@ -3,7 +3,9 @@ package com.hisense.monitormanage.mapper; import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.hisense.monitormanage.entity.UserLogin; import org.apache.ibatis.annotations.Select; +import org.springframework.stereotype.Repository; +@Repository public interface UserLoginMapper extends BaseMapper { @Select("select * from t_user_login")