| | |
| | | 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; |
| | |
| | | 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, "罐车锁操控日志数据"); |
| | | }*/ |
| | | |
| | | } |