Browse Source

add:查询所有电站视频信息

zhongwei
wangyinsheng 2 months ago
parent
commit
3503011df6
  1. 7
      hzims-service/operational/src/main/java/com/hnac/hzims/operational/station/controller/StationVideoTypeController.java
  2. 2
      hzims-service/operational/src/main/java/com/hnac/hzims/operational/station/mapper/StationVideoTypeMapper.java
  3. 33
      hzims-service/operational/src/main/java/com/hnac/hzims/operational/station/mapper/StationVideoTypeMapper.xml
  4. 3
      hzims-service/operational/src/main/java/com/hnac/hzims/operational/station/service/IStationVideoTypeService.java
  5. 5
      hzims-service/operational/src/main/java/com/hnac/hzims/operational/station/service/impl/StationVideoTypeServiceImpl.java

7
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<List<StationVideoTypeEntity>> getVideoByPointCodes(@RequestParam @ApiParam("视频设备编号") String pointCodes) {
return R.data(stationVideoTypeService.getVideoByPointCodes(pointCodes));
}
@GetMapping ("/listAll")
@ApiOperationSupport(order = 200)
@ApiOperation(value = "获取所有站点视频")
public R<List<StationVideoTypeVO>> listAll() {
return R.data(stationVideoTypeService.listAll());
}
}

2
hzims-service/operational/src/main/java/com/hnac/hzims/operational/station/mapper/StationVideoTypeMapper.java

@ -44,4 +44,6 @@ public interface StationVideoTypeMapper extends UserDataScopeBaseMapper<StationV
*/
@UserDataAuth
List<StationEntity> getAgencyStationsByVideo(@Param("type") String type);
List<StationVideoTypeVO> listAll();
}

33
hzims-service/operational/src/main/java/com/hnac/hzims/operational/station/mapper/StationVideoTypeMapper.xml

@ -71,4 +71,37 @@
</where>
order by hs.sort
</select>
<select id="listAll" resultType="com.hnac.hzims.operational.station.vo.StationVideoTypeVO">
SELECT
hsvt.id,
hsvt.name,
hsvt.station_id,
hsvt.dept_id,
hsvt.is_hikvideo,
hsvt.address,
hsvt.type,
hsvt.live_source_address,
hsvt.point_code,
hsvt.tenant_id,
hsvt.create_time,
hsvt.update_time,
hsvt.create_user,
hsvt.update_user,
hsvt.is_deleted,
hsvt.status,
hsvt.create_dept,
hsvt.video_host,
hsvt.app_key,
hsvt.app_secret,
hsvt.sort,
hsvt.video_type,
hsvt.platform_id,
hs.`name` AS stationName
FROM `hzims_station_video_type` hsvt
LEFT JOIN hzims_station hs ON hsvt.station_id = hs.`code`
WHERE
hsvt.is_deleted = 0
AND hs.is_deleted = 0
</select>
</mapper>

3
hzims-service/operational/src/main/java/com/hnac/hzims/operational/station/service/IStationVideoTypeService.java

@ -79,4 +79,7 @@ public interface IStationVideoTypeService extends IService<StationVideoTypeEntit
List<HikVideoAreaTreeVO> getHikVideoAreaTree(Long platformId);
List<StationVideoTypeEntity> getVideoByPointCodes(String pointCodes);
List<StationVideoTypeVO> listAll();
}

5
hzims-service/operational/src/main/java/com/hnac/hzims/operational/station/service/impl/StationVideoTypeServiceImpl.java

@ -366,4 +366,9 @@ public class StationVideoTypeServiceImpl extends ServiceImpl<StationVideoTypeMap
LambdaQueryWrapper<StationVideoTypeEntity> qw = Wrappers.<StationVideoTypeEntity>lambdaQuery().in(StationVideoTypeEntity::getPointCode, pointCodeList);
return this.list(qw);
}
@Override
public List<StationVideoTypeVO> listAll() {
return baseMapper.listAll();
}
}

Loading…
Cancel
Save