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
6211ce9a
Commit
6211ce9a
authored
Apr 12, 2021
by
任晓松
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/center-order' into center-order
parents
22238e1e
3fe54f92
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
53 additions
and
25 deletions
+53
-25
center-order/app/base/db/models/dbcorder/orderinfo.js
+2
-1
center-order/app/base/db/models/dbcorder/orderproduct.js
+1
-0
center-order/app/base/service/impl/dbcorder/orderdeliverSve.js
+1
-0
center-order/app/base/service/impl/dbcorder/orderinfoSve.js
+10
-2
center-order/app/base/service/impl/dbneed/needinfoSve.js
+26
-9
center-order/app/base/service/impl/dbneed/needsolutionSve.js
+4
-4
center-order/app/base/service/impl/qcutils/aliyunqcSve.js
+4
-4
center-order/app/base/service/impl/qcutils/baiduqcSve.js
+1
-1
center-order/app/base/service/impl/qcutils/baseqcSve.js
+2
-2
center-order/app/base/service/impl/qcutils/ncSve.js
+1
-1
center-order/app/base/service/impl/qcutils/regCenterOrderSve.js
+1
-1
No files found.
center-order/app/base/db/models/dbcorder/orderinfo.js
View file @
6211ce9a
...
...
@@ -5,7 +5,8 @@ module.exports = (db, DataTypes) => {
return
db
.
define
(
"orderinfo"
,
{
uapp_id
:
DataTypes
.
INTEGER
,
//
// solutionId :DataTypes.STRING(128),// 方案ID
orderNo
:
DataTypes
.
STRING
(
128
),
// 订单号
orderNo
:
DataTypes
.
STRING
(
128
),
// 订单号
serviceNo
:
DataTypes
.
STRING
(
128
),
//
channelServiceNo
:
DataTypes
.
STRING
(
128
),
// 渠道服务单号
serviceOrderNo
:
DataTypes
.
STRING
(
128
),
// 服务单号
channelOrderNo
:
DataTypes
.
STRING
(
128
),
// 渠道订单号(页面中列表中显示该单号)
...
...
center-order/app/base/db/models/dbcorder/orderproduct.js
View file @
6211ce9a
...
...
@@ -7,6 +7,7 @@ module.exports = (db, DataTypes) => {
sourceOrderNo
:
DataTypes
.
STRING
(
128
),
//来源单号
productType_id
:
DataTypes
.
INTEGER
,
//产品类型Id
pathCode
:
DataTypes
.
STRING
(
512
),
//产品类型编码路径,如:1/2
pathName
:
DataTypes
.
STRING
(
512
),
//产品类型路径名称,如:1/2
itemCode
:
DataTypes
.
STRING
(
64
),
//产品编码
itemName
:
DataTypes
.
STRING
(
100
),
//产品名称
channelItemCode
:
DataTypes
.
STRING
(
100
),
// 渠道产品编码
...
...
center-order/app/base/service/impl/dbcorder/orderdeliverSve.js
View file @
6211ce9a
...
...
@@ -68,6 +68,7 @@ class OrderInfoService extends ServiceBase {
sourceOrderNo
:
orderNo
,
// 来源单号
productType_id
:
actionBody
.
product_info
.
productType_id
,
//产品类型Id
pathCode
:
actionBody
.
product_info
.
path_code
,
//产品路径
pathName
:
actionBody
.
product_info
.
path_name
,
//产品路径名称
itemCode
:
actionBody
.
product_info
.
item_code
,
//产品编码
itemName
:
actionBody
.
product_info
.
item_name
,
//产品名称
channelItemCode
:
actionBody
.
product_info
.
channel_item_code
,
// 渠道产品编码
...
...
center-order/app/base/service/impl/dbcorder/orderinfoSve.js
View file @
6211ce9a
...
...
@@ -16,6 +16,7 @@ class OrderInfoService extends ServiceBase {
this
.
orderReceiptVoucherDao
=
system
.
getObject
(
"db.dbcpay.orderreceiptvoucherDao"
);
this
.
moneyJourneyDao
=
system
.
getObject
(
"db.dbcpay.moneyjourneyDao"
);
this
.
needsolutionDao
=
system
.
getObject
(
"db.dbneed.needsolutionDao"
);
this
.
needinfoDao
=
system
.
getObject
(
"db.dbneed.needinfoDao"
);
this
.
orderRegionDao
=
system
.
getObject
(
"db.dbcorder.orderregionDao"
);
this
.
push360Sve
=
system
.
getObject
(
'service.common.push360Sve'
);
this
.
orderinfoDao
=
system
.
getObject
(
'db.dbcorder.orderinfoDao'
);
...
...
@@ -139,6 +140,7 @@ class OrderInfoService extends ServiceBase {
sourceOrderNo
:
orderNo
,
// 来源单号
productType_id
:
actionBody
.
product_info
.
productType_id
,
//产品类型Id
pathCode
:
actionBody
.
product_info
.
path_code
,
//产品路径
pathName
:
actionBody
.
product_info
.
path_name
,
//产品路径名称
itemCode
:
actionBody
.
product_info
.
item_code
,
//产品编码
itemName
:
actionBody
.
product_info
.
item_name
,
//产品名称
channelItemCode
:
actionBody
.
product_info
.
channel_item_code
,
// 渠道产品编码
...
...
@@ -292,6 +294,7 @@ class OrderInfoService extends ServiceBase {
sourceOrderNo
:
orderNo
,
// 来源单号
productType_id
:
actionBody
.
product_info
.
productType_id
,
//产品类型Id
pathCode
:
actionBody
.
product_info
.
path_code
,
//产品路径
pathName
:
actionBody
.
product_info
.
path_name
,
//产品路径名称
itemCode
:
actionBody
.
product_info
.
item_code
,
//产品编码
itemName
:
actionBody
.
product_info
.
item_name
,
//产品名称
channelItemCode
:
actionBody
.
product_info
.
channel_item_code
,
// 渠道产品编码
...
...
@@ -2537,6 +2540,7 @@ class OrderInfoService extends ServiceBase {
sourceOrderNo
:
orderNo
,
// 来源单号
productType_id
:
productInfo
.
productType_id
,
//产品类型Id
pathCode
:
productInfo
.
path_code
,
//产品路径
pathName
:
productInfo
.
path_name
,
//产品路径名称
itemCode
:
productInfo
.
item_code
,
//产品编码
itemName
:
productInfo
.
item_name
,
//产品名称
channelItemCode
:
productInfo
.
channel_item_code
,
// 渠道产品编码
...
...
@@ -2554,10 +2558,14 @@ class OrderInfoService extends ServiceBase {
serviceItemSnapshot
:
JSON
.
stringify
(
productInfo
),
//产品快照
orderSnapshot
:
JSON
.
stringify
(
ab
)
// 2020 1110 lin 新增 增加订单快照
};
ab
.
pushStatus
=
3
;
ab
.
isPushNum
=
1
;
var
self
=
this
;
return
await
self
.
db
.
transaction
(
async
function
(
t
)
{
var
o
=
await
self
.
dao
.
create
(
ab
,
t
);
var
orderProduct
=
await
self
.
orderproductDao
.
create
(
orderProductObj
,
t
);
//订单产品
await
self
.
needinfoDao
.
model
.
update
({
status
:
"ycd"
},{
where
:
{
channelNeedNo
:
ab
.
needNo
},
transaction
:
t
});
return
system
.
getResultSuccess
(
o
);
})
...
...
@@ -2605,7 +2613,7 @@ class OrderInfoService extends ServiceBase {
ab
.
channelNeedNo
=
ab
.
needNo
;
ab
.
channelUserId
=
userInfo
.
channel_userid
;
ab
.
ownerUserId
=
userInfo
.
channel_userid
;
ab
.
payTime
=
ab
.
payTime
||
new
Date
()
;
ab
.
payTime
=
ab
.
payTime
;
ab
.
orderStatus
=
2
;
ab
.
totalSum
=
ab
.
price
;
ab
.
payTotalSum
=
ab
.
price
;
...
...
@@ -2638,7 +2646,7 @@ class OrderInfoService extends ServiceBase {
}
orderInfo
.
refundSum
=
pobj
.
actionBody
.
refundSum
||
orderInfo
.
payTotalSum
;
orderInfo
.
orderStatus
=
16
;
orderInfo
.
refundTime
=
pobj
.
actionBody
.
refundTime
||
new
Date
()
;
orderInfo
.
refundTime
=
pobj
.
actionBody
.
refundTime
;
await
this
.
dao
.
update
(
orderInfo
);
return
system
.
getResultSuccess
();
...
...
center-order/app/base/service/impl/dbneed/needinfoSve.js
View file @
6211ce9a
...
...
@@ -185,21 +185,41 @@ class NeedinfoService extends ServiceBase {
}
async
getItemByChannelSolutionNo
(
pobj
)
{
console
.
log
(
'getItemByChannelSolutionNo+++pobj--'
,
pobj
)
var
solutionitem
=
await
this
.
needsolutionDao
.
findOne
({
channelSolutionNo
:
pobj
.
actionBody
.
bizId
});
if
(
!
solutionitem
)
{
return
system
.
getResult
(
null
,
"方案数据为空,30210"
);
}
var
item
=
await
this
.
dao
.
getItemByNeedNo
(
solutionitem
.
needNo
);
console
.
log
(
'ename---item---'
,
item
)
if
(
!
item
)
{
return
system
.
getResult
(
null
,
"需求数据为空,30210"
);
}
let
uappId
;
if
(
item
&&
item
.
uapp_id
){
uappId
=
item
.
uapp_id
}
let
ActionType
// fixme 阿里直购需要更改
if
(
!
pobj
.
actionBody
.
bizId
.
startsWith
(
"TM_"
))
{
//商标不需要
item
.
solutionProvince
=
solutionitem
.
solutionContent
.
solution
.
Area
||
solutionitem
.
solutionContent
.
solution
.
area
;
//item.solutionProvince = solutionitem.solutionContent.solution.Area + `(${solutionitem.solutionContent.solution.actionType})`//北京(新办);
item
.
solutionContent
=
solutionitem
.
solutionContent
item
.
channelSolutionNo
=
solutionitem
.
channelSolutionNo
if
(
uappId
==
'52'
){
//易名区分申请续期
ActionType
=
solutionitem
.
solutionContent
.
solution
.
ActionType
if
(
ActionType
&&
ActionType
==
"新办"
){
ActionType
=
"申请"
}
item
.
solutionProvince
=
solutionitem
.
solutionContent
.
solution
.
Area
||
solutionitem
.
solutionContent
.
solution
.
area
;
item
.
solutionProvince
=
item
.
solutionProvince
+
"-"
+
ActionType
//item.solutionProvince = solutionitem.solutionContent.solution.Area + `(${solutionitem.solutionContent.solution.actionType})`//北京(新办);
item
.
solutionContent
=
solutionitem
.
solutionContent
item
.
channelSolutionNo
=
solutionitem
.
channelSolutionNo
}
else
{
item
.
solutionProvince
=
solutionitem
.
solutionContent
.
solution
.
Area
||
solutionitem
.
solutionContent
.
solution
.
area
;
//item.solutionProvince = solutionitem.solutionContent.solution.Area + `(${solutionitem.solutionContent.solution.actionType})`//北京(新办);
item
.
solutionContent
=
solutionitem
.
solutionContent
item
.
channelSolutionNo
=
solutionitem
.
channelSolutionNo
}
}
console
.
log
(
'item.solutionProvince---'
,
item
.
solutionProvince
)
return
system
.
getResultSuccess
(
item
);
}
...
...
@@ -415,7 +435,4 @@ class NeedinfoService extends ServiceBase {
}
module
.
exports
=
NeedinfoService
;
// var a=new NeedinfoService();
// var b=a.getItemByChannelSolutionNo({actionBody:{bizId:"1593141330846"}});
\ No newline at end of file
module
.
exports
=
NeedinfoService
;
\ No newline at end of file
center-order/app/base/service/impl/dbneed/needsolutionSve.js
View file @
6211ce9a
...
...
@@ -392,7 +392,7 @@ class NeedsolutionService extends ServiceBase {
return
system
.
getResultFail
(
-
105
,
"该方案需求状态为"
+
needinfo
.
statusName
+
",不能执行此操作"
);
}
if
(
ns
.
status
!=
"dqr"
)
{
return
system
.
getResultFail
(
-
103
,
"方案状态错误,只能废弃待确认方案"
);
return
system
.
getResultFail
(
-
103
,
"方案状态错误,只能废弃待确认方案
-1
"
);
}
await
this
.
dao
.
update
({
id
:
ns
.
id
,
status
:
"yzf"
});
//方案废弃
//获取方案信息
...
...
@@ -428,7 +428,7 @@ class NeedsolutionService extends ServiceBase {
for
(
var
i
=
0
;
i
<
ns
.
length
;
i
++
)
{
var
fa
=
ns
[
i
];
if
(
fa
.
status
==
"ywc"
)
{
return
system
.
getResultFail
(
-
103
,
"方案状态错误,不能废弃已完成方案"
);
return
system
.
getResultFail
(
-
103
,
"方案状态错误,不能废弃已完成方案
-1
"
);
}
}
await
this
.
dao
.
model
.
update
({
status
:
"yzf"
,
isInvalid
:
1
},
{
where
:
{
needNo
:
needinfo
.
needNo
}
});
//方案废弃
...
...
@@ -990,7 +990,7 @@ class NeedsolutionService extends ServiceBase {
return
system
.
getResultFail
(
-
105
,
"该方案需求状态为"
+
needinfo
.
statusName
+
",不能执行此操作"
);
}
if
(
ns
.
status
!=
"dqr"
)
{
return
system
.
getResultFail
(
-
103
,
"方案状态错误,只能废弃待确认方案"
);
return
system
.
getResultFail
(
-
103
,
"方案状态错误,只能废弃待确认方案
-2
"
);
}
var
solutionContent
=
ns
.
solutionContent
;
if
(
!
solutionContent
.
status
||
[
"USER_UPLOADED"
,
"MATERIAL_UNCONFIRM"
,
"USER_CONFIRMED"
,
"ACCOUNT_REGISTERED"
,
"MATERIAL_SUBMITTED"
].
indexOf
(
solutionContent
.
status
)
<
0
)
{
...
...
@@ -1035,7 +1035,7 @@ class NeedsolutionService extends ServiceBase {
return
system
.
getResultFail
(
-
105
,
"该方案需求状态为"
+
needinfo
.
statusName
+
",不能执行此操作"
);
}
if
(
ns
.
status
!=
"dqr"
&&
ns
.
status
!=
"yzf"
)
{
return
system
.
getResultFail
(
-
103
,
"方案状态错误,不能作废已完成方案"
);
return
system
.
getResultFail
(
-
103
,
"方案状态错误,不能作废已完成方案
-1
"
);
}
var
solutionContent
=
ns
.
solutionContent
;
//方案流程列表
...
...
center-order/app/base/service/impl/qcutils/aliyunqcSve.js
View file @
6211ce9a
...
...
@@ -97,7 +97,7 @@ class AliyunQcService {
});
if
(
ns
&&
ns
.
id
)
{
if
(
ns
.
status
==
"ywc"
)
{
return
system
.
getResultFail
(
-
103
,
"方案状态错误,不能废弃已完成方案"
);
return
system
.
getResultFail
(
-
103
,
"方案状态错误,不能废弃已完成方案
-3
"
);
}
var
flowStatus
=
ns
.
solutionContent
&&
ns
.
solutionContent
.
status
?
ns
.
solutionContent
.
status
:
""
;
if
(
flowStatus
&&
[
"GXB_REFUSE"
,
"CLOSE"
].
indexOf
(
flowStatus
)
<
0
)
{
...
...
@@ -370,7 +370,7 @@ class AliyunQcService {
// }
var
solutionContent
=
ns
.
solutionContent
;
if
(
!
solutionContent
.
status
||
[
"USER_UPLOADED"
,
"MATERIAL_UNCONFIRM"
,
"USER_CONFIRMED"
,
"ACCOUNT_REGISTERED"
,
"MATERIAL_SUBMITTED"
].
indexOf
(
solutionContent
.
status
)
<
0
)
{
return
system
.
getResultFail
(
-
302
,
"方案流程状态错误,不能执行此操作"
);
return
system
.
getResultFail
(
-
302
,
"方案流程状态错误,不能执行此操作
-1
"
);
}
solutionContent
.
serviceProviderNote
=
ab
.
Note
;
var
solutionFlowList
=
solutionContent
.
solutionFlowList
||
[];
...
...
@@ -733,7 +733,7 @@ class AliyunQcService {
solutionContent
.
status
=
"CLOSE"
;
solutionContent
.
statusName
=
this
.
icpSolutionStatusReference
.
CLOSE
;
}
else
{
return
system
.
getResultFail
(
-
110
,
"状态错误"
);
return
system
.
getResultFail
(
-
110
,
"状态错误
-2
"
);
}
solutionContent
.
solutionFlowList
=
solutionFlowList
;
...
...
@@ -1078,7 +1078,7 @@ class AliyunQcService {
solutionContent
.
status
=
"ABC_CLOSE_PRODUCE"
;
solutionContent
.
statusName
=
this
.
ediSolutionStatusReference
.
ABC_CLOSE_PRODUCE
;
}
else
{
return
system
.
getResultFail
(
-
110
,
"状态错误"
);
return
system
.
getResultFail
(
-
110
,
"状态错误
-3
"
);
}
solutionContent
.
solutionFlowList
=
solutionFlowList
;
...
...
center-order/app/base/service/impl/qcutils/baiduqcSve.js
View file @
6211ce9a
...
...
@@ -152,7 +152,7 @@ class BaiduQcService {
solutionContent
.
status
=
"CLOSE"
;
solutionContent
.
statusName
=
this
.
icpSolutionStatusReference
.
CLOSE
;
}
else
{
return
system
.
getResultFail
(
-
110
,
"状态错误"
);
return
system
.
getResultFail
(
-
110
,
"状态错误
-4
"
);
}
solutionContent
.
solutionFlowList
=
solutionFlowList
;
...
...
center-order/app/base/service/impl/qcutils/baseqcSve.js
View file @
6211ce9a
...
...
@@ -85,7 +85,7 @@ class BaseQcService {
if
(
ns
&&
ns
.
id
)
{
if
(
ns
.
status
==
"ywc"
)
{
return
system
.
getResultFail
(
-
103
,
"方案状态错误,不能废弃已完成方案"
);
return
system
.
getResultFail
(
-
103
,
"方案状态错误,不能废弃已完成方案
-2
"
);
}
var
flowStatus
=
ns
.
solutionContent
&&
ns
.
solutionContent
.
status
?
ns
.
solutionContent
.
status
:
""
;
if
(
flowStatus
&&
[
...
...
@@ -1130,7 +1130,7 @@ class BaseQcService {
solutionContent
.
status
=
"ABC_CLOSE_PRODUCE"
;
solutionContent
.
statusName
=
this
.
ediSolutionStatusReference
.
ABC_CLOSE_PRODUCE
;
}
else
{
return
system
.
getResultFail
(
-
110
,
"状态错误"
);
return
system
.
getResultFail
(
-
110
,
"状态错误
-1
"
);
}
solutionContent
.
solutionFlowList
=
solutionFlowList
;
...
...
center-order/app/base/service/impl/qcutils/ncSve.js
View file @
6211ce9a
...
...
@@ -576,7 +576,7 @@ class NcService {
// var newFlowStatus = [];
if
(
ns
&&
ns
.
id
)
{
if
(
ns
.
status
==
"ywc"
)
{
return
system
.
getResultFail
(
-
103
,
"方案状态错误,不能废弃已完成方案"
);
return
system
.
getResultFail
(
-
103
,
"方案状态错误,不能废弃已完成方案
-4
"
);
}
var
flowStatus
=
ns
.
solutionContent
&&
ns
.
solutionContent
.
status
?
ns
.
solutionContent
.
status
:
""
;
if
(
flowStatus
&&
[
"NOT_ACCEPTED"
,
"CLOSE"
].
indexOf
(
flowStatus
)
<
0
)
{
...
...
center-order/app/base/service/impl/qcutils/regCenterOrderSve.js
View file @
6211ce9a
...
...
@@ -338,7 +338,7 @@ class RegCenterOrderService{
solutionContent
.
status
=
"CLOSE"
;
solutionContent
.
statusName
=
this
.
regSolutionStatus
.
CLOSE
;
}
else
{
return
system
.
getResultFail
(
-
110
,
"状态错误"
);
return
system
.
getResultFail
(
-
110
,
"状态错误
-5
"
);
}
solutionContent
.
solutionFlowList
=
solutionFlowList
;
...
...
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