update
This commit is contained in:
parent
f9af3434db
commit
8da308aade
2
xumu.py
2
xumu.py
|
@ -36,6 +36,8 @@ class DataQuery(BaseModel):
|
||||||
async def data_query(params: DataQuery):
|
async def data_query(params: DataQuery):
|
||||||
try:
|
try:
|
||||||
deviceId = params.deviceId
|
deviceId = params.deviceId
|
||||||
|
if deviceId == None or deviceId == "":
|
||||||
|
return BaseResponse(code=500, msg="参数错误")
|
||||||
sql = f"select last * from root.farm.{deviceId}"
|
sql = f"select last * from root.farm.{deviceId}"
|
||||||
send_json = {
|
send_json = {
|
||||||
"sql": sql
|
"sql": sql
|
||||||
|
|
Loading…
Reference in New Issue