This commit is contained in:
yumoqing 2025-02-25 21:34:59 +08:00
parent ad49b667f8
commit 95dc5fd1f8

View File

@ -123,7 +123,7 @@ async def get_unit_value_price(sc, pricingtab):
return pt.unit_value, pt.unit_amt
return None, None
async def get_fact_price(sor, productid, spec_config):
async def calc_prod_price(sor, productid, spec_config):
"""fact_config:
[
{
@ -131,7 +131,7 @@ async def get_fact_price(sor, productid, spec_config):
}
]
"""
biz_date = await get_business_date(sor)
biz_date = await get_biz_date(sor)
sql = """select c.*,
e.name as specname
from product a, prodpricing b,
@ -216,7 +216,7 @@ where a.id = ${productid}$
}
elif prod.pricing_mode == '1':
# 按资源因子计费
list_price = await get_fact_price(sor, productid, prod_config)
list_price = await calc_prod_price(sor, productid, prod_config)
sell_price = await get_sell_price(sor, sellerid, buyerid, productid, list_price)
pricing_info = {
'sellerid': sellerid,