删除风机列表批量操控api接口;由前端实现多个风机全控功能

This commit is contained in:
houwei 2024-11-05 14:56:57 +08:00
parent f64b357a1a
commit d7e93736e5
2 changed files with 0 additions and 23 deletions

View File

@ -42,15 +42,4 @@ public class WindTurbinesPageController {
List<WindTurbinesPageVo> windTurbinesPageVos = windTurbinesPageService.queryAllWindTurbinesPages();
return R.success(windTurbinesPageVos);
}
/**
*
* @param controlList 遥控List
* @return 成功或者失败
*/
@PostMapping ("/windTurbinesControl")
public R<Void> windTurbinesControl(HttpServletRequest request ,@RequestBody List<CommandInfoDto> controlList){
windTurbinesPageService.windTurbinesControl(request,controlList);
return R.success();
}
}

View File

@ -120,16 +120,4 @@ public class WindTurbinesPageService {
log.debug(stopWatch.prettyPrint(TimeUnit.SECONDS));
return windTurbinesPageVos;
}
public void windTurbinesControl(HttpServletRequest request,List<CommandInfoDto> controlList) {
for (CommandInfoDto item : controlList) {
try {
optService.executeOperation(request,item);
} catch (Exception e) {
log.error("下控失败", e);
throw new ServiceException("下控失败" + e);
}
}
}
}