1.自动更新今日需要抓取数据
2.工况接口返回
This commit is contained in:
@@ -18,4 +18,12 @@ class SectionData(Base):
|
||||
foundation_treatment_method = Column(String(100), comment="地基处理方法")
|
||||
rock_mass_classification = Column(String(100), comment="围岩级别")
|
||||
account_id = Column(String(100), nullable=True, comment="账号id", index=True)
|
||||
section_id = Column(String(100), nullable=False, comment="断面id", index=True)
|
||||
section_id = Column(String(100), nullable=False, comment="断面id", index=True)
|
||||
|
||||
# 模型转字典
|
||||
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