断面增加围岩字段
This commit is contained in:
@@ -16,4 +16,5 @@ class SectionData(Base):
|
|||||||
compression_layer_thickness = Column(String(100), comment="压实层厚度")
|
compression_layer_thickness = Column(String(100), comment="压实层厚度")
|
||||||
treatment_depth = Column(String(100), comment="处理深度")
|
treatment_depth = Column(String(100), comment="处理深度")
|
||||||
foundation_treatment_method = Column(String(100), comment="地基处理方法")
|
foundation_treatment_method = Column(String(100), comment="地基处理方法")
|
||||||
|
rock_mass_classification = Column(String(100), comment="围岩级别")
|
||||||
section_id = Column(String(100), nullable=False, comment="断面id", index=True)
|
section_id = Column(String(100), nullable=False, comment="断面id", index=True)
|
||||||
@@ -66,6 +66,7 @@ class SectionDataImportRequest(BaseModel):
|
|||||||
compression_layer_thickness: Optional[str] = None
|
compression_layer_thickness: Optional[str] = None
|
||||||
treatment_depth: Optional[str] = None
|
treatment_depth: Optional[str] = None
|
||||||
foundation_treatment_method: Optional[str] = None
|
foundation_treatment_method: Optional[str] = None
|
||||||
|
rock_mass_classification: Optional[str] = None
|
||||||
|
|
||||||
# 原始数据查询请求
|
# 原始数据查询请求
|
||||||
class OriginalDataQueryRequest(BaseModel):
|
class OriginalDataQueryRequest(BaseModel):
|
||||||
@@ -119,6 +120,7 @@ class SectionDataQueryRequest(BaseModel):
|
|||||||
compression_layer_thickness: Optional[str] = None
|
compression_layer_thickness: Optional[str] = None
|
||||||
treatment_depth: Optional[str] = None
|
treatment_depth: Optional[str] = None
|
||||||
foundation_treatment_method: Optional[str] = None
|
foundation_treatment_method: Optional[str] = None
|
||||||
|
rock_mass_classification: Optional[str] = None
|
||||||
|
|
||||||
# 水准数据查询请求
|
# 水准数据查询请求
|
||||||
class LevelDataQueryRequest(BaseModel):
|
class LevelDataQueryRequest(BaseModel):
|
||||||
|
|||||||
@@ -80,6 +80,7 @@ class SectionDataService(BaseService[SectionData]):
|
|||||||
"compression_layer_thickness": section.compression_layer_thickness,
|
"compression_layer_thickness": section.compression_layer_thickness,
|
||||||
"treatment_depth": section.treatment_depth,
|
"treatment_depth": section.treatment_depth,
|
||||||
"foundation_treatment_method": section.foundation_treatment_method,
|
"foundation_treatment_method": section.foundation_treatment_method,
|
||||||
|
"rock_mass_classification": section.rock_mass_classification,
|
||||||
"checkpoints": [
|
"checkpoints": [
|
||||||
{
|
{
|
||||||
"id": cp.id,
|
"id": cp.id,
|
||||||
@@ -241,6 +242,7 @@ class SectionDataService(BaseService[SectionData]):
|
|||||||
section.compression_layer_thickness = item_data.get('compression_layer_thickness')
|
section.compression_layer_thickness = item_data.get('compression_layer_thickness')
|
||||||
section.treatment_depth = item_data.get('treatment_depth')
|
section.treatment_depth = item_data.get('treatment_depth')
|
||||||
section.foundation_treatment_method = item_data.get('foundation_treatment_method')
|
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')}")
|
logger.info(f"Updated section: {item_data.get('section_id')}")
|
||||||
else:
|
else:
|
||||||
# 新增操作
|
# 新增操作
|
||||||
@@ -257,7 +259,8 @@ class SectionDataService(BaseService[SectionData]):
|
|||||||
design_fill_height=item_data.get('design_fill_height'),
|
design_fill_height=item_data.get('design_fill_height'),
|
||||||
compression_layer_thickness=item_data.get('compression_layer_thickness'),
|
compression_layer_thickness=item_data.get('compression_layer_thickness'),
|
||||||
treatment_depth=item_data.get('treatment_depth'),
|
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)
|
db.add(section)
|
||||||
logger.info(f"Created section: {item_data.get('section_id')}")
|
logger.info(f"Created section: {item_data.get('section_id')}")
|
||||||
|
|||||||
Reference in New Issue
Block a user