修改bug
This commit is contained in:
@@ -10,7 +10,10 @@ import cn.hutool.core.text.StrPool;
|
||||
import cn.hutool.core.util.StrUtil;
|
||||
import com.njcn.common.pojo.annotation.OperateInfo;
|
||||
import com.njcn.common.pojo.enums.common.LogEnum;
|
||||
import com.njcn.common.pojo.enums.response.CommonResponseEnum;
|
||||
import com.njcn.common.pojo.exception.BusinessException;
|
||||
import com.njcn.common.pojo.response.HttpResult;
|
||||
import com.njcn.common.utils.HttpResultUtil;
|
||||
import com.njcn.device.biz.commApi.CommTerminalGeneralClient;
|
||||
import com.njcn.device.biz.pojo.dto.*;
|
||||
import com.njcn.device.biz.pojo.param.DeptGetLineParam;
|
||||
@@ -298,7 +301,7 @@ public class ExecutionCenter extends BaseController {
|
||||
@ApiOperation("变电站算法执行链")
|
||||
@PostMapping("/substationExecutor")
|
||||
@Async("asyncExecutor")
|
||||
public void substationExecutor(@RequestBody BaseParam baseParam) {
|
||||
public HttpResult<Boolean> substationExecutor(@RequestBody BaseParam baseParam) {
|
||||
String methodDescribe = getMethodDescribe("substationExecutor");
|
||||
//手动判断参数是否合法,
|
||||
CalculatedParam<String> calculatedParam = judgeExecuteParam(baseParam);
|
||||
@@ -339,7 +342,7 @@ public class ExecutionCenter extends BaseController {
|
||||
liteflowResponse = flowExecutor.execute2Resp("sub_station", calculatedParam);
|
||||
dealResponse(calculatedParam, liteflowResponse, methodDescribe);
|
||||
}
|
||||
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, true, methodDescribe);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user