| 123456789101112131415161718192021 |
- # coding=utf-8
- """
- @project: maxkb
- @Author:wangliang181230
- @file: not_equal_compare.py
- @date:2026/3/17 9:41
- @desc:
- """
- from typing import List
- from application.flow.compare import Compare
- class NotEqualCompare(Compare):
- def support(self, node_id, fields: List[str], source_value, compare, target_value):
- if compare == 'not_eq':
- return True
- def compare(self, source_value, compare, target_value):
- return str(source_value) != str(target_value)
|