Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Z
zhichan
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
蒋勇
zhichan
Commits
8397642f
Commit
8397642f
authored
Mar 27, 2020
by
黄静
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hj
parent
cc802e9e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
0 deletions
+2
-0
calc_result/RiskComputer.py
+1
-0
calc_result/main.py
+1
-0
No files found.
calc_result/RiskComputer.py
View file @
8397642f
...
...
@@ -100,6 +100,7 @@ class RiskComputer:
sql
=
'INSERT INTO result_set(Batchno,indexName,status,biztype) VALUES (
%
s,"
%
s","
%
s","
%
s")'
%
(
insert_batch_No
,
insert_key
,
insert_status
,
ss
[
i
])
try
:
cursor
.
execute
(
sql
)
print
(
"数据入库成功"
)
# 提交到数据库执行
db
.
commit
()
except
Exception
as
e
:
...
...
calc_result/main.py
View file @
8397642f
...
...
@@ -216,6 +216,7 @@ def report(BatchNo):
redisPool
=
redis
.
ConnectionPool
(
host
=
FK_REDIS_HOST
,
port
=
int
(
FK_REDIS_PORT
),
password
=
FK_REDIS_PWD
,
db
=
FK_REDIS_DB
)
client
=
redis
.
Redis
(
connection_pool
=
redisPool
)
a
=
client
.
rpop
(
'notifyRule'
)
print
(
"获取任务号"
)
if
a
is
None
:
print
(
"notifyRule数据为空"
)
quit
()
...
...
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