| | |
| | | return toAjax(ardTankLockService.deleteArdTankLockById(id)); |
| | | } |
| | | |
| | | @ApiOperation("查询全部电磁锁") |
| | | /*@ApiOperation("查询全部电磁锁") |
| | | @PreAuthorize("@ss.hasPermi('sy:lock:getAll')") |
| | | @GetMapping("/getAll") |
| | | public Results getAll() { |
| | | String userId = SecurityUtils.getUserId(); |
| | | Results result = ardTankLockService.getAll(userId); |
| | | return result; |
| | | }*/ |
| | | |
| | | @ApiOperation("查询全部电磁锁") |
| | | @PreAuthorize("@ss.hasPermi('sy:lock:getAll')") |
| | | @GetMapping("/getAll") |
| | | public TableDataInfo getAll() { |
| | | startPage(); |
| | | String userId = SecurityUtils.getUserId(); |
| | | List<Map<String,Object>> result = ardTankLockService.getAll(userId); |
| | | return getDataTable(result); |
| | | } |
| | | |
| | | /** |