@ -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