refactor: 任务ID类型判断采用else if

This commit is contained in:
dhb52 2024-05-12 09:40:03 +08:00
parent fe8d4bd347
commit 8a9a69eaa4

View File

@ -93,9 +93,8 @@ public class JobBatchServiceImpl implements JobBatchService {
jobBatchResponseVO.setExecutionAt(jobTaskBatch.getCreateDt());
return jobBatchResponseVO;
}
// 条件节点
if (SystemConstants.DECISION_JOB_ID.equals(jobTaskBatch.getJobId())) {
else if (SystemConstants.DECISION_JOB_ID.equals(jobTaskBatch.getJobId())) {
jobBatchResponseVO.setDecision(JsonUtil.parseObject(workflowNode.getNodeInfo(), DecisionConfig.class));
jobBatchResponseVO.setExecutionAt(jobTaskBatch.getCreateDt());
return jobBatchResponseVO;