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
81f5b635
Commit
81f5b635
authored
Aug 07, 2020
by
Sxy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: aliyun
parent
138e7ae8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
45 additions
and
14 deletions
+45
-14
icp-deliver/app/base/service/impl/delivery/deliverSve.js
+45
-14
No files found.
icp-deliver/app/base/service/impl/delivery/deliverSve.js
View file @
81f5b635
...
...
@@ -204,23 +204,54 @@ class DeliverService extends ServiceBase {
if
(
!
deliverData
)
{
throw
new
Error
(
"没有此交付单"
);
}
/**
* 腾讯云
* 1. 交付单起始状态 为 已接单
* 2.点详情 更新为 收集材料中
*/
if
(
deliverData
.
source_number
===
"tencentCloud"
)
{
if
(
system
.
SERVERSESTATUS
.
RECEIVED
===
deliverData
.
delivery_status
)
{
// await pushTx.pushChangeOrder(pushTx.TXSTATUS.COLLECTING, deliverData.delivery_code);
if
(
system
.
SERVERSESTATUS
.
RECEIVED
===
deliverData
.
delivery_status
)
{
// await pushTx.pushChangeOrder(pushTx.TXSTATUS.COLLECTING, deliverData.delivery_code);
await
this
.
dao
.
updateByWhere
({
delivery_status
:
system
.
SERVERSESTATUS
.
COLLECTING
},
{
id
:
pobj
.
id
});
this
.
statuslogDao
.
create
({
flow_type
:
system
.
FLOWCODE
.
DELIVERY
,
flow_id
:
pobj
.
id
,
status_code
:
system
.
SERVERSESTATUS
.
COLLECTING
,
salesman_id
:
pobj
.
userid
,
salesman_name
:
pobj
.
username
});
}
}
/**
* 阿里云
* 1. 交付单起始状态 为 已接单
* 2. 点击详情 更新为 用户待上传材料
* 3. 当用户上传完材料 自动更新为 收集材料中
*/
if
(
deliverData
.
source_number
===
"aliCloud"
)
{
if
(
system
.
SERVERSESTATUS
.
RECEIVED
===
deliverData
.
delivery_status
)
{
// await pushTx.pushChangeOrder(pushTx.TXSTATUS.COLLECTING, deliverData.delivery_code);
await
this
.
dao
.
updateByWhere
({
delivery_status
:
system
.
SERVERSESTATUS
.
COLLECTING
},
{
id
:
pobj
.
id
});
this
.
statuslogDao
.
create
({
flow_type
:
system
.
FLOWCODE
.
DELIVERY
,
flow_id
:
pobj
.
id
,
status_code
:
system
.
SERVERSESTATUS
.
COLLECTING
,
salesman_id
:
pobj
.
userid
,
salesman_name
:
pobj
.
username
});
await
this
.
dao
.
updateByWhere
({
delivery_status
:
system
.
SERVERSESTATUS
.
USERUPLOADWAIT
},
{
id
:
pobj
.
id
});
this
.
statuslogDao
.
create
({
flow_type
:
system
.
FLOWCODE
.
DELIVERY
,
flow_id
:
pobj
.
id
,
status_code
:
system
.
SERVERSESTATUS
.
USERUPLOADWAIT
,
salesman_id
:
pobj
.
userid
,
salesman_name
:
pobj
.
username
});
}
}
return
"success"
}
...
...
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