This commit is contained in:
xyj 2024-01-25 10:09:17 +08:00
parent f9af3434db
commit 8da308aade
1 changed files with 2 additions and 0 deletions

View File

@ -36,6 +36,8 @@ class DataQuery(BaseModel):
async def data_query(params: DataQuery):
try:
deviceId = params.deviceId
if deviceId == None or deviceId == "":
return BaseResponse(code=500, msg="参数错误")
sql = f"select last * from root.farm.{deviceId}"
send_json = {
"sql": sql