feat: 新增住建厅价格计算

This commit is contained in:
han0
2024-07-12 11:11:28 +08:00
parent 44c8e8c096
commit cb0eb54984
26 changed files with 140 additions and 81 deletions

View File

@@ -9,9 +9,10 @@ from commons.models.price_result import PriceResult
class Collector:
def __init__(self, year, month):
def __init__(self, year, month, force=True):
self.year = year
self.month = month
self.force = True # todo-2 已发布的价格不在覆盖计算
# todo-2 材料id映射
@@ -269,6 +270,7 @@ class Collector:
).upsert()
def run(self):
# 当月价
self.get_from_survey()
self.get_from_result()