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
3be13fa1
Commit
3be13fa1
authored
Jan 06, 2020
by
huangjing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hj
parent
c2cf61d2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
5 deletions
+8
-5
calc_result/IndexGet.py
+1
-1
calc_result/main.py
+7
-4
No files found.
calc_result/IndexGet.py
View file @
3be13fa1
...
...
@@ -24,7 +24,7 @@ class IndexGet:
# indexItem.Id = row[0]
indexItem
.
Name
=
row
[
1
]
indexItem
.
IndexName
=
row
[
2
]
funs
=
str
(
row
[
3
])
.
replace
(
"
\n
"
,
""
)
.
replace
(
";"
,
";"
)
.
replace
(
")]"
,
"))"
)
.
replace
(
"[("
,
"(("
)
.
split
(
";"
)
funs
=
str
(
row
[
3
])
.
replace
(
"
\n
"
,
""
)
.
replace
(
";"
,
";"
)
.
replace
(
")]"
,
"))"
)
.
replace
(
"
AND"
,
"and"
)
.
replace
(
"OR"
,
"or"
)
.
replace
(
"
[("
,
"(("
)
.
split
(
";"
)
funsGrp
=
[]
for
fun
in
funs
:
funsGrp
.
append
(
fun
)
...
...
calc_result/main.py
View file @
3be13fa1
...
...
@@ -110,12 +110,13 @@ def fun(str):
redisPool
=
redis
.
ConnectionPool
(
host
=
'43.247.184.32'
,
port
=
8967
,
password
=
'Gongsibao2018'
,
db
=
2
)
client
=
redis
.
Redis
(
connection_pool
=
redisPool
)
# value=client.rpop('notifyRule'
)
a
=
client
.
lrange
(
'notifyRule'
,
0
,
-
1
)
a
=
client
.
lrange
(
'notifyRule'
,
-
1
,
-
1
)
print
(
a
,
"aaa"
)
if
len
(
a
)
==
0
:
print
(
"notifyRule数据为空"
)
quit
()
value
=
a
[
-
1
]
# print(value,"pp")
if
client
is
None
:
client
.
rpop
(
'notifyRule'
)
quit
()
...
...
@@ -123,9 +124,11 @@ if value is None:
client
.
rpop
(
'notifyRule'
)
quit
()
result
=
json
.
loads
(
value
)
print
(
result
,
"result"
)
content
=
result
[
"content"
]
taxTypeCode
=
content
[
'taxTypeCode'
]
#企业性质
accountTypeCode
=
content
[
'accountTypeCode'
]
#会计准则
print
(
content
,
"content"
)
taxTypeCode
=
content
[
"taxTypeCode"
]
#企业性质
accountTypeCode
=
content
[
"accountTypeCode"
]
#会计准则
BatchNo
=
content
[
"batchCode"
]
if
taxTypeCode
==
"ST"
:
...
...
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