diff --git a/pricing/pricing.py b/pricing/pricing.py index a2823bb..680e1aa 100644 --- a/pricing/pricing.py +++ b/pricing/pricing.py @@ -320,9 +320,11 @@ order by b.enabled_date desc""" raise Exception(f'定价定义中没有pricing数据') formula = d.formula ret_items = [] - debug(f'{d.pricings=}') + debug(f'{d.pricings=}, {len(d.pricings)=}') for i, p in enumerate(d.pricings): - debug(f'{p=}') + if not p.formula: + debug(f'无公式:{p=}') + continue p_ok = True times = 1 unit = 1 @@ -347,6 +349,7 @@ order by b.enabled_date desc""" flg = check_value(f, spec_value, data_value) if not flg: # 条件不满足 + debug(f'条件不满足:{p=},{spec_value=}, {data_value=}, {k=}') p_ok = False break except Exception as e: