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
a2d7ec03
Commit
a2d7ec03
authored
Apr 13, 2020
by
庄冰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
icp
parent
f418de83
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
2 deletions
+21
-2
center-order/app/base/api/impl/action/icpapi.js
+3
-0
center-order/app/base/service/impl/dbneed/needsolutionSve.js
+18
-2
No files found.
center-order/app/base/api/impl/action/icpapi.js
View file @
a2d7ec03
...
@@ -48,6 +48,9 @@ class IcpAPI extends APIBase {
...
@@ -48,6 +48,9 @@ class IcpAPI extends APIBase {
case
"getIcpProgrammeDetail"
:
//获取icp方案
case
"getIcpProgrammeDetail"
:
//获取icp方案
opResult
=
await
this
.
needsolutionSve
.
getIcpProgrammeDetail
(
pobj
);
opResult
=
await
this
.
needsolutionSve
.
getIcpProgrammeDetail
(
pobj
);
break
;
break
;
case
"getNeedSolutionDetailByUser"
:
//获取方案详情
opResult
=
await
this
.
needsolutionSve
.
getNeedSolutionDetailByUser
(
pobj
);
break
;
// case "updateStausByRefundOrder"://修改退款方案状态
// case "updateStausByRefundOrder"://修改退款方案状态
// opResult = await this.needsolutionSve.updateStausByRefundOrder(pobj);
// opResult = await this.needsolutionSve.updateStausByRefundOrder(pobj);
// break;
// break;
...
...
center-order/app/base/service/impl/dbneed/needsolutionSve.js
View file @
a2d7ec03
...
@@ -1116,19 +1116,35 @@ class NeedsolutionService extends ServiceBase {
...
@@ -1116,19 +1116,35 @@ class NeedsolutionService extends ServiceBase {
await
this
.
dao
.
update
(
updateObj
);
//方案状态修改
await
this
.
dao
.
update
(
updateObj
);
//方案状态修改
return
system
.
getResultSuccess
();
return
system
.
getResultSuccess
();
}
}
//
//
获取方案详情(内部调用)
async
getIcpProgrammeDetail
(
pobj
){
async
getIcpProgrammeDetail
(
pobj
){
var
ab
=
pobj
.
actionBody
;
var
ab
=
pobj
.
actionBody
;
if
(
!
ab
.
BizId
){
if
(
!
ab
.
BizId
){
return
system
.
getResultFail
(
-
101
,
"方案编号不能为空"
);
return
system
.
getResultFail
(
-
101
,
"方案编号不能为空"
);
}
}
//获取方案信息
//获取方案信息
var
ns
=
await
this
.
dao
.
model
.
findAll
({
var
ns
=
await
this
.
dao
.
model
.
findAll
({
where
:{
channelSolutionNo
:
ab
.
BizId
},
raw
:
true
where
:{
channelSolutionNo
:
ab
.
BizId
},
raw
:
true
});
});
return
system
.
getResultSuccess
(
ns
);
return
system
.
getResultSuccess
(
ns
);
}
}
//获取方案详情(前端调用)
async
getNeedSolutionDetailByUser
(
pobj
){
var
ab
=
pobj
.
actionBody
;
var
user
=
pobj
.
userInfo
;
if
(
!
user
||
!
user
.
id
){
return
system
.
getResultFail
(
-
100
,
"未知用户"
);
}
// ab["createUserId"]=user.id;
if
(
!
ab
.
solutionNo
){
return
system
.
getResultFail
(
-
101
,
"方案编号不能为空"
);
}
//获取方案信息
var
ns
=
await
this
.
dao
.
model
.
findAll
({
where
:{
solutionNo
:
ab
.
solutionNo
,
createUserId
:
user
.
id
},
raw
:
true
});
return
system
.
getResultSuccess
(
ns
);
}
//---------------------icp注册-end-----------------------------------------------------------------
//---------------------icp注册-end-----------------------------------------------------------------
...
...
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