From 3503011df6f093da6f6ac319f76ea1d75e16cbb2 Mon Sep 17 00:00:00 2001 From: wangyinsheng <2310589501@qq.com> Date: Sat, 21 Sep 2024 13:53:52 +0800 Subject: [PATCH] =?UTF-8?q?add:=E6=9F=A5=E8=AF=A2=E6=89=80=E6=9C=89?= =?UTF-8?q?=E7=94=B5=E7=AB=99=E8=A7=86=E9=A2=91=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../controller/StationVideoTypeController.java | 7 +++++ .../station/mapper/StationVideoTypeMapper.java | 2 ++ .../station/mapper/StationVideoTypeMapper.xml | 33 ++++++++++++++++++++++ .../station/service/IStationVideoTypeService.java | 3 ++ .../service/impl/StationVideoTypeServiceImpl.java | 5 ++++ 5 files changed, 50 insertions(+) diff --git a/hzims-service/operational/src/main/java/com/hnac/hzims/operational/station/controller/StationVideoTypeController.java b/hzims-service/operational/src/main/java/com/hnac/hzims/operational/station/controller/StationVideoTypeController.java index a5f89ec..252e1c4 100644 --- a/hzims-service/operational/src/main/java/com/hnac/hzims/operational/station/controller/StationVideoTypeController.java +++ b/hzims-service/operational/src/main/java/com/hnac/hzims/operational/station/controller/StationVideoTypeController.java @@ -386,4 +386,11 @@ public class StationVideoTypeController extends BladeController { public R> getVideoByPointCodes(@RequestParam @ApiParam("视频设备编号") String pointCodes) { return R.data(stationVideoTypeService.getVideoByPointCodes(pointCodes)); } + + @GetMapping ("/listAll") + @ApiOperationSupport(order = 200) + @ApiOperation(value = "获取所有站点视频") + public R> listAll() { + return R.data(stationVideoTypeService.listAll()); + } } diff --git a/hzims-service/operational/src/main/java/com/hnac/hzims/operational/station/mapper/StationVideoTypeMapper.java b/hzims-service/operational/src/main/java/com/hnac/hzims/operational/station/mapper/StationVideoTypeMapper.java index 38672d7..f37a9a6 100644 --- a/hzims-service/operational/src/main/java/com/hnac/hzims/operational/station/mapper/StationVideoTypeMapper.java +++ b/hzims-service/operational/src/main/java/com/hnac/hzims/operational/station/mapper/StationVideoTypeMapper.java @@ -44,4 +44,6 @@ public interface StationVideoTypeMapper extends UserDataScopeBaseMapper getAgencyStationsByVideo(@Param("type") String type); + + List listAll(); } diff --git a/hzims-service/operational/src/main/java/com/hnac/hzims/operational/station/mapper/StationVideoTypeMapper.xml b/hzims-service/operational/src/main/java/com/hnac/hzims/operational/station/mapper/StationVideoTypeMapper.xml index 23ec9ce..ca41715 100644 --- a/hzims-service/operational/src/main/java/com/hnac/hzims/operational/station/mapper/StationVideoTypeMapper.xml +++ b/hzims-service/operational/src/main/java/com/hnac/hzims/operational/station/mapper/StationVideoTypeMapper.xml @@ -71,4 +71,37 @@ order by hs.sort + + diff --git a/hzims-service/operational/src/main/java/com/hnac/hzims/operational/station/service/IStationVideoTypeService.java b/hzims-service/operational/src/main/java/com/hnac/hzims/operational/station/service/IStationVideoTypeService.java index cb79a30..de5618c 100644 --- a/hzims-service/operational/src/main/java/com/hnac/hzims/operational/station/service/IStationVideoTypeService.java +++ b/hzims-service/operational/src/main/java/com/hnac/hzims/operational/station/service/IStationVideoTypeService.java @@ -79,4 +79,7 @@ public interface IStationVideoTypeService extends IService getHikVideoAreaTree(Long platformId); List getVideoByPointCodes(String pointCodes); + + List listAll(); + } diff --git a/hzims-service/operational/src/main/java/com/hnac/hzims/operational/station/service/impl/StationVideoTypeServiceImpl.java b/hzims-service/operational/src/main/java/com/hnac/hzims/operational/station/service/impl/StationVideoTypeServiceImpl.java index c2227e9..443da4a 100644 --- a/hzims-service/operational/src/main/java/com/hnac/hzims/operational/station/service/impl/StationVideoTypeServiceImpl.java +++ b/hzims-service/operational/src/main/java/com/hnac/hzims/operational/station/service/impl/StationVideoTypeServiceImpl.java @@ -366,4 +366,9 @@ public class StationVideoTypeServiceImpl extends ServiceImpl qw = Wrappers.lambdaQuery().in(StationVideoTypeEntity::getPointCode, pointCodeList); return this.list(qw); } + + @Override + public List listAll() { + return baseMapper.listAll(); + } }