删除风机列表批量操控api接口;由前端实现多个风机全控功能
This commit is contained in:
parent
f64b357a1a
commit
d7e93736e5
@ -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();
|
||||
}
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user