feat: 变更 calculate 相关材料编码
This commit is contained in:
@@ -5,7 +5,7 @@ from commons.models.price_result import PriceResult
|
||||
|
||||
class AsphaltImportedModifierCalculator(Calculator):
|
||||
name = "进口改性沥青"
|
||||
material_id = "06.12.60.00"
|
||||
material_id = "3001002002"
|
||||
unit = "t"
|
||||
spec = ""
|
||||
|
||||
@@ -13,7 +13,7 @@ class AsphaltImportedModifierCalculator(Calculator):
|
||||
query = PriceResult.get_query(self.year, self.month, name='进口沥青')
|
||||
asphalt = query.first()
|
||||
fluctuating_1 = asphalt.fluctuating_recommend if asphalt else 0
|
||||
if not asphalt.price_recommend:
|
||||
if not asphalt or not asphalt.price_recommend:
|
||||
return 0, 0
|
||||
|
||||
query = PriceResult.get_query(self.year, self.month, name='改性剂')
|
||||
|
||||
Reference in New Issue
Block a user