Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wsmonitor_sql
Overview
Overview
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
宋鹏博
wsmonitor_sql
Commits
d99c718e
Commit
d99c718e
authored
Feb 07, 2025
by
之约
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改查询sql
parent
8579ad88
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
5 deletions
+2
-5
cutils.py
common/cutils.py
+2
-5
No files found.
common/cutils.py
View file @
d99c718e
...
@@ -34,15 +34,12 @@ def ws_error(minute, error_answer_list=error_answer):
...
@@ -34,15 +34,12 @@ def ws_error(minute, error_answer_list=error_answer):
print
(
"开始"
)
print
(
"开始"
)
data
=
DButils
()
.
select_sql
(
data
=
DButils
()
.
select_sql
(
f
"select emp_id,content,id from aicaptain.message_record mr WHERE create_time > NOW() - INTERVAL {minute} minute "
f
"select emp_id,content,id from aicaptain.message_record mr WHERE create_time > NOW() - INTERVAL {minute} minute "
f
"and msg_type != 1
and inquiry_msg_meta_id !=0
; "
)
f
"and msg_type != 1 ; "
)
for
i
in
range
(
len
(
data
)):
for
i
in
range
(
len
(
data
)):
for
n
in
error_answer_list
:
for
n
in
error_answer_list
:
if
n
in
data
[
i
][
1
]:
if
n
in
data
[
i
][
1
]:
json_data
=
json
.
loads
(
data
[
i
][
1
])
content
=
json_data
[
'msgContentList'
][
0
][
'content'
]
print
(
content
)
editor
=
DButils
()
.
select_sql
(
editor
=
DButils
()
.
select_sql
(
f
"select name from aicaptain.job where id= (SELECT job_id FROM aicaptain.employee WHERE "
f
"select name from aicaptain.job where id= (SELECT job_id FROM aicaptain.employee WHERE "
f
" id= {data[i][0]} ); "
)
f
" id= {data[i][0]} ); "
)
mk_error_message
(
editor
[
0
][
0
],
content
,
data
[
i
][
2
])
mk_error_message
(
editor
[
0
][
0
],
n
,
data
[
i
][
2
])
print
(
"结束"
)
print
(
"结束"
)
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