断面加账号id

This commit is contained in:
lhx
2025-10-16 11:34:26 +08:00
parent d9cbb98ae9
commit 1bbef97a69
3 changed files with 7 additions and 1 deletions

View File

@@ -81,6 +81,7 @@ class SectionDataService(BaseService[SectionData]):
"treatment_depth": section.treatment_depth,
"foundation_treatment_method": section.foundation_treatment_method,
"rock_mass_classification": section.rock_mass_classification,
"account_id": section.account_id,
"checkpoints": [
{
"id": cp.id,
@@ -242,6 +243,7 @@ class SectionDataService(BaseService[SectionData]):
section.treatment_depth = item_data.get('treatment_depth')
section.foundation_treatment_method = item_data.get('foundation_treatment_method')
section.rock_mass_classification = item_data.get('rock_mass_classification')
section.account_id = item_data.get('account_id')
logger.info(f"Updated section: {item_data.get('section_id')}")
else:
# 新增操作
@@ -259,7 +261,8 @@ class SectionDataService(BaseService[SectionData]):
compression_layer_thickness=item_data.get('compression_layer_thickness'),
treatment_depth=item_data.get('treatment_depth'),
foundation_treatment_method=item_data.get('foundation_treatment_method'),
rock_mass_classification=item_data.get('rock_mass_classification')
rock_mass_classification=item_data.get('rock_mass_classification'),
account_id=item_data.get('account_id')
)
db.add(section)
logger.info(f"Created section: {item_data.get('section_id')}")