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
988e7b49
Commit
988e7b49
authored
Jun 25, 2020
by
sxy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 年报推送
parent
1b29ad7b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
3 deletions
+12
-3
icp-deliver/app/base/service/impl/delivery/deliverSve.js
+8
-0
icp-deliver/app/base/utils/totxClient.js
+4
-3
No files found.
icp-deliver/app/base/service/impl/delivery/deliverSve.js
View file @
988e7b49
...
...
@@ -195,6 +195,14 @@ class DeliverService extends ServiceBase {
deliver_id
:
annualReportData
.
id
});
}
// 推送年报信息
await
pushTx
.
pushChangeOrder
(
pushTx
.
TXSTATUS
.
WAITDECLARE
,
annualReportData
.
delivery_code
,
{
annualReport
:
annualReportArry
.
map
(
item
=>
{
item
.
status
=
item
.
status
===
system
.
ANNUALREPORT
.
WAITDECLARE
?
"待申报"
:
"已申报"
return
item
})
})
}
}
return
this
.
db
.
transaction
(
async
(
t
)
=>
{
...
...
icp-deliver/app/base/utils/totxClient.js
View file @
988e7b49
...
...
@@ -14,8 +14,8 @@ const TXSTATUS = {
POSTING
:
"150"
,
//证书已邮寄
SUCCESS
:
"170"
,
//服务已完成
CLOSED
:
"190"
,
//已关闭
WAITDECLARE
:
"2
00
"
,
//待申报
DECLARESUCCESS
:
"2
10
"
,
//申报成功
WAITDECLARE
:
"2
5
"
,
//待申报
DECLARESUCCESS
:
"2
6
"
,
//申报成功
}
const
porApi
=
axios
.
create
({
baseURL
:
settings
.
txurl
(),
// api 的 base_url
...
...
@@ -124,11 +124,12 @@ const pushDeclareReport = async (annualReport, deliverData) => {
if
(
item
.
id
===
annualReport
.
id
)
{
item
.
updated_at
=
new
Date
();
item
.
file
=
annualReport
.
file
;
item
.
status
=
system
.
ANNUALREPORT
.
DECLARESUCCESS
;
}
item
.
status
=
item
.
status
===
system
.
ANNUALREPORT
.
WAITDECLARE
?
"待申报"
:
"已申报"
return
item
})
await
pushChangeOrder
(
TXSTATUS
.
DECLARESUCCESS
,
deliverData
.
delivery_code
,
result
)
await
pushChangeOrder
(
TXSTATUS
.
DECLARESUCCESS
,
deliverData
.
delivery_code
,
{
annualReport
:
result
}
)
}
...
...
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