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
13f457d8
Commit
13f457d8
authored
Oct 17, 2020
by
linboxuan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lin update
parent
11cbcc69
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
27 additions
and
3 deletions
+27
-3
center-order/app/base/api/impl/action/icapi.js
+3
-0
center-order/app/base/service/impl/dbneed/needsolutionSve.js
+23
-3
center-order/app/base/service/impl/qcutils/aliyunqcSve.js
+1
-0
No files found.
center-order/app/base/api/impl/action/icapi.js
View file @
13f457d8
...
...
@@ -72,6 +72,9 @@ class IcAPI extends APIBase {
case
"updateStausByRefundOrder"
:
//修改退款方案状态
opResult
=
await
this
.
needsolutionSve
.
updateStausByRefundOrder
(
pobj
);
break
;
case
"getProgrammeInfoByChannelSolutionNo"
:
//修改退款方案状态
opResult
=
await
this
.
needsolutionSve
.
getProgrammeInfoByChannelSolutionNo
(
pobj
);
break
;
default
:
opResult
=
system
.
getResult
(
null
,
"action_type参数错误"
);
break
;
...
...
center-order/app/base/service/impl/dbneed/needsolutionSve.js
View file @
13f457d8
...
...
@@ -203,6 +203,24 @@ class NeedsolutionService extends ServiceBase {
});
return
system
.
getResultSuccess
(
ns
);
}
// 2020 1017 lin 新增 根据渠道方案号查看方案
async
getProgrammeInfoByChannelSolutionNo
(
pobj
)
{
var
ab
=
pobj
.
actionBody
;
if
(
!
ab
.
channelSolutionNo
)
{
return
system
.
getResultFail
(
-
101
,
"渠道方案号不能为空"
);
}
//获取需求信息
var
needsolutioninfo
=
await
this
.
dao
.
model
.
findOne
({
attributes
:[
"id"
,
"solutionContent"
,
"status"
,
"orderNo"
],
where
:
{
channelSolutionNo
:
ab
.
channelSolutionNo
,
isInvalid
:
0
},
raw
:
true
});
if
(
!
needsolutioninfo
||
!
needsolutioninfo
.
id
)
{
return
system
.
getResultFail
(
-
102
,
"未知方案信息"
);
}
return
system
.
getResultSuccess
(
needsolutioninfo
);
}
//获取方案列表(获取用户所有方案)
async
getProgrammeListByUser
(
pobj
)
{
var
ab
=
pobj
.
actionBody
;
...
...
@@ -485,11 +503,13 @@ class NeedsolutionService extends ServiceBase {
// solutionContent = JSON.parse(solutionContent);
solutionContent
[
"totalSum"
]
=
Number
(
ab
.
orderPrice
||
"0"
);
}
if
(
ab
.
status
)
{
needsolutioninfo
.
status
=
"ywc"
;
}
// 2020 1017 lin 新增去掉status的判断,生成订单这个方案才算完成,所以没必要再判断,另一个原因网文2.3每个状态都有不同status,所以不能以来有没有status来决定方案完成情况。
// if (ab.status) {
// needsolutioninfo.status = "ywc";
// }
if
(
ab
.
orderNo
)
{
needsolutioninfo
.
orderNo
=
ab
.
orderNo
;
needsolutioninfo
.
status
=
"ywc"
;
}
needsolutioninfo
.
solutionContent
=
JSON
.
stringify
(
solutionContent
);
await
this
.
dao
.
update
(
needsolutioninfo
);
...
...
center-order/app/base/service/impl/qcutils/aliyunqcSve.js
View file @
13f457d8
...
...
@@ -1020,6 +1020,7 @@ class AliyunQcService {
id
:
ns
.
id
,
solutionContent
:
solutionContent
,
};
// 这里修改进去了
if
(
ab
.
bizId
!=
ns
.
channelDeliverId
)
{
updateObj
.
channelDeliverId
=
ab
.
bizId
}
...
...
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