Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
U
unify_api2
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
chaonan
unify_api2
Commits
c277db74
Commit
c277db74
authored
Jul 05, 2023
by
lcn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug修复
parent
df4073fa
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
order_operations_dao.py
unify_api/modules/zhiwei_u/dao/order_operations_dao.py
+5
-4
No files found.
unify_api/modules/zhiwei_u/dao/order_operations_dao.py
View file @
c277db74
...
@@ -51,7 +51,7 @@ async def flow_order_user_dao(user_id):
...
@@ -51,7 +51,7 @@ async def flow_order_user_dao(user_id):
sql
=
"SELECT user_id, real_name as user_name FROM `user` "
\
sql
=
"SELECT user_id, real_name as user_name FROM `user` "
\
"where zhiweiu_auth=2 and user_id !=
%
s"
"where zhiweiu_auth=2 and user_id !=
%
s"
async
with
MysqlUtil
()
as
conn
:
async
with
MysqlUtil
()
as
conn
:
data
=
await
conn
.
fetchall
(
sql
,
args
=
(
user_id
,
))
data
=
await
conn
.
fetchall
(
sql
,
args
=
(
user_id
,))
return
data
return
data
...
@@ -80,7 +80,7 @@ async def sid_to_order_dao(sid):
...
@@ -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 "
\
"LEFT JOIN point p on m.mtid=p.mtid where m.sid=
%
s and "
\
"m.demolished=0"
"m.demolished=0"
async
with
MysqlUtil
()
as
conn
:
async
with
MysqlUtil
()
as
conn
:
data
=
await
conn
.
fetchall
(
sql
,
args
=
(
sid
,
))
data
=
await
conn
.
fetchall
(
sql
,
args
=
(
sid
,))
return
data
return
data
...
@@ -143,7 +143,7 @@ async def get_monitor_by_sid(sid):
...
@@ -143,7 +143,7 @@ async def get_monitor_by_sid(sid):
"""根据sid 查找mtid 和 monitor_name"""
"""根据sid 查找mtid 和 monitor_name"""
sql
=
"SELECT mtid, name FROM `monitor` where sid=
%
s and demolished=0"
sql
=
"SELECT mtid, name FROM `monitor` where sid=
%
s and demolished=0"
async
with
MysqlUtil
()
as
conn
:
async
with
MysqlUtil
()
as
conn
:
data
=
await
conn
.
fetchone
(
sql
,
args
=
(
sid
,
))
data
=
await
conn
.
fetchone
(
sql
,
args
=
(
sid
,))
return
data
return
data
...
@@ -168,7 +168,8 @@ async def order_detail_by_id(id):
...
@@ -168,7 +168,8 @@ async def order_detail_by_id(id):
async
def
order_detail_flow_by_id
(
id
):
async
def
order_detail_flow_by_id
(
id
):
"""工单详情 流程"""
"""工单详情 流程"""
sql
=
"SELECT id,op_time,op_record,`explain`,handle_user_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
:
async
with
MysqlUtil
(
db
=
SETTING
.
mysql_zhiwei_u_db
)
as
conn
:
data
=
await
conn
.
fetchall
(
sql
,
args
=
(
id
,))
data
=
await
conn
.
fetchall
(
sql
,
args
=
(
id
,))
return
data
return
data
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment