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
d198fdea
Commit
d198fdea
authored
Mar 20, 2020
by
庄冰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updateStausByRefundOrder
parent
91b76d7b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
5 deletions
+29
-5
center-order/app/base/api/impl/action/icapi.js
+4
-1
center-order/app/base/service/impl/dbneed/needsolutionSve.js
+25
-4
No files found.
center-order/app/base/api/impl/action/icapi.js
View file @
d198fdea
...
...
@@ -67,7 +67,10 @@ class IcAPI extends APIBase {
opResult
=
await
this
.
needsolutionSve
.
createSolutionByOrder
(
pobj
);
break
;
case
"receiveSolutionPayInfo"
:
//接收方案状态及支付信息(方案支付后创建订单时调用)
opResult
=
await
this
.
needinfoSve
.
receiveSolutionPayInfo
(
pobj
);
opResult
=
await
this
.
needsolutionSve
.
receiveSolutionPayInfo
(
pobj
);
break
;
case
"updateStausByRefundOrder"
:
//修改退款方案状态
opResult
=
await
this
.
needsolutionSve
.
updateStausByRefundOrder
(
pobj
);
break
;
default
:
opResult
=
system
.
getResult
(
null
,
"action_type参数错误"
);
...
...
center-order/app/base/service/impl/dbneed/needsolutionSve.js
View file @
d198fdea
...
...
@@ -294,10 +294,10 @@ class NeedsolutionService extends ServiceBase {
}
else
{
return
system
.
getResultFail
(
-
104
,
"操作类型有误"
);
}
var
solution_status
=
{
"dqr"
:
"待确认"
,
"ywc"
:
"已完成"
,
"yzf"
:
"已作废"
};
solutionContent
[
"deliveryStatus"
]
=
status
;
solutionContent
[
"deliveryStatusName"
]
=
solution_status
[
status
];
solutionContent
[
"updated"
]
=
new
Date
();
//
var solution_status={"dqr":"待确认","ywc":"已完成","yzf":"已作废"};
//
solutionContent["deliveryStatus"] = status;
//
solutionContent["deliveryStatusName"] = solution_status[status];
//
solutionContent["updated"] = new Date();
if
(
ab
.
note
){
solutionContent
[
"notes"
]
=
ab
.
note
;
}
...
...
@@ -435,6 +435,27 @@ class NeedsolutionService extends ServiceBase {
var
ns
=
await
this
.
dao
.
findOne
({
channelSolutionNo
:
ab
.
channelSolutionNo
,
uapp_id
:
app
.
uapp_id
});
return
system
.
getResultSuccess
(
ns
);
}
//修改退款方案状态
async
updateStausByRefundOrder
(
pobj
){
var
ab
=
pobj
.
actionBody
;
var
app
=
pobj
.
appInfo
;
if
(
!
ab
.
orderNo
){
return
system
.
getResultFail
(
-
101
,
"订单号不能为空"
);
}
var
ns
=
await
this
.
dao
.
model
.
findOne
({
where
:{
orderNo
:
ab
.
orderNo
},
raw
:
true
});
if
(
!
ns
||
!
ns
.
id
){
return
system
.
getResultFail
(
-
103
,
"未知方案"
);
}
var
status
=
"yzf"
;
var
reqObj
=
{
status
:
status
,
id
:
ns
.
id
};
await
this
.
dao
.
model
.
update
(
reqObj
,
{
where
:
{
id
:
ns
.
id
}});
//修改方案信息
return
system
.
getResultSuccess
();
}
}
module
.
exports
=
NeedsolutionService
;
...
...
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