From 5b017324148ea92d96f9f16ade215463d6c712e5 Mon Sep 17 00:00:00 2001 From: liusuyi <1951119284@qq.com> Date: 星期六, 10 八月 2024 14:15:02 +0800 Subject: [PATCH] 优化:海康大华sdk断线重连机制 --- ard-work/src/main/java/com/ruoyi/sy/controller/ArdTankLockController.java | 33 +++++++++++++++++++++++++++++++++ 1 files changed, 33 insertions(+), 0 deletions(-) diff --git a/ard-work/src/main/java/com/ruoyi/sy/controller/ArdTankLockController.java b/ard-work/src/main/java/com/ruoyi/sy/controller/ArdTankLockController.java index 1c46df5..f50f023 100644 --- a/ard-work/src/main/java/com/ruoyi/sy/controller/ArdTankLockController.java +++ b/ard-work/src/main/java/com/ruoyi/sy/controller/ArdTankLockController.java @@ -8,6 +8,7 @@ import com.github.pagehelper.PageInfo; import com.ruoyi.common.utils.SecurityUtils; import com.ruoyi.common.utils.uuid.IdUtils; +import com.ruoyi.sy.domain.ArdTankLockProcessLog; import com.ruoyi.sy.domain.ArdTankWall; import com.ruoyi.sy.service.*; import com.ruoyi.utils.result.Results; @@ -417,4 +418,36 @@ dataTable.setMsg("鏌ヨ鎴愬姛"); return dataTable; } + + @ApiOperation("淇敼鐢电閿佷娇鑳�") + @PreAuthorize("@ss.hasPermi('sy:lock:updateLockEnableByCarId')") + @Log(title = "鐢电閿�" , businessType = BusinessType.UPDATE) + @PutMapping("/updateLockEnableByCarId") + public AjaxResult updateLockEnableByCarId(@RequestBody Map<String,Object> para) { + return toAjax(ardTankLockService.updateLockEnableByCarId(para)); + } + + @ApiOperation("鏍规嵁杞︾墝鍙锋煡璇㈢數纾侀攣鎵嬪姩鎿嶆帶璁板綍") + @PreAuthorize("@ss.hasPermi('sy:lock:getArdTankLockProcessLogByCarPlate')") + @PostMapping("/getArdTankLockProcessLogByCarPlate") + public TableDataInfo getArdTankLockProcessLogByCarPlate(@RequestBody Map<String,Object> para) { + Map<String,Object> result = ardTankLockProcessLogService.getArdTankLockProcessLogByCarPlate(para); + + TableDataInfo dataTable = new TableDataInfo(); + dataTable.setRows((List<Map<String,Object>>) result.get("list")); + dataTable.setTotal((Long) result.get("total")); + dataTable.setCode(200); + dataTable.setMsg("鏌ヨ鎴愬姛"); + return dataTable; + } + + /*@ApiOperation("鏍规嵁杞︾墝鍙峰鍑虹數纾侀攣鎵嬪姩鎿嶆帶璁板綍") + @PreAuthorize("@ss.hasPermi('sy:lock:exportArdTankLockProcessLog')") + @PostMapping("/exportArdTankLockProcessLog") + public void exportArdTankLockProcessLog(HttpServletResponse response, ArdTankLockProcessLog ardTankLockProcessLog) { + List<ArdTankLockProcessLog> list = ardTankLockProcessLogService.exportArdTankLockProcessLog(ardTankLockProcessLog.getCarPlate()); + ExcelUtil<ArdTankLockProcessLog> util = new ExcelUtil<ArdTankLockProcessLog>(ArdTankLockProcessLog. class); + util.exportExcel(response, list, "缃愯溅閿佹搷鎺ф棩蹇楁暟鎹�"); + }*/ + } -- Gitblit v1.9.3