【fix】THEN_START,THEN_END命名错误的问题

This commit is contained in:
韩华锋 2023-11-03 11:24:48 +08:00
parent e46f15bd4a
commit ae97426ef3
1 changed files with 4 additions and 4 deletions

View File

@ -342,11 +342,11 @@ public class Slot {
CmpStep cmpStep;
for (Iterator<CmpStep> it = executeSteps.iterator(); it.hasNext();) {
cmpStep = it.next();
if (CmpStepTypeEnum.THEN_START.equals(cmpStep.getStepType())) {
if (CmpStepTypeEnum.WHEN_START.equals(cmpStep.getStepType())) {
str.append("");
continue;
}
if (CmpStepTypeEnum.THEN_END.equals(cmpStep.getStepType())) {
if (CmpStepTypeEnum.WHEN_END.equals(cmpStep.getStepType())) {
// 如果最后一个是==>则移除最后一个==>
if (str.toString().endsWith("==>")) {
str.delete(str.length() - 3, str.length());
@ -393,11 +393,11 @@ public class Slot {
CmpStep cmpStep;
for (Iterator<CmpStep> it = rollbackSteps.iterator(); it.hasNext();) {
cmpStep = it.next();
if (CmpStepTypeEnum.THEN_START.equals(cmpStep.getStepType())) {
if (CmpStepTypeEnum.WHEN_START.equals(cmpStep.getStepType())) {
str.append("");
continue;
}
if (CmpStepTypeEnum.THEN_END.equals(cmpStep.getStepType())) {
if (CmpStepTypeEnum.WHEN_END.equals(cmpStep.getStepType())) {
// 如果最后一个是==>则移除最后一个==>
if (str.toString().endsWith("==>")) {
str.delete(str.length() - 3, str.length());