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
7e497fca
Commit
7e497fca
authored
Nov 11, 2020
by
庄冰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
关闭icp订单
parent
d0bd12e6
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
3 deletions
+21
-3
center-order/app/base/api/impl/action/need.js
+3
-0
center-order/app/base/service/impl/dbneed/needinfoSve.js
+15
-0
center-order/app/base/service/impl/qcutils/baiduqcSve.js
+3
-3
No files found.
center-order/app/base/api/impl/action/need.js
View file @
7e497fca
...
@@ -50,6 +50,9 @@ class IcAPI extends APIBase {
...
@@ -50,6 +50,9 @@ class IcAPI extends APIBase {
case
"getItemByChannelSolutionNo"
:
//渠道方案号获取需求详情
case
"getItemByChannelSolutionNo"
:
//渠道方案号获取需求详情
opResult
=
await
this
.
needinfoSve
.
getItemByChannelSolutionNo
(
pobj
,
pobj
.
actionBody
,
req
);
opResult
=
await
this
.
needinfoSve
.
getItemByChannelSolutionNo
(
pobj
,
pobj
.
actionBody
,
req
);
break
;
break
;
case
"getSolutionByChannelOrderNo"
:
//渠道订单号获取方案详情
opResult
=
await
this
.
needinfoSve
.
getSolutionByChannelOrderNo
(
pobj
,
pobj
.
actionBody
,
req
);
break
;
case
"writeCommunicationLog"
:
//渠道方案号获取需求详情
case
"writeCommunicationLog"
:
//渠道方案号获取需求详情
opResult
=
await
this
.
needinfoSve
.
writeCommunicationLog
(
pobj
,
pobj
.
actionBody
,
req
);
opResult
=
await
this
.
needinfoSve
.
writeCommunicationLog
(
pobj
,
pobj
.
actionBody
,
req
);
break
;
break
;
...
...
center-order/app/base/service/impl/dbneed/needinfoSve.js
View file @
7e497fca
...
@@ -10,6 +10,7 @@ class NeedinfoService extends ServiceBase {
...
@@ -10,6 +10,7 @@ class NeedinfoService extends ServiceBase {
this
.
needsolutionSve
=
system
.
getObject
(
"service.dbneed.needsolutionSve"
);
this
.
needsolutionSve
=
system
.
getObject
(
"service.dbneed.needsolutionSve"
);
this
.
needsolutionDao
=
system
.
getObject
(
"db.dbneed.needsolutionDao"
);
this
.
needsolutionDao
=
system
.
getObject
(
"db.dbneed.needsolutionDao"
);
this
.
needinfoDao
=
system
.
getObject
(
"db.dbneed.needinfoDao"
);
this
.
needinfoDao
=
system
.
getObject
(
"db.dbneed.needinfoDao"
);
this
.
orderinfoDao
=
system
.
getObject
(
"db.dbcorder.orderinfoDao"
);
}
}
async
getItemByNeedNo
(
pobj
)
{
async
getItemByNeedNo
(
pobj
)
{
var
item
=
await
this
.
dao
.
getItemByNeedNo
(
pobj
.
actionBody
.
needNo
);
var
item
=
await
this
.
dao
.
getItemByNeedNo
(
pobj
.
actionBody
.
needNo
);
...
@@ -185,6 +186,20 @@ class NeedinfoService extends ServiceBase {
...
@@ -185,6 +186,20 @@ class NeedinfoService extends ServiceBase {
return
system
.
getResultSuccess
(
item
);
return
system
.
getResultSuccess
(
item
);
}
}
async
getSolutionByChannelOrderNo
(
pobj
){
var
orderinfo
=
await
this
.
orderinfoDao
.
findOne
({
channelOrderNo
:
pobj
.
actionBody
.
orderNo
});
if
(
!
orderinfo
||
!
orderinfo
.
orderNo
)
{
return
system
.
getResult
(
null
,
"订单数据为空,30210"
);
}
var
item
=
await
this
.
needsolutionDao
.
model
.
findOne
({
where
:{
orderNo
:
orderinfo
.
orderNo
}
});
if
(
!
item
)
{
return
system
.
getResult
(
null
,
"方案数据为空,30210"
);
}
return
system
.
getResultSuccess
(
item
);
}
async
writeCommunicationLog
(
pobj
,
actionBody
)
{
async
writeCommunicationLog
(
pobj
,
actionBody
)
{
// 查询需求沟通记录
// 查询需求沟通记录
// 2020 0820 lin 修改channel传过来的参数 为 note/intentionBizId
// 2020 0820 lin 修改channel传过来的参数 为 note/intentionBizId
...
...
center-order/app/base/service/impl/qcutils/baiduqcSve.js
View file @
7e497fca
...
@@ -201,12 +201,12 @@ class BaiduQcService {
...
@@ -201,12 +201,12 @@ class BaiduQcService {
}
}
//关闭ICP订单 百度icp 2.4
//关闭ICP订单 百度icp 2.4
async
icpOrderClose
(
pobj
)
{
async
icpOrderClose
(
pobj
)
{
var
ab
=
pobj
;
var
ab
=
pobj
.
actionBody
;
if
(
!
ab
.
channelO
rderNo
)
{
if
(
!
ab
.
o
rderNo
)
{
return
system
.
getResultFail
(
-
101
,
"渠道订单号不能为空"
);
return
system
.
getResultFail
(
-
101
,
"渠道订单号不能为空"
);
}
}
var
orderInfo
=
await
this
.
orderinfoDao
.
model
.
findOne
({
var
orderInfo
=
await
this
.
orderinfoDao
.
model
.
findOne
({
where
:{
channelOrderNo
:
ab
.
channelO
rderNo
},
raw
:
true
where
:{
channelOrderNo
:
ab
.
o
rderNo
},
raw
:
true
});
});
if
(
!
orderInfo
||
!
orderInfo
.
id
)
{
if
(
!
orderInfo
||
!
orderInfo
.
id
)
{
return
system
.
getResultFail
(
-
103
,
"未知订单"
);
return
system
.
getResultFail
(
-
103
,
"未知订单"
);
...
...
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