1.修改推理工况的默认期数
This commit is contained in:
@@ -478,7 +478,7 @@ def get_settlement_by_linecode(
|
||||
code=ResponseCode.SUCCESS,
|
||||
message=f"查询成功,共获取{len(result['settlement_data'])}条沉降数据",
|
||||
total=len(result_1d),
|
||||
data=result_1d
|
||||
data=settlement_data
|
||||
)
|
||||
|
||||
except Exception as e:
|
||||
|
||||
@@ -604,7 +604,7 @@ class SettlementDataService(BaseService[SettlementData]):
|
||||
self,
|
||||
db: Session,
|
||||
linecode: str,
|
||||
num: int = 1 # 控制返回的期数,默认1(最新一期)
|
||||
num: int = 1000 # 控制返回的期数,默认1(最新一期)
|
||||
) -> Dict:
|
||||
"""
|
||||
根据水准线路编码(linecode)查询对应沉降数据,支持按期数筛选
|
||||
|
||||
Reference in New Issue
Block a user