diff --git a/app/models/checkpoint.py b/app/models/checkpoint.py index 2f46492..1ba5669 100644 --- a/app/models/checkpoint.py +++ b/app/models/checkpoint.py @@ -7,6 +7,5 @@ class Checkpoint(Base): id = Column(Integer, primary_key=True, index=True, autoincrement=True) aname = Column(String(100), nullable=False, comment="观察点名称") burial_date = Column(String(100), comment="埋设日期") - linecode = Column(String(100), comment="线路编码") section_id = Column(String(100), nullable=False, comment="所属断面id") point_id = Column(String(100), nullable=False, comment="观察点id") \ No newline at end of file diff --git a/app/services/checkpoint.py b/app/services/checkpoint.py index 548fdea..64ff8a6 100644 --- a/app/services/checkpoint.py +++ b/app/services/checkpoint.py @@ -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')}") diff --git a/app/services/section_data.py b/app/services/section_data.py index 8ba19be..835a4f2 100644 --- a/app/services/section_data.py +++ b/app/services/section_data.py @@ -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 ] }