修改bug

This commit is contained in:
hzj
2025-03-10 10:40:47 +08:00
parent 228a8558ac
commit f2e50dd100

View File

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