diff --git a/apps/application/flow/compare/ge_compare.py b/apps/application/flow/compare/ge_compare.py index d40c348ae5c..84a223beef2 100644 --- a/apps/application/flow/compare/ge_compare.py +++ b/apps/application/flow/compare/ge_compare.py @@ -21,4 +21,8 @@ def compare(self, source_value, compare, target_value): try: return float(source_value) >= float(target_value) except Exception as e: + try: + return str(source_value) >= str(target_value) + except Exception as _: + pass return False diff --git a/apps/application/flow/compare/gt_compare.py b/apps/application/flow/compare/gt_compare.py index 2f9cf60e2a8..2307aaae418 100644 --- a/apps/application/flow/compare/gt_compare.py +++ b/apps/application/flow/compare/gt_compare.py @@ -21,4 +21,8 @@ def compare(self, source_value, compare, target_value): try: return float(source_value) > float(target_value) except Exception as e: + try: + return str(source_value) > str(target_value) + except Exception as _: + pass return False diff --git a/apps/application/flow/compare/le_compare.py b/apps/application/flow/compare/le_compare.py index 66f41943043..0b1710a25dd 100644 --- a/apps/application/flow/compare/le_compare.py +++ b/apps/application/flow/compare/le_compare.py @@ -21,4 +21,8 @@ def compare(self, source_value, compare, target_value): try: return float(source_value) <= float(target_value) except Exception as e: + try: + return str(source_value) <= str(target_value) + except Exception as _: + pass return False diff --git a/apps/application/flow/compare/lt_compare.py b/apps/application/flow/compare/lt_compare.py index 80388425188..c5ff3d6f610 100644 --- a/apps/application/flow/compare/lt_compare.py +++ b/apps/application/flow/compare/lt_compare.py @@ -21,4 +21,8 @@ def compare(self, source_value, compare, target_value): try: return float(source_value) < float(target_value) except Exception as e: + try: + return str(source_value) < str(target_value) + except Exception as _: + pass return False