mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 01:33:05 +00:00
fix: 【应用编排】判断器分支判断结果错误 (#680)
This commit is contained in:
parent
5199195717
commit
25ebef6b41
|
|
@ -18,6 +18,10 @@ from .len_gt_compare import *
|
|||
from .len_le_compare import *
|
||||
from .len_lt_compare import *
|
||||
from .len_equal_compare import *
|
||||
from .is_not_null_compare import *
|
||||
from .is_null_compare import *
|
||||
|
||||
compare_handle_list = [GECompare(), GTCompare(), ContainCompare(), EqualCompare(), LTCompare(), LECompare(),
|
||||
LenLECompare(), LenGECompare(), LenEqualCompare(), LenGTCompare(), LenLTCompare()]
|
||||
LenLECompare(), LenGECompare(), LenEqualCompare(), LenGTCompare(), LenLTCompare(),
|
||||
IsNullCompare(),
|
||||
IsNotNullCompare()]
|
||||
|
|
|
|||
|
|
@ -17,5 +17,5 @@ class IsNotNullCompare(Compare):
|
|||
if compare == 'is_not_null':
|
||||
return True
|
||||
|
||||
def compare(self, source_value, compare, target_value=None):
|
||||
return source_value is not None
|
||||
def compare(self, source_value, compare, target_value):
|
||||
return source_value is not None and len(source_value) > 0
|
||||
|
|
|
|||
|
|
@ -17,5 +17,5 @@ class IsNullCompare(Compare):
|
|||
if compare == 'is_null':
|
||||
return True
|
||||
|
||||
def compare(self, source_value, compare, target_value=None):
|
||||
return source_value is None
|
||||
def compare(self, source_value, compare, target_value):
|
||||
return source_value is None or len(source_value) == 0
|
||||
|
|
|
|||
Loading…
Reference in New Issue