1.自动更新今日需要抓取数据
2.工况接口返回
This commit is contained in:
@@ -10,4 +10,12 @@ class LevelData(Base):
|
||||
wsphigh = Column(String(100), comment="工作基点高程序列(m)")
|
||||
NYID = Column(String(100), nullable=False, comment="期数id", index=True)
|
||||
createDate = Column(DateTime, comment="上传时间")
|
||||
mtype = Column(String(100), comment="水准观测类型")
|
||||
mtype = Column(String(100), comment="水准观测类型")
|
||||
|
||||
# 模型转字典
|
||||
def to_dict(self):
|
||||
"""将模型实例转换为字典,支持 Pydantic 序列化"""
|
||||
return {
|
||||
column.name: getattr(self, column.name)
|
||||
for column in self.__table__.columns
|
||||
}
|
||||
Reference in New Issue
Block a user