This commit is contained in:
yumoqing 2026-03-25 18:04:22 +08:00
parent 96b0abd756
commit b882bacc87

View File

@ -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: