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
814bc6da
Commit
814bc6da
authored
Oct 30, 2020
by
任晓松
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/center-order' into center-order
parents
c51c599c
5bdb26e3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
207 additions
and
0 deletions
+207
-0
center-order/app/base/api/impl/action/baseapi.js
+125
-0
center-order/app/base/api/impl/action/need2.js
+82
-0
center-order/app/base/service/impl/dbneed/needinfoSve2.js
+0
-0
center-order/app/base/service/impl/qcutils/baseqcSve.js
+0
-0
No files found.
center-order/app/base/api/impl/action/baseapi.js
0 → 100644
View file @
814bc6da
var
APIBase
=
require
(
"../../api.base"
);
var
system
=
require
(
"../../../system"
);
var
settings
=
require
(
"../../../../config/settings"
);
class
BaseAPI
extends
APIBase
{
constructor
()
{
super
();
this
.
aliyunqcSve
=
system
.
getObject
(
"service.qcutils.aliyunqcSve"
);
this
.
baiduqcSve
=
system
.
getObject
(
"service.qcutils.baiduqcSve"
);
this
.
baseqcSve
=
system
.
getObject
(
"service.qcutils.baseqcSve"
);
}
/**
* 接口跳转-POST请求
* action_process 执行的流程
* action_type 执行的类型
* action_body 执行的参数
*/
async
springBoard
(
pobj
,
qobj
,
req
)
{
if
(
!
pobj
.
actionType
)
{
return
system
.
getResult
(
null
,
"actionType参数不能为空"
);
}
if
(
pobj
.
actionType
==
'getPolicyNeedList'
||
pobj
.
actionType
==
'submitPolicyNeedNotes'
)
{
if
(
!
pobj
.
userInfo
)
{
return
system
.
getResult
(
system
.
noLogin
,
"user no login!"
);
}
if
(
!
pobj
.
appInfo
)
{
return
system
.
getResult
(
system
.
noLogin
,
"app is null!"
);
}
}
var
result
=
await
this
.
opActionProcess
(
pobj
,
pobj
.
actionType
,
req
);
return
result
;
}
async
opActionProcess
(
pobj
,
action_type
,
req
)
{
console
.
log
(
"pobj"
,
pobj
)
var
opResult
=
null
;
switch
(
action_type
)
{
case
"receiveProgrammeNo"
:
//接收方案编号(方案推送至阿里后,接收保存方案信息)
opResult
=
await
this
.
baseqcSve
.
receiveProgrammeNo
(
pobj
);
break
;
case
"submitIcpProgramme"
:
//icp方案提交
opResult
=
await
this
.
baseqcSve
.
submitIcpProgramme
(
pobj
);
break
;
// case "submitIcpMaterial"://icp材料提交
// opResult = await this.baseqcSve.submitIcpMaterial(pobj);
// break;
case
"acceptIcpPartnerNotification"
:
//icp通知状态变更
opResult
=
await
this
.
baseqcSve
.
acceptIcpPartnerNotification
(
pobj
);
break
;
case
"abolishIcpProgramme"
:
//服务商icp方案关闭
opResult
=
await
this
.
baseqcSve
.
abolishIcpProgramme
(
pobj
);
break
;
case
"getIcpProgrammeDetail"
:
//获取icp方案
opResult
=
await
this
.
baseqcSve
.
getIcpProgrammeDetail
(
pobj
);
break
;
case
"getNeedSolutionDetailByUser"
:
//获取方案详情
opResult
=
await
this
.
baseqcSve
.
getNeedSolutionDetailByUser
(
pobj
);
break
;
case
"receiveIcpStatusNotify"
:
//接收渠道方案状态变更通知2.3
opResult
=
await
this
.
baseqcSve
.
receiveIcpStatusNotify
(
pobj
);
break
;
case
"receiveIcpFeedback"
:
//接收icp用户方案反馈2.2
opResult
=
await
this
.
baseqcSve
.
receiveIcpFeedback
(
pobj
);
break
;
case
"getIcpProgrammeDetail"
:
//获取方案详情(内部调用)
opResult
=
await
this
.
baseqcSve
.
getIcpProgrammeDetail
(
pobj
);
break
;
case
"getProgrammeInfoByChannelNeedNo"
:
//获取需求方案列表
opResult
=
await
this
.
baseqcSve
.
getProgrammeInfoByChannelNeedNo
(
pobj
);
break
;
case
"serviceProviderSubmitMaterial"
:
//交付商提交材料信息
opResult
=
await
this
.
baseqcSve
.
serviceProviderSubmitMaterial
(
pobj
);
break
;
case
"serviceProviderNotification"
:
//交付商通知状态变更
opResult
=
await
this
.
baseqcSve
.
serviceProviderNotification
(
pobj
);
break
;
case
"closeOrderDelivery"
:
//交付商关闭交付单
opResult
=
await
this
.
baseqcSve
.
closeOrderDelivery
(
pobj
);
break
;
case
"abolishIcpProgrammeByNeed"
:
//前端关闭ICP需求及方案
opResult
=
await
this
.
baseqcSve
.
abolishIcpProgrammeByNeed
(
pobj
);
break
;
case
"receiveIcpConfirmUrl"
:
//前端关闭ICP需求及方案
opResult
=
await
this
.
baseqcSve
.
receiveIcpConfirmUrl
(
pobj
);
break
;
//-----------文网文-----------
case
"serviceSubmitOption"
:
//服务商提交服务操作
opResult
=
await
this
.
baseqcSve
.
serviceSubmitOption
(
pobj
);
break
;
case
"submitWangwenSolution"
:
//提交方案
opResult
=
await
this
.
baseqcSve
.
submitWangwenSolution
(
pobj
);
break
;
case
"closeNeed"
:
//关闭需求
opResult
=
await
this
.
baseqcSve
.
closeNeed
(
pobj
);
break
;
case
"recordLog"
:
//提交沟通记录
opResult
=
await
this
.
baseqcSve
.
recordLog
(
pobj
);
break
;
//-----------食品-----------
case
"foodServiceSubmitOption"
:
//服务商提交服务操作
opResult
=
await
this
.
baseqcSve
.
foodServiceSubmitOption
(
pobj
);
break
;
case
"submitFoodSolution"
:
//提交方案
opResult
=
await
this
.
baseqcSve
.
submitFoodSolution
(
pobj
);
break
;
case
"foodCloseNeed"
:
//关闭需求
opResult
=
await
this
.
baseqcSve
.
foodCloseNeed
(
pobj
);
break
;
case
"foodRecordLog"
:
//提交沟通记录
opResult
=
await
this
.
baseqcSve
.
foodRecordLog
(
pobj
);
break
;
case
"receiveOrderStatusNotify"
:
//接收订单状态推送 百度icp 2.3
opResult
=
await
this
.
baiduqcSve
.
receiveOrderStatusNotify
(
pobj
);
break
;
default
:
opResult
=
system
.
getResult
(
null
,
"action_type参数错误"
);
break
;
}
return
opResult
;
}
}
module
.
exports
=
BaseAPI
;
\ No newline at end of file
center-order/app/base/api/impl/action/need2.js
0 → 100644
View file @
814bc6da
var
APIBase
=
require
(
"../../api.base"
);
var
system
=
require
(
"../../../system"
);
var
settings
=
require
(
"../../../../config/settings"
);
class
IcAPI
extends
APIBase
{
constructor
()
{
super
();
this
.
needinfoSve
=
system
.
getObject
(
"service.dbneed.needinfoSve"
);
this
.
needinfoSve2
=
system
.
getObject
(
"service.dbneed.needinfoSve2"
);
}
/**
* 接口跳转-POST请求
* action_process 执行的流程
* action_type 执行的类型
* action_body 执行的参数
*/
async
springBoard
(
pobj
,
qobj
,
req
)
{
if
(
!
pobj
.
actionType
)
{
return
system
.
getResult
(
null
,
"actionType参数不能为空"
);
}
if
(
pobj
.
actionType
==
'getPolicyNeedList'
||
pobj
.
actionType
==
'submitPolicyNeedNotes'
)
{
if
(
!
pobj
.
userInfo
)
{
return
system
.
getResult
(
system
.
noLogin
,
"user no login!"
);
}
if
(
!
pobj
.
appInfo
)
{
return
system
.
getResult
(
system
.
noLogin
,
"app is null!"
);
}
}
var
result
=
await
this
.
opActionProcess
(
pobj
,
pobj
.
actionType
,
req
);
return
result
;
}
async
opActionProcess
(
pobj
,
action_type
,
req
)
{
var
opResult
=
null
;
switch
(
action_type
)
{
case
"submitNeed"
:
//提交需求
opResult
=
await
this
.
needinfoSve2
.
submitNeed
(
pobj
,
pobj
.
actionBody
,
req
);
break
;
case
"submitNeedH5"
:
//工商H5提交需求
opResult
=
await
this
.
needinfoSve2
.
submitNeedH5
(
pobj
,
pobj
.
actionBody
,
req
);
break
;
case
"getItemByNeedNo"
:
//获取需求详情
opResult
=
await
this
.
needinfoSve2
.
getItemByNeedNo
(
pobj
);
break
;
case
"getItemByChannelNeedNo"
:
//获取需求详情
opResult
=
await
this
.
needinfoSve2
.
getItemByChannelNeedNo
(
pobj
);
break
;
case
"needClose"
:
//需求关闭
opResult
=
await
this
.
needinfoSve2
.
needClose
(
pobj
,
pobj
.
actionBody
,
req
);
break
;
case
"getItemByChannelSolutionNo"
:
//渠道方案号获取需求详情
opResult
=
await
this
.
needinfoSve2
.
getItemByChannelSolutionNo
(
pobj
,
pobj
.
actionBody
,
req
);
break
;
case
"writeCommunicationLog"
:
//渠道方案号获取需求详情
opResult
=
await
this
.
needinfoSve2
.
writeCommunicationLog
(
pobj
,
pobj
.
actionBody
,
req
);
break
;
case
"submitIcpIntention"
:
// 2020 0827 lin 新增 4.1 提交需求
opResult
=
await
this
.
needinfoSve2
.
submitIcpIntention
(
pobj
,
pobj
.
actionBody
,
req
);
break
;
case
"queryIntentionList"
:
// 2020 0827 lin 新增 4.2 需求列表查询
opResult
=
await
this
.
needinfoSve2
.
queryIntentionList
(
pobj
,
pobj
.
actionBody
,
req
);
break
;
case
"confirmIcpIntention"
:
// 2020 0827 lin 新增 4.3 用户需求确认
opResult
=
await
this
.
needinfoSve2
.
confirmIcpIntention
(
pobj
,
pobj
.
actionBody
,
req
);
break
;
case
"getUnCreated"
:
// 获取需求列表
opResult
=
await
this
.
needinfoSve2
.
getUnCreated
(
pobj
,
pobj
.
actionBody
,
req
);
break
;
case
"queryExpertApplyCommunicationLogs"
:
// 查询需求沟通记录 2020-10-28 laolan
opResult
=
await
this
.
needinfoSve2
.
queryExpertApplyCommunicationLogs
(
pobj
,
pobj
.
actionBody
,
req
);
break
;
default
:
opResult
=
system
.
getResult
(
null
,
"action_type参数错误"
);
break
;
}
return
opResult
;
}
}
module
.
exports
=
IcAPI
;
\ No newline at end of file
center-order/app/base/service/impl/dbneed/needinfoSve2.js
0 → 100644
View file @
814bc6da
This diff is collapsed.
Click to expand it.
center-order/app/base/service/impl/qcutils/baseqcSve.js
0 → 100644
View file @
814bc6da
This diff is collapsed.
Click to expand it.
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