bugfix
This commit is contained in:
parent
96b0abd756
commit
b882bacc87
@ -320,9 +320,11 @@ order by b.enabled_date desc"""
|
|||||||
raise Exception(f'定价定义中没有pricing数据')
|
raise Exception(f'定价定义中没有pricing数据')
|
||||||
formula = d.formula
|
formula = d.formula
|
||||||
ret_items = []
|
ret_items = []
|
||||||
debug(f'{d.pricings=}')
|
debug(f'{d.pricings=}, {len(d.pricings)=}')
|
||||||
for i, p in enumerate(d.pricings):
|
for i, p in enumerate(d.pricings):
|
||||||
debug(f'{p=}')
|
if not p.formula:
|
||||||
|
debug(f'无公式:{p=}')
|
||||||
|
continue
|
||||||
p_ok = True
|
p_ok = True
|
||||||
times = 1
|
times = 1
|
||||||
unit = 1
|
unit = 1
|
||||||
@ -347,6 +349,7 @@ order by b.enabled_date desc"""
|
|||||||
flg = check_value(f, spec_value, data_value)
|
flg = check_value(f, spec_value, data_value)
|
||||||
if not flg:
|
if not flg:
|
||||||
# 条件不满足
|
# 条件不满足
|
||||||
|
debug(f'条件不满足:{p=},{spec_value=}, {data_value=}, {k=}')
|
||||||
p_ok = False
|
p_ok = False
|
||||||
break
|
break
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user