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
d0bd12e6
Commit
d0bd12e6
authored
Nov 10, 2020
by
linboxuan
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'center-order' of
http://gitlab.gongsibao.com/jiangyong/zhichan
into center-order
parents
729a425d
eb80e2f8
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
209 deletions
+2
-209
center-order/app/base/api/impl/action/baseapi.js
+0
-125
center-order/app/base/api/impl/action/need2.js
+0
-82
center-order/app/base/api/impl/action/qcapi.js
+2
-2
No files found.
center-order/app/base/api/impl/action/baseapi.js
deleted
100644 → 0
View file @
729a425d
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
.
aliyunqcSve
.
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
.
aliyunqcSve
.
abolishIcpProgramme
(
pobj
);
break
;
case
"getIcpProgrammeDetail"
:
//获取icp方案
opResult
=
await
this
.
aliyunqcSve
.
getIcpProgrammeDetail
(
pobj
);
break
;
case
"getNeedSolutionDetailByUser"
:
//获取方案详情
opResult
=
await
this
.
aliyunqcSve
.
getNeedSolutionDetailByUser
(
pobj
);
break
;
case
"receiveIcpStatusNotify"
:
//接收渠道方案状态变更通知2.3
opResult
=
await
this
.
aliyunqcSve
.
receiveIcpStatusNotify
(
pobj
);
break
;
case
"receiveIcpFeedback"
:
//接收icp用户方案反馈2.2
opResult
=
await
this
.
aliyunqcSve
.
receiveIcpFeedback
(
pobj
);
break
;
case
"getIcpProgrammeDetail"
:
//获取方案详情(内部调用)
opResult
=
await
this
.
aliyunqcSve
.
getIcpProgrammeDetail
(
pobj
);
break
;
case
"getProgrammeInfoByChannelNeedNo"
:
//获取需求方案列表
opResult
=
await
this
.
aliyunqcSve
.
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
.
aliyunqcSve
.
closeOrderDelivery
(
pobj
);
break
;
case
"abolishIcpProgrammeByNeed"
:
//前端关闭ICP需求及方案
opResult
=
await
this
.
baseqcSve
.
abolishIcpProgrammeByNeed
(
pobj
);
break
;
case
"receiveIcpConfirmUrl"
:
//前端关闭ICP需求及方案
opResult
=
await
this
.
aliyunqcSve
.
receiveIcpConfirmUrl
(
pobj
);
break
;
//-----------文网文-----------
case
"serviceSubmitOption"
:
//服务商提交服务操作
opResult
=
await
this
.
aliyunqcSve
.
serviceSubmitOption
(
pobj
);
break
;
case
"submitWangwenSolution"
:
//提交方案
opResult
=
await
this
.
aliyunqcSve
.
submitWangwenSolution
(
pobj
);
break
;
case
"closeNeed"
:
//关闭需求
opResult
=
await
this
.
aliyunqcSve
.
closeNeed
(
pobj
);
break
;
case
"recordLog"
:
//提交沟通记录
opResult
=
await
this
.
aliyunqcSve
.
recordLog
(
pobj
);
break
;
//-----------食品-----------
case
"foodServiceSubmitOption"
:
//服务商提交服务操作
opResult
=
await
this
.
aliyunqcSve
.
foodServiceSubmitOption
(
pobj
);
break
;
case
"submitFoodSolution"
:
//提交方案
opResult
=
await
this
.
aliyunqcSve
.
submitFoodSolution
(
pobj
);
break
;
case
"foodCloseNeed"
:
//关闭需求
opResult
=
await
this
.
aliyunqcSve
.
foodCloseNeed
(
pobj
);
break
;
case
"foodRecordLog"
:
//提交沟通记录
opResult
=
await
this
.
aliyunqcSve
.
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
deleted
100644 → 0
View file @
729a425d
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
.
needinfoSve
.
submitNeed
(
pobj
,
pobj
.
actionBody
,
req
);
break
;
case
"submitNeedH5"
:
//工商H5提交需求
opResult
=
await
this
.
needinfoSve
.
submitNeedH5
(
pobj
,
pobj
.
actionBody
,
req
);
break
;
case
"getItemByNeedNo"
:
//获取需求详情
opResult
=
await
this
.
needinfoSve
.
getItemByNeedNo
(
pobj
);
break
;
case
"getItemByChannelNeedNo"
:
//获取需求详情
opResult
=
await
this
.
needinfoSve
.
getItemByChannelNeedNo
(
pobj
);
break
;
case
"needClose"
:
//需求关闭
opResult
=
await
this
.
needinfoSve
.
needClose
(
pobj
,
pobj
.
actionBody
,
req
);
break
;
case
"getItemByChannelSolutionNo"
:
//渠道方案号获取需求详情
opResult
=
await
this
.
needinfoSve
.
getItemByChannelSolutionNo
(
pobj
,
pobj
.
actionBody
,
req
);
break
;
case
"writeCommunicationLog"
:
//渠道方案号获取需求详情
opResult
=
await
this
.
needinfoSve
.
writeCommunicationLog
(
pobj
,
pobj
.
actionBody
,
req
);
break
;
case
"submitIcpIntention"
:
// 2020 0827 lin 新增 4.1 提交需求
opResult
=
await
this
.
needinfoSve
.
submitIcpIntention
(
pobj
,
pobj
.
actionBody
,
req
);
break
;
case
"queryIntentionList"
:
// 2020 0827 lin 新增 4.2 需求列表查询
opResult
=
await
this
.
needinfoSve
.
queryIntentionList
(
pobj
,
pobj
.
actionBody
,
req
);
break
;
case
"confirmIcpIntention"
:
// 2020 0827 lin 新增 4.3 用户需求确认
opResult
=
await
this
.
needinfoSve
.
confirmIcpIntention
(
pobj
,
pobj
.
actionBody
,
req
);
break
;
case
"getUnCreated"
:
// 获取需求列表
opResult
=
await
this
.
needinfoSve
.
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/api/impl/action/qcapi.js
View file @
d0bd12e6
...
@@ -44,7 +44,7 @@ class QcAPI extends APIBase {
...
@@ -44,7 +44,7 @@ class QcAPI extends APIBase {
// opResult = await this.aliyunqcSve.submitIcpMaterial(pobj);
// opResult = await this.aliyunqcSve.submitIcpMaterial(pobj);
// break;
// break;
case
"acceptIcpPartnerNotification"
:
//icp通知状态变更
case
"acceptIcpPartnerNotification"
:
//icp通知状态变更
opResult
=
await
this
.
aliyun
qcSve
.
acceptIcpPartnerNotification
(
pobj
);
opResult
=
await
this
.
base
qcSve
.
acceptIcpPartnerNotification
(
pobj
);
break
;
break
;
case
"abolishIcpProgramme"
:
//服务商icp方案关闭
case
"abolishIcpProgramme"
:
//服务商icp方案关闭
opResult
=
await
this
.
aliyunqcSve
.
abolishIcpProgramme
(
pobj
);
opResult
=
await
this
.
aliyunqcSve
.
abolishIcpProgramme
(
pobj
);
...
@@ -78,7 +78,7 @@ class QcAPI extends APIBase {
...
@@ -78,7 +78,7 @@ class QcAPI extends APIBase {
opResult
=
await
this
.
aliyunqcSve
.
closeOrderDelivery
(
pobj
);
opResult
=
await
this
.
aliyunqcSve
.
closeOrderDelivery
(
pobj
);
break
;
break
;
case
"abolishIcpProgrammeByNeed"
:
//前端关闭ICP需求及方案
case
"abolishIcpProgrammeByNeed"
:
//前端关闭ICP需求及方案
opResult
=
await
this
.
aliyun
qcSve
.
abolishIcpProgrammeByNeed
(
pobj
);
opResult
=
await
this
.
base
qcSve
.
abolishIcpProgrammeByNeed
(
pobj
);
break
;
break
;
case
"receiveIcpConfirmUrl"
:
//前端关闭ICP需求及方案
case
"receiveIcpConfirmUrl"
:
//前端关闭ICP需求及方案
opResult
=
await
this
.
aliyunqcSve
.
receiveIcpConfirmUrl
(
pobj
);
opResult
=
await
this
.
aliyunqcSve
.
receiveIcpConfirmUrl
(
pobj
);
...
...
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