|
@@ -95,7 +95,7 @@ public class BaseCameraManagementController extends BaseController {
|
|
|
* 所有相机列表+权限
|
|
|
*/
|
|
|
@GetMapping("/selectCameraAll")
|
|
|
- @Log(title = "相机台账管理", businessType = BusinessType.SELECT)
|
|
|
+ @Log(title = "相机列表", businessType = BusinessType.SELECT)
|
|
|
public AjaxResult selectCameraAll() {
|
|
|
BaseCameraManagementVo baseCameraManagementVo = (BaseCameraManagementVo) dataScoreUtil.setDataScore(getUserId(), new BaseCameraManagementVo());
|
|
|
List<BaseCameraManagementHomeVo> baseCameraManagements = baseCameraManagementService.selectCameraAll(baseCameraManagementVo);
|
|
@@ -103,7 +103,7 @@ public class BaseCameraManagementController extends BaseController {
|
|
|
}
|
|
|
|
|
|
@PostMapping(value = "/homeGetInfo")
|
|
|
- @Log(title = "相机台账管理", businessType = BusinessType.SELECT)
|
|
|
+ @Log(title = "首页地图相机信息", businessType = BusinessType.SELECT)
|
|
|
public AjaxResult homeGetInfo(@RequestBody BaseCameraManagementHomeVo baseCameraManagementHomeVo) {
|
|
|
Integer isLock = baseCameraManagementHomeVo.getIsLock();
|
|
|
Long id = baseCameraManagementHomeVo.getId();
|
|
@@ -202,7 +202,7 @@ public class BaseCameraManagementController extends BaseController {
|
|
|
* @return
|
|
|
*/
|
|
|
@PostMapping("/list")
|
|
|
- @Log(title = "相机台账管理", businessType = BusinessType.SELECT)
|
|
|
+ @Log(title = "相机台账分页列表", businessType = BusinessType.SELECT)
|
|
|
public AjaxResult selectBaseAccountManagement(@RequestBody BaseCameraManagementVo baseCameraManagementVo) {
|
|
|
baseCameraManagementVo = (BaseCameraManagementVo) dataScoreUtil.setDataScore(getUserId(), baseCameraManagementVo);
|
|
|
if (!ObjectUtils.isEmpty(baseCameraManagementVo.getBeginMile())) {
|
|
@@ -267,7 +267,7 @@ public class BaseCameraManagementController extends BaseController {
|
|
|
* @return
|
|
|
*/
|
|
|
@RequestMapping("/remove/{accountManagementIds}")
|
|
|
- @Log(title = "相机台账管理", businessType = BusinessType.DELETE)
|
|
|
+ @Log(title = "删除相机台账管理信息", businessType = BusinessType.DELETE)
|
|
|
@Transactional
|
|
|
public AjaxResult removeAccountManagement(@PathVariable List<Long> accountManagementIds) {
|
|
|
for (Long accountManagementId : accountManagementIds) {
|
|
@@ -290,7 +290,7 @@ public class BaseCameraManagementController extends BaseController {
|
|
|
*/
|
|
|
@PostMapping("/saveAccountManagement")
|
|
|
@Transactional
|
|
|
- @Log(title = "相机台账管理", businessType = BusinessType.INSERT)
|
|
|
+ @Log(title = "新增相机台账管理信息", businessType = BusinessType.INSERT)
|
|
|
public AjaxResult saveAccountManagement(@RequestBody BaseCameraManagement baseCameraManagement) {
|
|
|
try {
|
|
|
String idempotence = idempotenceUtils.getIdempotence(baseCameraManagement.getCameraCode());
|
|
@@ -372,7 +372,7 @@ public class BaseCameraManagementController extends BaseController {
|
|
|
* @return
|
|
|
*/
|
|
|
@PostMapping("/editAccountManagement")
|
|
|
- @Log(title = "相机台账管理", businessType = BusinessType.UPDATE)
|
|
|
+ @Log(title = "修改相机台账管理信息", businessType = BusinessType.UPDATE)
|
|
|
public AjaxResult editAccountManagement(@RequestBody BaseCameraManagement baseCameraManagement) {
|
|
|
LambdaQueryWrapper<BaseCameraManagement> lw = new LambdaQueryWrapper<BaseCameraManagement>();
|
|
|
if (!ObjectUtils.isEmpty(baseCameraManagement.getCameraCode())) {
|
|
@@ -430,7 +430,7 @@ public class BaseCameraManagementController extends BaseController {
|
|
|
}
|
|
|
|
|
|
@GetMapping(value = "/{id}")
|
|
|
- @Log(title = "相机台账管理", businessType = BusinessType.MESSAGE)
|
|
|
+ @Log(title = "根据ID获取相机信息", businessType = BusinessType.MESSAGE)
|
|
|
public AjaxResult getInfo(@PathVariable Long id) {
|
|
|
BaseCameraManagement baseCameraManagement = baseCameraManagementService.getById(id);
|
|
|
LambdaQueryWrapper<BaseRailwayManagement> queryWrapper = new LambdaQueryWrapper<BaseRailwayManagement>();
|
|
@@ -487,7 +487,7 @@ public class BaseCameraManagementController extends BaseController {
|
|
|
}
|
|
|
|
|
|
@GetMapping("/getDate/{cameraCode}")
|
|
|
- @Log(title = "相机台账管理", businessType = BusinessType.OTHER)
|
|
|
+ @Log(title = "根据相机编码获取报警信息", businessType = BusinessType.OTHER)
|
|
|
public AjaxResult getDate(@PathVariable String cameraCode) {
|
|
|
LambdaQueryWrapper<BaseCameraManagement> lw = new LambdaQueryWrapper<BaseCameraManagement>();
|
|
|
if (!ObjectUtils.isEmpty(cameraCode)) {
|
|
@@ -541,7 +541,7 @@ public class BaseCameraManagementController extends BaseController {
|
|
|
* @throws Exception
|
|
|
*/
|
|
|
@PostMapping("/importBaseAccountManagement")
|
|
|
- @Log(title = "相机台账管理", businessType = BusinessType.IMPORT)
|
|
|
+ @Log(title = "台账管理导入", businessType = BusinessType.IMPORT)
|
|
|
public AjaxResult importBaseAccountManagement(MultipartFile file, boolean updateSupport) throws Exception {
|
|
|
try {
|
|
|
List<BaseCameraManagementVos> accountManageList;
|
|
@@ -570,7 +570,7 @@ public class BaseCameraManagementController extends BaseController {
|
|
|
* @param response
|
|
|
*/
|
|
|
@PostMapping("/exportBaseAccountManagement")
|
|
|
- @Log(title = "相机台账管理", businessType = BusinessType.EXPORT)
|
|
|
+ @Log(title = "导出台账管理", businessType = BusinessType.EXPORT)
|
|
|
public void exportBaseAccountManagement(HttpServletResponse response, @RequestBody BaseCameraManagementVo baseCameraManagementVo) {
|
|
|
baseCameraManagementVo = (BaseCameraManagementVo) dataScoreUtil.setDataScore(getUserId(), baseCameraManagementVo);
|
|
|
if (!ObjectUtils.isEmpty(baseCameraManagementVo.getBeginMile())) {
|
|
@@ -621,7 +621,7 @@ public class BaseCameraManagementController extends BaseController {
|
|
|
|
|
|
|
|
|
@GetMapping("/downloaExcel")
|
|
|
- @Log(title = "相机台账管理", businessType = BusinessType.OTHER)
|
|
|
+ @Log(title = "相机台账下载模板", businessType = BusinessType.OTHER)
|
|
|
public void downloadZip(HttpServletResponse response) {
|
|
|
try {
|
|
|
InputStream resourceAsStream = this.getClass().getResourceAsStream("/template/baseCameraManagement.xlsx");
|
|
@@ -634,7 +634,7 @@ public class BaseCameraManagementController extends BaseController {
|
|
|
}
|
|
|
|
|
|
@GetMapping("/api/records/{cameraCode}")
|
|
|
- @Log(title = "相机台账管理", businessType = BusinessType.OTHER)
|
|
|
+ @Log(title = "获取相机实时流", businessType = BusinessType.OTHER)
|
|
|
public AjaxResult apiRecords(@PathVariable @NotNull(message = "相机编码不能为空") String cameraCode) {
|
|
|
LambdaQueryWrapper<BaseCameraManagement> lw = new LambdaQueryWrapper<BaseCameraManagement>();
|
|
|
lw.eq(BaseCameraManagement::getCameraCode, cameraCode);
|
|
@@ -646,7 +646,7 @@ public class BaseCameraManagementController extends BaseController {
|
|
|
}
|
|
|
|
|
|
@GetMapping("/api/records/{cameraCode}/{flay}")
|
|
|
- @Log(title = "相机台账管理", businessType = BusinessType.OTHER)
|
|
|
+ @Log(title = "获取相机实时流", businessType = BusinessType.OTHER)
|
|
|
public AjaxResult apiRecords(@PathVariable @NotNull(message = "相机编码不能为空") String cameraCode,
|
|
|
@PathVariable @NotNull(message = "条件不能为空") boolean flay) {
|
|
|
LambdaQueryWrapper<BaseCameraManagement> lw = new LambdaQueryWrapper<BaseCameraManagement>();
|
|
@@ -659,7 +659,7 @@ public class BaseCameraManagementController extends BaseController {
|
|
|
}
|
|
|
|
|
|
@GetMapping("/api/records/{cameraCode}/{flay}/{format}")
|
|
|
- @Log(title = "相机台账管理", businessType = BusinessType.OTHER)
|
|
|
+ @Log(title = "获取相机实时流", businessType = BusinessType.OTHER)
|
|
|
public AjaxResult apiRecords(@PathVariable @NotNull(message = "相机编码不能为空") String cameraCode,
|
|
|
@PathVariable @NotNull(message = "条件不能为空") boolean flay,
|
|
|
@PathVariable @NotNull(message = "格式不能为空") String format) {
|
|
@@ -673,7 +673,7 @@ public class BaseCameraManagementController extends BaseController {
|
|
|
}
|
|
|
|
|
|
@GetMapping("/api/recordsList")
|
|
|
- @Log(title = "相机台账管理", businessType = BusinessType.OTHER)
|
|
|
+ @Log(title = "批量获取相机实时流", businessType = BusinessType.OTHER)
|
|
|
public AjaxResult apiRecordsList(@RequestBody
|
|
|
@NotNull(message = "相机编码不能为空")
|
|
|
List<String> cameraCodes) {
|
|
@@ -711,7 +711,7 @@ public class BaseCameraManagementController extends BaseController {
|
|
|
}
|
|
|
|
|
|
@PostMapping("/api/play")
|
|
|
- @Log(title = "相机台账管理", businessType = BusinessType.OTHER)
|
|
|
+ @Log(title = "获取相机回放视频", businessType = BusinessType.OTHER)
|
|
|
public AjaxResult play(@Validated @RequestBody BaseCameraResVo vo) {
|
|
|
LambdaQueryWrapper<BaseCameraManagement> lw = new LambdaQueryWrapper<BaseCameraManagement>();
|
|
|
lw.eq(BaseCameraManagement::getCameraCode, vo.getCameraCode());
|
|
@@ -728,7 +728,7 @@ public class BaseCameraManagementController extends BaseController {
|
|
|
}
|
|
|
|
|
|
@GetMapping("/totalNumberOfDevices")
|
|
|
- @Log(title = "相机台账管理", businessType = BusinessType.OTHER)
|
|
|
+ @Log(title = "获取相机总条数", businessType = BusinessType.OTHER)
|
|
|
public AjaxResult totalNumberOfDevices() {
|
|
|
long count = baseCameraManagementService.count();
|
|
|
return success(count);
|
|
@@ -743,7 +743,7 @@ public class BaseCameraManagementController extends BaseController {
|
|
|
* @return
|
|
|
*/
|
|
|
@PostMapping("/cameraTree")
|
|
|
- @Log(title = "相机台账管理", businessType = BusinessType.OTHER)
|
|
|
+ @Log(title = "相机树", businessType = BusinessType.OTHER)
|
|
|
public AjaxResult cameraTree(@RequestBody CameraTreeVo cameraTreeVo) {
|
|
|
cameraTreeVo = (CameraTreeVo) dataScoreUtil.setDataScore(getUserId(), cameraTreeVo);
|
|
|
int count = 0;
|
|
@@ -841,7 +841,7 @@ public class BaseCameraManagementController extends BaseController {
|
|
|
}
|
|
|
|
|
|
@GetMapping("/endRecording/{id}")
|
|
|
- @Log(title = "相机台账管理", businessType = BusinessType.OTHER)
|
|
|
+ @Log(title = "关闭录制视频", businessType = BusinessType.OTHER)
|
|
|
public AjaxResult endRecording(@PathVariable Long id) {
|
|
|
List<SysDictData> data = dictTypeService.selectDictDataByType("management_transcribe_switch");
|
|
|
if (data.get(0).getDictValue().equals("true")) {
|
|
@@ -873,7 +873,7 @@ public class BaseCameraManagementController extends BaseController {
|
|
|
|
|
|
|
|
|
@GetMapping("/startRecording/{id}")
|
|
|
- @Log(title = "相机台账管理", businessType = BusinessType.OTHER)
|
|
|
+ @Log(title = "开启录制视频", businessType = BusinessType.OTHER)
|
|
|
public AjaxResult startRecording(@PathVariable Long id) throws Exception {
|
|
|
List<SysDictData> data = dictTypeService.selectDictDataByType("management_transcribe_switch");
|
|
|
if (data.get(0).getDictValue().equals("true")) {
|
|
@@ -905,7 +905,7 @@ public class BaseCameraManagementController extends BaseController {
|
|
|
}
|
|
|
|
|
|
@GetMapping(value = "/getAlarm/{cameraCode}")
|
|
|
- @Log(title = "相机台账管理", businessType = BusinessType.MESSAGE)
|
|
|
+ @Log(title = "根据相机编码获取报警信息", businessType = BusinessType.MESSAGE)
|
|
|
public AjaxResult getAlarm(@PathVariable String cameraCode) {
|
|
|
String dictLabel=null;
|
|
|
List<SysDictData> sysAlarmType = dictDataMapper.selectDictDataByType("sys_alarm_type");
|
|
@@ -995,7 +995,7 @@ public class BaseCameraManagementController extends BaseController {
|
|
|
|
|
|
|
|
|
@PostMapping("/api/record")
|
|
|
- @Log(title = "相机台账管理", businessType = BusinessType.OTHER)
|
|
|
+ @Log(title = "获取相机回放视频", businessType = BusinessType.OTHER)
|
|
|
public AjaxResult record(@Validated @RequestBody BaseCameraResVo vo) {
|
|
|
LambdaQueryWrapper<BaseCameraManagement> lw = new LambdaQueryWrapper<BaseCameraManagement>();
|
|
|
lw.eq(BaseCameraManagement::getCameraCode, vo.getCameraCode());
|
|
@@ -1028,7 +1028,7 @@ public class BaseCameraManagementController extends BaseController {
|
|
|
|
|
|
|
|
|
@GetMapping("/api/getRecordByAlarmId")
|
|
|
- @Log(title = "相机台账管理", businessType = BusinessType.OTHER)
|
|
|
+ @Log(title = "相机回放视频", businessType = BusinessType.OTHER)
|
|
|
public AjaxResult getRecordByAlarmId(@RequestParam("alarmId") String alarmId) {
|
|
|
|
|
|
LambdaQueryWrapper<MsgAlarm> wrapper = new LambdaQueryWrapper<>();
|
|
@@ -1062,6 +1062,7 @@ public class BaseCameraManagementController extends BaseController {
|
|
|
* @return
|
|
|
*/
|
|
|
@GetMapping("/nightVision/{code}/{mode}")
|
|
|
+ @Log(title = "相机夜视切换", businessType = BusinessType.OTHER)
|
|
|
public AjaxResult nightVision(@PathVariable("code") String code, @PathVariable("mode") Integer mode) {
|
|
|
BaseCameraManagement baseCameraManagement = baseCameraManagementService.getOne(new LambdaQueryWrapper<BaseCameraManagement>()
|
|
|
.eq(BaseCameraManagement::getCameraCode, code));
|
|
@@ -1076,6 +1077,7 @@ public class BaseCameraManagementController extends BaseController {
|
|
|
* @return
|
|
|
*/
|
|
|
@GetMapping("/switchFrameRate")
|
|
|
+ @Log(title = "相机帧率切换", businessType = BusinessType.OTHER)
|
|
|
public AjaxResult switchFrameRate(@RequestParam("code") String code, @RequestParam("fps") String fps) {
|
|
|
BaseCameraManagement baseCameraManagement = baseCameraManagementService.getOne(new LambdaQueryWrapper<BaseCameraManagement>()
|
|
|
.eq(BaseCameraManagement::getCameraCode, code));
|
|
@@ -1090,7 +1092,7 @@ public class BaseCameraManagementController extends BaseController {
|
|
|
* @return
|
|
|
*/
|
|
|
@PostMapping("/deviceState/page")
|
|
|
- @Log(title = "相机台账管理", businessType = BusinessType.SELECT)
|
|
|
+ @Log(title = "设备状态分页列表", businessType = BusinessType.SELECT)
|
|
|
public AjaxResult deviceStatePage(@RequestBody DeviceStateResp deviceStateResp) {
|
|
|
deviceStateResp = (DeviceStateResp) dataScoreUtil.setDataScore(getUserId(), deviceStateResp);
|
|
|
IPage<DeviceStateResp> page = baseCameraManagementService.deviceStatePage(deviceStateResp);
|
|
@@ -1115,7 +1117,7 @@ public class BaseCameraManagementController extends BaseController {
|
|
|
* @return
|
|
|
*/
|
|
|
@PostMapping("/bell/deviceState/page")
|
|
|
- @Log(title = "相机台账管理", businessType = BusinessType.SELECT)
|
|
|
+ @Log(title = "铃铛进去的设备状态页面", businessType = BusinessType.SELECT)
|
|
|
public AjaxResult bellDeviceStatePage(@RequestBody DeviceStateResp deviceStateResp) {
|
|
|
deviceStateResp = (DeviceStateResp) dataScoreUtil.setDataScore(getUserId(), deviceStateResp);
|
|
|
IPage<DeviceStateResp> page = baseCameraManagementService.bellDeviceStatePage(deviceStateResp);
|
|
@@ -1139,7 +1141,7 @@ public class BaseCameraManagementController extends BaseController {
|
|
|
* @param response
|
|
|
*/
|
|
|
@PostMapping("/exportDeviceState")
|
|
|
- @Log(title = "相机台账管理", businessType = BusinessType.EXPORT)
|
|
|
+ @Log(title = "导出设备状态", businessType = BusinessType.EXPORT)
|
|
|
public void exportDeviceState(HttpServletResponse response, @RequestBody DeviceStateResp deviceStateResp) {
|
|
|
deviceStateResp = (DeviceStateResp) dataScoreUtil.setDataScore(getUserId(), deviceStateResp);
|
|
|
List<DeviceStateResp> deviceStateRespList = baseCameraManagementService.deviceStateRespList(deviceStateResp);
|
|
@@ -1155,6 +1157,7 @@ public class BaseCameraManagementController extends BaseController {
|
|
|
* 获取离线相机和电量低的相机
|
|
|
*/
|
|
|
@GetMapping("/getMalfunctionAndLowCameraManagement")
|
|
|
+ @Log(title = "获取离线相机和电量低的相机", businessType = BusinessType.SELECT)
|
|
|
public AjaxResult getMalfunctionAndLowCameraManagement() {
|
|
|
HashMap<String, Integer> map = new HashMap<>();
|
|
|
DeviceStateResp deviceStateResp1 = new DeviceStateResp();
|
|
@@ -1195,6 +1198,7 @@ public class BaseCameraManagementController extends BaseController {
|
|
|
* @return
|
|
|
*/
|
|
|
@GetMapping("cameraStateTotal")
|
|
|
+ @Log(title = "根据线路类型获取异常和非异常相机的数量", businessType = BusinessType.SELECT)
|
|
|
public AjaxResult cameraStateTotal() {
|
|
|
BaseCameraManagementVo baseCameraManagementVo = new BaseCameraManagementVo();
|
|
|
BaseCameraManagementVo baseCameraManagementVos = (BaseCameraManagementVo) dataScoreUtil.setDataScore(getUserId(), baseCameraManagementVo);
|
|
@@ -1207,6 +1211,7 @@ public class BaseCameraManagementController extends BaseController {
|
|
|
* @return
|
|
|
*/
|
|
|
@GetMapping("cameraStateList")
|
|
|
+ @Log(title = "首页设备状态列表", businessType = BusinessType.SELECT)
|
|
|
public AjaxResult cameraStateList() {
|
|
|
BaseCameraManagementVo baseCameraManagementVo = new BaseCameraManagementVo();
|
|
|
BaseCameraManagementVo baseCameraManagementVos = (BaseCameraManagementVo) dataScoreUtil.setDataScore(getUserId(), baseCameraManagementVo);
|