|
|
@ -155,6 +155,9 @@ public class IcdConfigController extends BasicController {
|
|
|
|
@PostMapping("startCollect")
|
|
|
|
@PostMapping("startCollect")
|
|
|
|
@ApiOperation("开始实时采集转发")
|
|
|
|
@ApiOperation("开始实时采集转发")
|
|
|
|
public Response<String> startCollect(@Validated @NotNull(message = "iedId不能为空!") Integer iedId) throws Exception {
|
|
|
|
public Response<String> startCollect(@Validated @NotNull(message = "iedId不能为空!") Integer iedId) throws Exception {
|
|
|
|
|
|
|
|
if (iedId == null) {
|
|
|
|
|
|
|
|
throw new BusinessException("iedId不能为空!");
|
|
|
|
|
|
|
|
}
|
|
|
|
if (RealTimeDataService.inDoing) {
|
|
|
|
if (RealTimeDataService.inDoing) {
|
|
|
|
throw new BusinessException("请稍后再操作");
|
|
|
|
throw new BusinessException("请稍后再操作");
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -165,6 +168,9 @@ public class IcdConfigController extends BasicController {
|
|
|
|
@PostMapping("stopCollect")
|
|
|
|
@PostMapping("stopCollect")
|
|
|
|
@ApiOperation("停止实时采集转发")
|
|
|
|
@ApiOperation("停止实时采集转发")
|
|
|
|
public Response<String> stopCollect(@Validated @NotNull(message = "iedId不能为空!") Integer iedId) throws Exception {
|
|
|
|
public Response<String> stopCollect(@Validated @NotNull(message = "iedId不能为空!") Integer iedId) throws Exception {
|
|
|
|
|
|
|
|
if (iedId == null) {
|
|
|
|
|
|
|
|
throw new BusinessException("iedId不能为空!");
|
|
|
|
|
|
|
|
}
|
|
|
|
if (RealTimeDataService.inDoing) {
|
|
|
|
if (RealTimeDataService.inDoing) {
|
|
|
|
throw new BusinessException("请稍后再操作");
|
|
|
|
throw new BusinessException("请稍后再操作");
|
|
|
|
}
|
|
|
|
}
|
|
|
|