mapper层添加@Repository注解
This commit is contained in:
parent
dd61f0ef1e
commit
5f18744949
|
@ -3,9 +3,11 @@ package com.hisense.monitormanage.mapper;
|
||||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
import com.hisense.monitormanage.entity.Booth;
|
import com.hisense.monitormanage.entity.Booth;
|
||||||
import org.apache.ibatis.annotations.Select;
|
import org.apache.ibatis.annotations.Select;
|
||||||
|
import org.springframework.stereotype.Repository;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
@Repository
|
||||||
public interface BoothMapper extends BaseMapper<Booth> {
|
public interface BoothMapper extends BaseMapper<Booth> {
|
||||||
|
|
||||||
@Select("select * from t_booth where capture_time = #{captureTime}")
|
@Select("select * from t_booth where capture_time = #{captureTime}")
|
||||||
|
|
|
@ -6,6 +6,7 @@ import com.hisense.monitormanage.dto.BuildingRecordsDtos;
|
||||||
import com.hisense.monitormanage.entity.BuildingRecords;
|
import com.hisense.monitormanage.entity.BuildingRecords;
|
||||||
import org.apache.ibatis.annotations.Param;
|
import org.apache.ibatis.annotations.Param;
|
||||||
import org.apache.ibatis.annotations.Select;
|
import org.apache.ibatis.annotations.Select;
|
||||||
|
import org.springframework.stereotype.Repository;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
@ -17,6 +18,7 @@ import java.util.Map;
|
||||||
* @Description TODO
|
* @Description TODO
|
||||||
* @createTime 2022年05月17日 15:32:00
|
* @createTime 2022年05月17日 15:32:00
|
||||||
*/
|
*/
|
||||||
|
@Repository
|
||||||
public interface BuildingRecordsMapper extends BaseMapper<BuildingRecords> {
|
public interface BuildingRecordsMapper extends BaseMapper<BuildingRecords> {
|
||||||
public void batchSave(@Param("list") List<Map> list);
|
public void batchSave(@Param("list") List<Map> list);
|
||||||
|
|
||||||
|
|
|
@ -3,6 +3,7 @@ package com.hisense.monitormanage.mapper;
|
||||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
import com.hisense.monitormanage.entity.BuildingSite;
|
import com.hisense.monitormanage.entity.BuildingSite;
|
||||||
import org.apache.ibatis.annotations.Select;
|
import org.apache.ibatis.annotations.Select;
|
||||||
|
import org.springframework.stereotype.Repository;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
@ -13,6 +14,7 @@ import java.util.List;
|
||||||
* @Description TODO
|
* @Description TODO
|
||||||
* @createTime 2022年05月12日 13:59:00
|
* @createTime 2022年05月12日 13:59:00
|
||||||
*/
|
*/
|
||||||
|
@Repository
|
||||||
public interface BuildingSiteMapper extends BaseMapper<BuildingSite> {
|
public interface BuildingSiteMapper extends BaseMapper<BuildingSite> {
|
||||||
|
|
||||||
@Select("select * from t_building_new_site")
|
@Select("select * from t_building_new_site")
|
||||||
|
|
|
@ -9,9 +9,11 @@ import com.hisense.monitormanage.entity.CameraChannel;
|
||||||
import com.hisense.monitormanage.entity.Label;
|
import com.hisense.monitormanage.entity.Label;
|
||||||
import org.apache.ibatis.annotations.Param;
|
import org.apache.ibatis.annotations.Param;
|
||||||
import org.apache.ibatis.annotations.Select;
|
import org.apache.ibatis.annotations.Select;
|
||||||
|
import org.springframework.stereotype.Repository;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
@Repository
|
||||||
public interface CameraChannelMapper extends BaseMapper<CameraChannel> {
|
public interface CameraChannelMapper extends BaseMapper<CameraChannel> {
|
||||||
|
|
||||||
void updateCameraStatus(List<String> list);
|
void updateCameraStatus(List<String> list);
|
||||||
|
|
|
@ -5,9 +5,11 @@ import com.hisense.monitormanage.entity.Camera;
|
||||||
import com.hisense.monitormanage.dto.ChengguanDto;
|
import com.hisense.monitormanage.dto.ChengguanDto;
|
||||||
import com.hisense.monitormanage.entity.Picture;
|
import com.hisense.monitormanage.entity.Picture;
|
||||||
import org.apache.ibatis.annotations.Select;
|
import org.apache.ibatis.annotations.Select;
|
||||||
|
import org.springframework.stereotype.Repository;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
@Repository
|
||||||
public interface CameraMapper extends BaseMapper<Camera> {
|
public interface CameraMapper extends BaseMapper<Camera> {
|
||||||
|
|
||||||
@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")
|
@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")
|
||||||
|
|
|
@ -4,9 +4,11 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
import com.hisense.monitormanage.entity.CameraOrganization;
|
import com.hisense.monitormanage.entity.CameraOrganization;
|
||||||
import org.apache.ibatis.annotations.Param;
|
import org.apache.ibatis.annotations.Param;
|
||||||
import org.apache.ibatis.annotations.Select;
|
import org.apache.ibatis.annotations.Select;
|
||||||
|
import org.springframework.stereotype.Repository;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
@Repository
|
||||||
public interface CameraOrgenizationMapper extends BaseMapper<CameraOrganization> {
|
public interface CameraOrgenizationMapper extends BaseMapper<CameraOrganization> {
|
||||||
|
|
||||||
@Select("select * from t_camera_organization where parent_id = #{parentId}")
|
@Select("select * from t_camera_organization where parent_id = #{parentId}")
|
||||||
|
|
|
@ -2,6 +2,8 @@ package com.hisense.monitormanage.mapper;
|
||||||
|
|
||||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
import com.hisense.monitormanage.entity.CameraScenic;
|
import com.hisense.monitormanage.entity.CameraScenic;
|
||||||
|
import org.springframework.stereotype.Repository;
|
||||||
|
|
||||||
|
@Repository
|
||||||
public interface CameraScenicMapper extends BaseMapper<CameraScenic> {
|
public interface CameraScenicMapper extends BaseMapper<CameraScenic> {
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,6 +2,7 @@ package com.hisense.monitormanage.mapper;
|
||||||
|
|
||||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
import com.hisense.monitormanage.entity.CaseCityLaw;
|
import com.hisense.monitormanage.entity.CaseCityLaw;
|
||||||
|
import org.springframework.stereotype.Repository;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
@ -13,6 +14,7 @@ import java.util.Map;
|
||||||
* @Description TODO
|
* @Description TODO
|
||||||
* @createTime 2022年05月13日 16:22:00
|
* @createTime 2022年05月13日 16:22:00
|
||||||
*/
|
*/
|
||||||
|
@Repository
|
||||||
public interface CaseCityLawMapper extends BaseMapper<CaseCityLaw> {
|
public interface CaseCityLawMapper extends BaseMapper<CaseCityLaw> {
|
||||||
public void batchSave(List<Map> list);
|
public void batchSave(List<Map> list);
|
||||||
public void singleSave(Map map);
|
public void singleSave(Map map);
|
||||||
|
|
|
@ -5,9 +5,10 @@ import com.hisense.monitormanage.dto.ChannelPictureDto;
|
||||||
import com.hisense.monitormanage.dto.PictureDto;
|
import com.hisense.monitormanage.dto.PictureDto;
|
||||||
import com.hisense.monitormanage.entity.ChannelPicture;
|
import com.hisense.monitormanage.entity.ChannelPicture;
|
||||||
import org.apache.ibatis.annotations.Select;
|
import org.apache.ibatis.annotations.Select;
|
||||||
|
import org.springframework.stereotype.Repository;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
@Repository
|
||||||
public interface ChannelPictureMapper extends BaseMapper<ChannelPicture> {
|
public interface ChannelPictureMapper extends BaseMapper<ChannelPicture> {
|
||||||
|
|
||||||
@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")
|
@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")
|
||||||
|
|
|
@ -5,9 +5,11 @@ import com.hisense.monitormanage.dto.EventDto;
|
||||||
import com.hisense.monitormanage.entity.Event;
|
import com.hisense.monitormanage.entity.Event;
|
||||||
import org.apache.ibatis.annotations.Param;
|
import org.apache.ibatis.annotations.Param;
|
||||||
import org.apache.ibatis.annotations.Select;
|
import org.apache.ibatis.annotations.Select;
|
||||||
|
import org.springframework.stereotype.Repository;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
@Repository
|
||||||
public interface EventMapper extends BaseMapper<Event> {
|
public interface EventMapper extends BaseMapper<Event> {
|
||||||
|
|
||||||
List<EventDto> selectEvent(@Param("page") Integer page,@Param("pageSize") Integer pageSize);
|
List<EventDto> selectEvent(@Param("page") Integer page,@Param("pageSize") Integer pageSize);
|
||||||
|
|
|
@ -3,9 +3,11 @@ package com.hisense.monitormanage.mapper;
|
||||||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
import com.hisense.monitormanage.entity.KeyArea;
|
import com.hisense.monitormanage.entity.KeyArea;
|
||||||
|
import org.springframework.stereotype.Repository;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
@Repository
|
||||||
public interface KeyAreaMapper extends BaseMapper<KeyArea> {
|
public interface KeyAreaMapper extends BaseMapper<KeyArea> {
|
||||||
|
|
||||||
List<KeyArea> seelctKeyAreaList(String timeId);
|
List<KeyArea> seelctKeyAreaList(String timeId);
|
||||||
|
|
|
@ -6,10 +6,12 @@ import com.hisense.monitormanage.dto.PassengerFlowDto;
|
||||||
import com.hisense.monitormanage.entity.PassengerFlow;
|
import com.hisense.monitormanage.entity.PassengerFlow;
|
||||||
import org.apache.ibatis.annotations.Param;
|
import org.apache.ibatis.annotations.Param;
|
||||||
import org.apache.ibatis.annotations.Select;
|
import org.apache.ibatis.annotations.Select;
|
||||||
|
import org.springframework.stereotype.Repository;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
|
@Repository
|
||||||
public interface PassengerFlowMapper extends BaseMapper<PassengerFlow> {
|
public interface PassengerFlowMapper extends BaseMapper<PassengerFlow> {
|
||||||
void batchSave(List<Map> list);
|
void batchSave(List<Map> list);
|
||||||
PassengerFlow getByMaxId();
|
PassengerFlow getByMaxId();
|
||||||
|
|
|
@ -2,6 +2,8 @@ package com.hisense.monitormanage.mapper;
|
||||||
|
|
||||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
import com.hisense.monitormanage.entity.PassengerTest;
|
import com.hisense.monitormanage.entity.PassengerTest;
|
||||||
|
import org.springframework.stereotype.Repository;
|
||||||
|
|
||||||
|
@Repository
|
||||||
public interface PassengerTestMapper extends BaseMapper<PassengerTest> {
|
public interface PassengerTestMapper extends BaseMapper<PassengerTest> {
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,9 +4,11 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
import com.hisense.monitormanage.dto.PeopleRecognizeDto;
|
import com.hisense.monitormanage.dto.PeopleRecognizeDto;
|
||||||
import com.hisense.monitormanage.entity.PeopleRecognize;
|
import com.hisense.monitormanage.entity.PeopleRecognize;
|
||||||
import org.apache.ibatis.annotations.Select;
|
import org.apache.ibatis.annotations.Select;
|
||||||
|
import org.springframework.stereotype.Repository;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
@Repository
|
||||||
public interface PeopleRecognizeMapper extends BaseMapper<PeopleRecognize> {
|
public interface PeopleRecognizeMapper extends BaseMapper<PeopleRecognize> {
|
||||||
@Select("select pr.*,cc.* from t_camera_channel cc JOIN t_people_recognize pr ON cc.channel_code = pr.channel_code")
|
@Select("select pr.*,cc.* from t_camera_channel cc JOIN t_people_recognize pr ON cc.channel_code = pr.channel_code")
|
||||||
List<PeopleRecognizeDto> selectPeopleRecognize();
|
List<PeopleRecognizeDto> selectPeopleRecognize();
|
||||||
|
|
|
@ -2,7 +2,9 @@ package com.hisense.monitormanage.mapper;
|
||||||
|
|
||||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
import com.hisense.monitormanage.entity.Project;
|
import com.hisense.monitormanage.entity.Project;
|
||||||
|
import org.springframework.stereotype.Repository;
|
||||||
|
|
||||||
|
@Repository
|
||||||
public interface ProjectMapper extends BaseMapper<Project> {
|
public interface ProjectMapper extends BaseMapper<Project> {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,6 +4,7 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
import com.hisense.monitormanage.entity.RoadData;
|
import com.hisense.monitormanage.entity.RoadData;
|
||||||
import org.apache.ibatis.annotations.Param;
|
import org.apache.ibatis.annotations.Param;
|
||||||
import org.apache.ibatis.annotations.Select;
|
import org.apache.ibatis.annotations.Select;
|
||||||
|
import org.springframework.stereotype.Repository;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
@ -15,6 +16,7 @@ import java.util.Map;
|
||||||
* @Description TODO
|
* @Description TODO
|
||||||
* @createTime 2022年05月11日 11:10:00
|
* @createTime 2022年05月11日 11:10:00
|
||||||
*/
|
*/
|
||||||
|
@Repository
|
||||||
public interface RoadDataMapper extends BaseMapper<RoadData> {
|
public interface RoadDataMapper extends BaseMapper<RoadData> {
|
||||||
public void batchSave(List<Map> list);
|
public void batchSave(List<Map> list);
|
||||||
|
|
||||||
|
|
|
@ -3,6 +3,7 @@ package com.hisense.monitormanage.mapper;
|
||||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
import com.hisense.monitormanage.entity.Sanitation;
|
import com.hisense.monitormanage.entity.Sanitation;
|
||||||
import org.apache.ibatis.annotations.Param;
|
import org.apache.ibatis.annotations.Param;
|
||||||
|
import org.springframework.stereotype.Repository;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
@ -14,6 +15,7 @@ import java.util.Map;
|
||||||
* @Description TODO
|
* @Description TODO
|
||||||
* @createTime 2022年05月19日 11:24:00
|
* @createTime 2022年05月19日 11:24:00
|
||||||
*/
|
*/
|
||||||
|
@Repository
|
||||||
public interface SanitationMapper extends BaseMapper<Sanitation> {
|
public interface SanitationMapper extends BaseMapper<Sanitation> {
|
||||||
void batchSave(@Param("list") List<Map> list);
|
void batchSave(@Param("list") List<Map> list);
|
||||||
void batchSaveSanitationRoad(@Param("list") List<Map> list);
|
void batchSaveSanitationRoad(@Param("list") List<Map> list);
|
||||||
|
|
|
@ -2,6 +2,7 @@ package com.hisense.monitormanage.mapper;
|
||||||
|
|
||||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
import com.hisense.monitormanage.entity.SanitationTask;
|
import com.hisense.monitormanage.entity.SanitationTask;
|
||||||
|
import org.springframework.stereotype.Repository;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author admin
|
* @author admin
|
||||||
|
@ -10,5 +11,6 @@ import com.hisense.monitormanage.entity.SanitationTask;
|
||||||
* @Description TODO
|
* @Description TODO
|
||||||
* @createTime 2022年05月20日 17:54:00
|
* @createTime 2022年05月20日 17:54:00
|
||||||
*/
|
*/
|
||||||
|
@Repository
|
||||||
public interface SanitationTaskMapper extends BaseMapper<SanitationTask> {
|
public interface SanitationTaskMapper extends BaseMapper<SanitationTask> {
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,9 +5,11 @@ import com.hisense.monitormanage.dto.ScenicCameraDto;
|
||||||
import com.hisense.monitormanage.entity.Camera;
|
import com.hisense.monitormanage.entity.Camera;
|
||||||
import com.hisense.monitormanage.entity.Scenic;
|
import com.hisense.monitormanage.entity.Scenic;
|
||||||
import org.apache.ibatis.annotations.Select;
|
import org.apache.ibatis.annotations.Select;
|
||||||
|
import org.springframework.stereotype.Repository;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
@Repository
|
||||||
public interface ScenicMapper extends BaseMapper<Scenic> {
|
public interface ScenicMapper extends BaseMapper<Scenic> {
|
||||||
|
|
||||||
//带去重
|
//带去重
|
||||||
|
|
|
@ -2,6 +2,7 @@ package com.hisense.monitormanage.mapper;
|
||||||
|
|
||||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
import com.hisense.monitormanage.entity.SedimentTrail;
|
import com.hisense.monitormanage.entity.SedimentTrail;
|
||||||
|
import org.springframework.stereotype.Repository;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
@ -13,6 +14,7 @@ import java.util.Map;
|
||||||
* @Description TODO
|
* @Description TODO
|
||||||
* @createTime 2022年05月09日 13:59:00
|
* @createTime 2022年05月09日 13:59:00
|
||||||
*/
|
*/
|
||||||
|
@Repository
|
||||||
public interface SedimentTrailMapper extends BaseMapper<SedimentTrail> {
|
public interface SedimentTrailMapper extends BaseMapper<SedimentTrail> {
|
||||||
public void batchaSave(List<Map> list);
|
public void batchaSave(List<Map> list);
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,10 +4,12 @@ package com.hisense.monitormanage.mapper;
|
||||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
import com.hisense.monitormanage.entity.TrailSanitation;
|
import com.hisense.monitormanage.entity.TrailSanitation;
|
||||||
import org.apache.ibatis.annotations.Select;
|
import org.apache.ibatis.annotations.Select;
|
||||||
|
import org.springframework.stereotype.Repository;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
|
@Repository
|
||||||
public interface TrailSanitationMapper extends BaseMapper<TrailSanitation> {
|
public interface TrailSanitationMapper extends BaseMapper<TrailSanitation> {
|
||||||
public void batchaSave(List<Map> list);
|
public void batchaSave(List<Map> list);
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,9 @@ package com.hisense.monitormanage.mapper;
|
||||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
import com.hisense.monitormanage.entity.UserLogin;
|
import com.hisense.monitormanage.entity.UserLogin;
|
||||||
import org.apache.ibatis.annotations.Select;
|
import org.apache.ibatis.annotations.Select;
|
||||||
|
import org.springframework.stereotype.Repository;
|
||||||
|
|
||||||
|
@Repository
|
||||||
public interface UserLoginMapper extends BaseMapper<UserLoginMapper> {
|
public interface UserLoginMapper extends BaseMapper<UserLoginMapper> {
|
||||||
|
|
||||||
@Select("select * from t_user_login")
|
@Select("select * from t_user_login")
|
||||||
|
|
Loading…
Reference in New Issue