mirror of
https://gitee.com/dromara/liteFlow.git
synced 2026-05-14 12:12:08 +08:00
优化NotCondition中,设值错误的问题
This commit is contained in:
@@ -26,7 +26,7 @@ public class NotCondition extends Condition {
|
||||
Slot slot = DataBus.getSlot(slotIndex);
|
||||
|
||||
String resultKey = StrUtil.format("{}_{}",this.getClass().getName(),this.hashCode());
|
||||
slot.setAndOrResult(resultKey, !flag);
|
||||
slot.setNotResult(resultKey, !flag);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,7 +35,7 @@ public class NotCondition extends Condition {
|
||||
public Boolean getItemResultMetaValue(Integer slotIndex) {
|
||||
Slot slot = DataBus.getSlot(slotIndex);
|
||||
String resultKey = StrUtil.format("{}_{}",this.getClass().getName(),this.hashCode());
|
||||
return slot.getAndOrResult(resultKey);
|
||||
return slot.getNotResult(resultKey);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user