Commit c277db74 authored by lcn's avatar lcn

bug修复

parent df4073fa
......@@ -51,7 +51,7 @@ async def flow_order_user_dao(user_id):
sql = "SELECT user_id, real_name as user_name FROM `user` " \
"where zhiweiu_auth=2 and user_id != %s"
async with MysqlUtil() as conn:
data = await conn.fetchall(sql, args=(user_id, ))
data = await conn.fetchall(sql, args=(user_id,))
return data
......@@ -80,7 +80,7 @@ async def sid_to_order_dao(sid):
"LEFT JOIN point p on m.mtid=p.mtid where m.sid=%s and " \
"m.demolished=0"
async with MysqlUtil() as conn:
data = await conn.fetchall(sql, args=(sid, ))
data = await conn.fetchall(sql, args=(sid,))
return data
......@@ -143,7 +143,7 @@ async def get_monitor_by_sid(sid):
"""根据sid 查找mtid 和 monitor_name"""
sql = "SELECT mtid, name FROM `monitor` where sid=%s and demolished=0"
async with MysqlUtil() as conn:
data = await conn.fetchone(sql, args=(sid, ))
data = await conn.fetchone(sql, args=(sid,))
return data
......@@ -168,7 +168,8 @@ async def order_detail_by_id(id):
async def order_detail_flow_by_id(id):
"""工单详情 流程"""
sql = "SELECT id,op_time,op_record,`explain`,handle_user_id " \
"FROM `data_order_details` where order_record_id=%s "
"FROM `data_order_details` where order_record_id=%s order by " \
"op_time desc"
async with MysqlUtil(db=SETTING.mysql_zhiwei_u_db) as conn:
data = await conn.fetchall(sql, args=(id,))
return data
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment