断面增加围岩字段
This commit is contained in:
@@ -80,6 +80,7 @@ class SectionDataService(BaseService[SectionData]):
|
||||
"compression_layer_thickness": section.compression_layer_thickness,
|
||||
"treatment_depth": section.treatment_depth,
|
||||
"foundation_treatment_method": section.foundation_treatment_method,
|
||||
"rock_mass_classification": section.rock_mass_classification,
|
||||
"checkpoints": [
|
||||
{
|
||||
"id": cp.id,
|
||||
@@ -241,6 +242,7 @@ class SectionDataService(BaseService[SectionData]):
|
||||
section.compression_layer_thickness = item_data.get('compression_layer_thickness')
|
||||
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')
|
||||
logger.info(f"Updated section: {item_data.get('section_id')}")
|
||||
else:
|
||||
# 新增操作
|
||||
@@ -257,7 +259,8 @@ class SectionDataService(BaseService[SectionData]):
|
||||
design_fill_height=item_data.get('design_fill_height'),
|
||||
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')
|
||||
foundation_treatment_method=item_data.get('foundation_treatment_method'),
|
||||
rock_mass_classification=item_data.get('rock_mass_classification')
|
||||
)
|
||||
db.add(section)
|
||||
logger.info(f"Created section: {item_data.get('section_id')}")
|
||||
|
||||
Reference in New Issue
Block a user