diff --git a/pricing/pricing.py b/pricing/pricing.py index 8c5c19f..034c452 100644 --- a/pricing/pricing.py +++ b/pricing/pricing.py @@ -336,8 +336,8 @@ where a.id = b.ppid if not d.fields: exception(f'{d} has not "fields"') raise Exception(f'定价定义中没有fields数据') - if not d.pricing: - exception(f'{d} has not "pricing"') + if not d.pricings: + exception(f'{d} has not "pricings"') raise Exception(f'定价定义中没有pricing数据') formula = d.formula ret_items = []