| | |
| | | import com.ruoyi.common.utils.SecurityUtils; |
| | | import com.ruoyi.common.utils.uuid.IdUtils; |
| | | import com.ruoyi.sy.domain.ArdTankWall; |
| | | import com.ruoyi.sy.service.IArdTankLockProcessLogService; |
| | | import com.ruoyi.sy.service.IArdTankWallLockService; |
| | | import com.ruoyi.sy.service.IArdTankWallService; |
| | | import com.ruoyi.utils.result.Results; |
| | |
| | | |
| | | @Autowired |
| | | private IArdTankWallLockService ardTankWallLockService; |
| | | |
| | | @Autowired |
| | | private IArdTankLockProcessLogService ardTankLockProcessLogService; |
| | | |
| | | /** |
| | | * 查询电磁锁列表 |
| | |
| | | public AjaxResult deleteArdTankWallLockByLockId(@PathVariable String id) { |
| | | return toAjax(ardTankWallLockService.deleteArdTankWallLockByLockId(id)); |
| | | } |
| | | |
| | | /** |
| | | * 操控电磁锁 |
| | | */ |
| | | @ApiOperation("操控电磁锁") |
| | | @PreAuthorize("@ss.hasPermi('sy:lock:processArdTankLockByLockId')") |
| | | @Log(title = "电磁锁" , businessType = BusinessType.INSERT) |
| | | @PostMapping("/processArdTankLockByLockId") |
| | | public AjaxResult processArdTankLockByLockId(@RequestBody Map<String,String> para) { |
| | | String userId = SecurityUtils.getUserId(); |
| | | String username = SecurityUtils.getUsername(); |
| | | return AjaxResult.success(ardTankLockProcessLogService.processArdTankLockByLockId(userId,username,para)); |
| | | } |
| | | } |