删除观测点水准线路字段
This commit is contained in:
@@ -71,7 +71,6 @@ class CheckpointService(BaseService[Checkpoint]):
|
||||
checkpoint.aname = item_data.get('aname')
|
||||
checkpoint.section_id = item_data.get('section_id')
|
||||
checkpoint.burial_date = item_data.get('burial_date')
|
||||
checkpoint.linecode = item_data.get('linecode')
|
||||
logger.info(f"Updated checkpoint: {item_data.get('point_id')}")
|
||||
else:
|
||||
# 新增操作
|
||||
@@ -80,7 +79,6 @@ class CheckpointService(BaseService[Checkpoint]):
|
||||
aname=item_data.get('aname'),
|
||||
section_id=item_data.get('section_id'),
|
||||
burial_date=item_data.get('burial_date'),
|
||||
linecode=item_data.get('linecode')
|
||||
)
|
||||
db.add(checkpoint)
|
||||
logger.info(f"Created checkpoint: {item_data.get('point_id')}")
|
||||
|
||||
@@ -87,8 +87,7 @@ class SectionDataService(BaseService[SectionData]):
|
||||
"point_id": cp.point_id,
|
||||
"aname": cp.aname,
|
||||
"burial_date": cp.burial_date,
|
||||
"section_id": cp.section_id,
|
||||
"linecode": cp.linecode
|
||||
"section_id": cp.section_id
|
||||
} for cp in checkpoints
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user