|
@@ -102,7 +102,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);
|
|
@@ -110,7 +110,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();
|
|
@@ -209,7 +209,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())) {
|
|
@@ -274,7 +274,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) {
|
|
@@ -297,7 +297,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());
|
|
@@ -379,7 +379,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())) {
|
|
@@ -437,7 +437,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>();
|
|
@@ -494,7 +494,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)) {
|
|
@@ -548,7 +548,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;
|
|
@@ -577,7 +577,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())) {
|
|
@@ -628,7 +628,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");
|
|
@@ -641,7 +641,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);
|
|
@@ -653,7 +653,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>();
|
|
@@ -666,7 +666,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) {
|
|
@@ -680,7 +680,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) {
|
|
@@ -718,7 +718,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());
|
|
@@ -735,7 +735,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);
|
|
@@ -750,7 +750,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;
|
|
@@ -848,7 +848,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")) {
|
|
@@ -880,7 +880,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")) {
|
|
@@ -912,7 +912,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) {
|
|
|
LambdaQueryWrapper<BaseCameraManagement> queryWrapper = new LambdaQueryWrapper<BaseCameraManagement>();
|
|
|
if (!ObjectUtils.isEmpty(cameraCode)) {
|
|
@@ -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());
|
|
@@ -1018,7 +1018,7 @@ public class BaseCameraManagementController extends BaseController {
|
|
|
* @return
|
|
|
*/
|
|
|
@GetMapping("/api/getAlarmRecord")
|
|
|
- @Log(title = "相机台账管理", businessType = BusinessType.OTHER)
|
|
|
+ @Log(title = "报警记录回放视频", businessType = BusinessType.OTHER)
|
|
|
public AjaxResult getAlarmRecord(@RequestParam("alarmId") String alarmId) {
|
|
|
|
|
|
LambdaQueryWrapper<MsgAlarm> wrapper = new LambdaQueryWrapper<>();
|
|
@@ -1040,7 +1040,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<>();
|
|
@@ -1072,6 +1072,7 @@ public class BaseCameraManagementController extends BaseController {
|
|
|
* @return
|
|
|
*/
|
|
|
@GetMapping("/nightVision/{code}/{mode}")
|
|
|
+ @Log(title = "相机夜视切换", businessType = BusinessType.OTHER)
|
|
|
public AjaxResult nightVision(@PathVariable String code, Integer mode) {
|
|
|
BaseCameraManagement baseCameraManagement = baseCameraManagementService.getOne(new LambdaQueryWrapper<BaseCameraManagement>()
|
|
|
.eq(BaseCameraManagement::getCameraCode, code));
|
|
@@ -1086,6 +1087,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));
|
|
@@ -1100,7 +1102,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);
|
|
@@ -1124,7 +1126,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);
|
|
@@ -1148,7 +1150,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);
|
|
@@ -1164,6 +1166,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();
|
|
@@ -1203,6 +1206,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);
|
|
@@ -1215,6 +1219,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);
|