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
b13d4d14
Commit
b13d4d14
authored
Nov 03, 2021
by
linboxuan
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/center-order' into center-order
parents
f5acc34a
255b9181
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
46 additions
and
24 deletions
+46
-24
center-order/app/base/api/api.base.js
+4
-1
center-order/app/base/api/impl/action/need.js
+3
-0
center-order/app/base/api/impl/task/taskAction.js
+6
-5
center-order/app/base/service/impl/dbneed/needinfoSve.js
+7
-0
center-order/app/base/service/impl/dbneed/needinfoSve2.js
+1
-1
center-order/app/base/service/impl/qcutils/baseqcSve.js
+25
-17
No files found.
center-order/app/base/api/api.base.js
View file @
b13d4d14
...
@@ -28,7 +28,10 @@ class APIBase {
...
@@ -28,7 +28,10 @@ class APIBase {
return
system
.
getResultSuccess
();
return
system
.
getResultSuccess
();
}
}
}
}
if
([
"updateTmStatus"
,
"bulkCreateNeeds"
,
"bulkCreateOrders"
].
indexOf
(
methodname
)
>=
0
)
{
if
([
"updateTmStatus"
,
"bulkCreateNeeds"
,
"bulkCreateOrders"
,
"getNeedComparisonList"
].
indexOf
(
methodname
)
>=
0
)
{
return
system
.
getResultSuccess
();
}
if
([
"getNeedComparisonList"
].
indexOf
(
method
)
>=
0
)
{
return
system
.
getResultSuccess
();
return
system
.
getResultSuccess
();
}
}
if
(
!
pobj
.
appInfo
)
{
if
(
!
pobj
.
appInfo
)
{
...
...
center-order/app/base/api/impl/action/need.js
View file @
b13d4d14
...
@@ -59,6 +59,9 @@ class IcAPI extends APIBase {
...
@@ -59,6 +59,9 @@ class IcAPI extends APIBase {
case
"getSolutionByChannelOrderNo"
:
//渠道订单号获取方案详情
case
"getSolutionByChannelOrderNo"
:
//渠道订单号获取方案详情
opResult
=
await
this
.
needinfoSve
.
getSolutionByChannelOrderNo
(
pobj
,
pobj
.
actionBody
,
req
);
opResult
=
await
this
.
needinfoSve
.
getSolutionByChannelOrderNo
(
pobj
,
pobj
.
actionBody
,
req
);
break
;
break
;
case
"getOrderInfoByChannelOrderNo"
:
//渠道订单号获取订单信息
opResult
=
await
this
.
needinfoSve
.
getOrderInfoByChannelOrderNo
(
pobj
,
pobj
.
actionBody
,
req
);
break
;
case
"writeCommunicationLog"
:
//渠道方案号获取需求详情
case
"writeCommunicationLog"
:
//渠道方案号获取需求详情
opResult
=
await
this
.
needinfoSve2
.
writeCommunicationLog
(
pobj
,
pobj
.
actionBody
,
req
);
opResult
=
await
this
.
needinfoSve2
.
writeCommunicationLog
(
pobj
,
pobj
.
actionBody
,
req
);
break
;
break
;
...
...
center-order/app/base/api/impl/task/taskAction.js
View file @
b13d4d14
var
APIBase
=
require
(
"../../api.base"
);
var
APIBase
=
require
(
"../../api.base"
);
//
var system = require("../../../system");
var
system
=
require
(
"../../../system"
);
// var settings = require("../../../../config/settings");
// var settings = require("../../../../config/settings");
class
TaskAction
extends
APIBase
{
class
TaskAction
extends
APIBase
{
// constructor() {//由dba进行处理了
// constructor() {//由dba进行处理了
...
@@ -14,10 +14,11 @@ class TaskAction extends APIBase {
...
@@ -14,10 +14,11 @@ class TaskAction extends APIBase {
// * action_type 执行的类型
// * action_type 执行的类型
// * action_body 执行的参数
// * action_body 执行的参数
// */
// */
// async taskNeed(pobj, qobj, req) {
async
taskNeed
(
pobj
,
qobj
,
req
)
{
// var result = await this.opneedinfoSve.syncNeedBusiness();
return
system
.
getResultSuccess
();
// return result;
// var result = await this.opneedinfoSve.syncNeedBusiness();
// }
// return result;
}
//
//
// async taskProduct(pobj, qobj, req) {
// async taskProduct(pobj, qobj, req) {
// var result = await this.orderproductSve.syncProductData();
// var result = await this.orderproductSve.syncProductData();
...
...
center-order/app/base/service/impl/dbneed/needinfoSve.js
View file @
b13d4d14
...
@@ -237,6 +237,13 @@ class NeedinfoService extends ServiceBase {
...
@@ -237,6 +237,13 @@ class NeedinfoService extends ServiceBase {
return
system
.
getResultSuccess
(
item
);
return
system
.
getResultSuccess
(
item
);
}
}
async
getOrderInfoByChannelOrderNo
(
pobj
){
var
orderinfo
=
await
this
.
orderinfoDao
.
findOne
({
channelOrderNo
:
pobj
.
actionBody
.
orderNo
});
if
(
!
orderinfo
||
!
orderinfo
.
orderNo
)
{
return
system
.
getResult
(
null
,
"订单数据为空,302101"
);
}
return
system
.
getResultSuccess
(
orderinfo
);
}
async
submitIcpIntention
(
pobj
,
actionBody
,
req
)
{
async
submitIcpIntention
(
pobj
,
actionBody
,
req
)
{
var
needNo
=
await
this
.
getBusUid
(
"n"
);
var
needNo
=
await
this
.
getBusUid
(
"n"
);
var
nobj
=
{
var
nobj
=
{
...
...
center-order/app/base/service/impl/dbneed/needinfoSve2.js
View file @
b13d4d14
...
@@ -88,7 +88,7 @@ class NeedinfoService2 extends ServiceBase {
...
@@ -88,7 +88,7 @@ class NeedinfoService2 extends ServiceBase {
return
system
.
getResult
(
null
,
"actionBody.userFeedBack can not be empty,100494"
);
return
system
.
getResult
(
null
,
"actionBody.userFeedBack can not be empty,100494"
);
}
}
}
}
var
sql
=
"select uapp_id from n_need_info where channelNeedNo = :channelNeedNo "
;
var
sql
=
"select uapp_id
,followContent
from n_need_info where channelNeedNo = :channelNeedNo "
;
var
where
=
{
var
where
=
{
channelNeedNo
:
pobj
.
actionBody
.
intentionBizId
channelNeedNo
:
pobj
.
actionBody
.
intentionBizId
}
}
...
...
center-order/app/base/service/impl/qcutils/baseqcSve.js
View file @
b13d4d14
...
@@ -189,14 +189,22 @@ class BaseQcService {
...
@@ -189,14 +189,22 @@ class BaseQcService {
}
}
}
}
if
(
needinfo
.
uapp_id
==
52
){
if
(
needinfo
.
uapp_id
==
52
){
if
(
needinfo
.
channelTypeCode
==
"7"
)
{
//edi
if
(
needinfo
.
channelTypeCode
==
"7"
)
{
//edi
sq
ab
.
solutionContent
.
solution
.
IcpType
=
2
;
ab
.
solutionContent
.
solution
.
IcpType
=
2
;
}
else
if
(
needinfo
.
channelTypeCode
==
"5"
)
{
//icp
}
else
if
(
needinfo
.
channelTypeCode
==
"5"
)
{
//icp
sq
ab
.
solutionContent
.
solution
.
IcpType
=
1
;
ab
.
solutionContent
.
solution
.
IcpType
=
1
;
}
else
if
(
needinfo
.
channelTypeCode
==
"
icpnb"
)
{
//icpnb
}
else
if
(
needinfo
.
channelTypeCode
==
"
ICPNB"
)
{
//ICPNB
ab
.
solutionContent
.
solution
.
IcpType
=
3
;
ab
.
solutionContent
.
solution
.
IcpType
=
3
;
}
else
if
(
needinfo
.
channelTypeCode
==
"
edinb"
)
{
//edinb
}
else
if
(
needinfo
.
channelTypeCode
==
"
EIDNB"
)
{
//EIDNB
ab
.
solutionContent
.
solution
.
IcpType
=
4
;
ab
.
solutionContent
.
solution
.
IcpType
=
4
;
}
else
if
(
needinfo
.
channelTypeCode
==
"ICPXQ"
)
{
//ICPXQ
ab
.
solutionContent
.
solution
.
IcpType
=
5
;
}
else
if
(
needinfo
.
channelTypeCode
==
"EIDXQ"
)
{
//EIDXQ
ab
.
solutionContent
.
solution
.
IcpType
=
6
;
}
else
if
(
needinfo
.
channelTypeCode
==
"ICPWZ"
)
{
//ICPWZ
ab
.
solutionContent
.
solution
.
IcpType
=
7
;
}
else
if
(
needinfo
.
channelTypeCode
==
"EIDWZ"
)
{
//EIDWZ
ab
.
solutionContent
.
solution
.
IcpType
=
8
;
}
else
{
}
else
{
return
system
.
getResultFail
(
-
208
,
"需求业务类型有误-52"
);
return
system
.
getResultFail
(
-
208
,
"需求业务类型有误-52"
);
}
}
...
@@ -503,19 +511,19 @@ class BaseQcService {
...
@@ -503,19 +511,19 @@ class BaseQcService {
var
uappId
=
orderuappId
.
uapp_id
;
var
uappId
=
orderuappId
.
uapp_id
;
}
}
if
(
uappId
!=
'50'
)
{
if
(
uappId
!=
'50'
)
{
if
(
!
needsolutioninfo
.
channelNeedNo
)
{
//
if (!needsolutioninfo.channelNeedNo) {
return
system
.
getResultFail
(
-
401
,
"方案需求信息有误"
);
//
return system.getResultFail(-401, "方案需求信息有误");
}
//
}
//获取需求信息
//
//
获取需求信息
var
needinfo
=
await
this
.
needinfoDao
.
model
.
findOne
({
//
var needinfo = await this.needinfoDao.model.findOne({
where
:
{
channelNeedNo
:
needsolutioninfo
.
channelNeedNo
},
raw
:
true
//
where: { channelNeedNo: needsolutioninfo.channelNeedNo }, raw: true
});
//
});
if
(
!
needinfo
||
!
needinfo
.
id
)
{
//
if (!needinfo || !needinfo.id) {
return
system
.
getResultFail
(
-
201
,
"未知需求信息"
);
//
return system.getResultFail(-201, "未知需求信息");
}
//
}
if
(
needinfo
.
status
==
"ygb"
)
{
//
if (needinfo.status == "ygb") {
return
system
.
getResultFail
(
-
202
,
"serviceProviderSubmitMateria"
+
needinfo
.
statusName
+
",不能执行此操作"
);
//
return system.getResultFail(-202, "serviceProviderSubmitMateria" + needinfo.statusName + ",不能执行此操作");
}
//
}
}
}
if
(
ab
.
ApplicationStatus
==
507
)
{
//完成账户注册
if
(
ab
.
ApplicationStatus
==
507
)
{
//完成账户注册
if
(
uappId
==
'18'
)
{
if
(
uappId
==
'18'
)
{
...
...
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