| | |
| | | } |
| | | |
| | | @GetMapping("/error/list") |
| | | public ResponseVO<Object> listReportError(BaseConditionVO conditionVO, @RequestParam(required = false) String keyword) { |
| | | public ResponseVO<Object> listReportError(BaseConditionVO conditionVO, @RequestParam(required = false) String keyword |
| | | , @RequestParam(required = false) Integer errorCode) { |
| | | if (!permissionConfig.check(MenuEnum.LIGHT_ERROR_LIST.getCode())) { |
| | | return ResponseUtil.fail("缺少对应用户权限"); |
| | | } |
| | | List<LightReportErrorBo> list = lightReportErrorService.listReportError(conditionVO.getPageNo(), conditionVO.getPageSize(), keyword); |
| | | List<LightReportErrorBo> list = lightReportErrorService.listReportError(conditionVO.getPageNo(), conditionVO.getPageSize(), keyword, errorCode); |
| | | return ResponseUtil.success(list); |
| | | } |
| | | |
| | |
| | | List<Map<String, Object>> list = lightService.controlBrightness(paramList); |
| | | return ResponseUtil.success(list); |
| | | } |
| | | |
| | | @PostMapping("/EnergySaving") |
| | | public ResponseVO<Object> controlEnergySaving() { |
| | | return ResponseUtil.success(lightService.controlEnergySaving()); |