| | |
| | | @AnonymousAccess |
| | | @PostMapping("/poleReset/{poleId}") |
| | | public ResponseVO<Object> poleReset(@PathVariable Long poleId) { |
| | | // if (!permissionConfig.check(MenuEnum.POLE_REAL_RESET.getCode())) { |
| | | // return ResponseUtil.fail("缺少对应用户权限"); |
| | | // } |
| | | if (!permissionConfig.check(MenuEnum.POLE_REAL_RESET.getCode())) { |
| | | return ResponseUtil.fail("缺少对应用户权限"); |
| | | } |
| | | return ResponseUtil.success(poleService.poleReset(poleId)); |
| | | } |
| | | |
| | |
| | | @AnonymousAccess |
| | | @PostMapping("/listStatusByDeviceCode") |
| | | public ResponseVO<Object> getStatusById(@RequestBody String[] deviceCodeList) { |
| | | // if (!permissionConfig.check(MenuEnum.GET_STATE_BY_DEVICECODE.getCode())) { |
| | | // return ResponseUtil.fail("缺少对应用户权限"); |
| | | // } |
| | | if (!permissionConfig.check(MenuEnum.GET_STATE_BY_DEVICECODE.getCode())) { |
| | | return ResponseUtil.fail("缺少对应用户权限"); |
| | | } |
| | | for (String s : deviceCodeList) { |
| | | if (s == null) { |
| | | return ResponseUtil.fail("参数不能为空"); |
| | |
| | | @AnonymousAccess |
| | | @PostMapping("/isRegisterByCode") |
| | | public ResponseVO<Object> getStatusByCode() { |
| | | // if (!permissionConfig.check(MenuEnum.GET_STATE_BY_DEVICECODE.getCode())) { |
| | | /*// if (!permissionConfig.check(MenuEnum.GET_STATE_BY_DEVICECODE.getCode())) { |
| | | // return ResponseUtil.fail("缺少对应用户权限"); |
| | | // } |
| | | // }*/ |
| | | ArrayList<String> deviceCodeList = new ArrayList<>(); |
| | | deviceCodeList.add("baseDevice01"); |
| | | deviceCodeList.add("baseDevice02"); |
| | |
| | | |
| | | |
| | | /** |
| | | * 查找自己拥有的灯杆 |
| | | * 查找拥有的灯杆 |
| | | */ |
| | | @PostMapping("/getOwnerPole/{cilentId}") |
| | | public ResponseVO<Object> getOwnerPole(BaseConditionVO baseConditionVO, @RequestParam(value = "keyword", required = false) String keyword |