feat:
This commit is contained in:
@@ -73,7 +73,7 @@ class Calculator:
|
||||
@property
|
||||
def previous_prices(self):
|
||||
if not self._previous_prices:
|
||||
previous_price = PriceResult.get_by_key(self.name, *Helper.get_last_month(self.year, self.month))
|
||||
previous_price = PriceResult.get_by_key(self.material_id, *Helper.get_last_month(self.year, self.month))
|
||||
self._previous_prices = previous_price
|
||||
return self._previous_prices
|
||||
|
||||
@@ -120,10 +120,6 @@ class Calculator:
|
||||
self.price_fujian, self.fluctuating_fujian = self._get_fujian_price()
|
||||
return self
|
||||
|
||||
# todo 缺少三明钢铁导入数据
|
||||
# todo-0 价格计算改为直接从表读取 不再进行多余计算
|
||||
# todo 计算验证
|
||||
|
||||
def _get_ftb_price(self):
|
||||
query = FuzhouTransportationBureau.get_query(self.year, self.month, material_id=self.material_id)
|
||||
data = query.first()
|
||||
|
Reference in New Issue
Block a user