From 0e3504af9107a2437d7b463c973dc593aaeae86f Mon Sep 17 00:00:00 2001 From: yumoqing Date: Sat, 5 Sep 2026 18:31:03 +0800 Subject: [PATCH] =?UTF-8?q?fix(accounting-worker):=20=E8=A1=A5load=5Fappba?= =?UTF-8?q?se=E2=80=94=E2=80=94get=5Fbusiness=5Fdate=E6=9C=AA=E6=B3=A8?= =?UTF-8?q?=E5=86=8C=E8=87=B4product=5Faccounting=5Fgeneric=E5=B4=A9'NoneT?= =?UTF-8?q?ype'not=20callable(i2v=E5=87=BA=E8=B4=A6=E5=AE=9E=E6=B5=8B?= =?UTF-8?q?=E6=9A=B4=E9=9C=B2,449=E6=9D=A1=E5=8E=86=E5=8F=B2=E6=B5=81?= =?UTF-8?q?=E6=B0=B4=E5=90=8C=E5=9B=A0=E5=A4=B1=E8=B4=A5=E8=A2=AB=E6=8E=A9?= =?UTF-8?q?=E7=9B=96)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/pipeline_accounting_worker.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/pipeline_accounting_worker.py b/app/pipeline_accounting_worker.py index c98c893..3414200 100644 --- a/app/pipeline_accounting_worker.py +++ b/app/pipeline_accounting_worker.py @@ -39,7 +39,8 @@ def init_worker(): return 'pipeline' env.get_module_dbname = get_module_dbname - # 记账链路必需模块(顺序同主应用:pricing 先于资源/产品模块) + # 记账链路必需模块(顺序同主应用:appbase/pricing 先于资源/产品模块) + from appbase.init import load_appbase from pricing.init import load_pricing from accounting.init import load_accounting from discount.init import load_discount @@ -47,6 +48,8 @@ def init_worker(): from product_management import load_product_management from pipeline_llm.init import load_llm + load_appbase() # get_business_date(product_accounting_generic 依赖; + # 2026-09-05 实测缺失致出账 'NoneType' not callable) load_pricing() # buffered_charging(定价引擎) load_accounting() # consume_accounting / 余额 / 业务日期 load_discount() # get_min_product_discount(客户折扣→售价)