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
aa7909cb
Commit
aa7909cb
authored
Dec 10, 2019
by
孙亚楠
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dd
parent
bc7dd9cd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
36 additions
and
3 deletions
+36
-3
xggsve-order/app/base/service/impl/order/iborderbaseSve.js
+36
-3
No files found.
xggsve-order/app/base/service/impl/order/iborderbaseSve.js
View file @
aa7909cb
...
@@ -155,8 +155,15 @@ class IborderbaseService extends ServiceBase {
...
@@ -155,8 +155,15 @@ class IborderbaseService extends ServiceBase {
try
{
try
{
let
childSve
=
this
.
getService
(
params
.
productType
);
let
childSve
=
this
.
getService
(
params
.
productType
);
let
page
=
await
childSve
.
orderPage
(
params
);
let
page
=
await
childSve
.
orderPage
(
params
);
if
(
page
&&
page
.
rows
)
{
if
(
page
&&
page
.
data
&&
page
.
data
.
rows
)
{
await
this
.
setBaseOrder
(
page
.
rows
);
await
this
.
setBaseOrder
(
page
.
data
.
rows
);
}
for
(
let
item
of
page
.
data
.
rows
){
if
(
item
.
baseInfo
&&
item
.
baseInfo
.
productType
!=
"1000"
){
this
.
changeStatus
(
item
.
baseInfo
,
item
);
this
.
changePayStatus
(
item
.
baseInfo
,
item
);
}
}
}
return
page
;
return
page
;
}
catch
(
error
)
{
}
catch
(
error
)
{
...
@@ -164,6 +171,32 @@ class IborderbaseService extends ServiceBase {
...
@@ -164,6 +171,32 @@ class IborderbaseService extends ServiceBase {
}
}
}
}
changeStatus
(
baseInfo
,
orderInfo
){
// 1000待处理 1010办理中 1020办理完成 2000已取消
if
(
baseInfo
.
status
==
"1000"
){
orderInfo
.
ostatusName
=
"待处理"
;
}
else
if
(
baseInfo
.
status
==
"1010"
){
orderInfo
.
ostatusName
=
"办理中"
;
}
else
if
(
baseInfo
.
status
==
"1020"
){
orderInfo
.
ostatusName
=
"办理完成"
;
}
else
if
(
baseInfo
.
status
==
"2000"
){
orderInfo
.
ostatusName
=
"已取消"
;
}
else
{
orderInfo
.
ostatusName
=
""
;
}
}
changePayStatus
(
baseInfo
,
orderInfo
){
//支付状态 10待支付 20已支付
if
(
baseInfo
.
payStatus
==
"10"
){
orderInfo
.
payStatusName
=
"待支付"
;
}
else
if
(
baseInfo
.
payStatus
==
"20"
){
orderInfo
.
payStatusName
=
"已支付"
;
}
else
{
orderInfo
.
payStatusName
=
""
;
}
}
/**
/**
* 企服通 推送支付信息接口
* 企服通 推送支付信息接口
* @param {*} params
* @param {*} params
...
@@ -257,7 +290,7 @@ class IborderbaseService extends ServiceBase {
...
@@ -257,7 +290,7 @@ class IborderbaseService extends ServiceBase {
let
map
=
await
this
.
dao
.
findMapByIds
(
ids
);
let
map
=
await
this
.
dao
.
findMapByIds
(
ids
);
for
(
var
row
of
rows
)
{
for
(
var
row
of
rows
)
{
row
.
baseInfo
=
map
(
row
.
id
)
;
row
.
baseInfo
=
map
[
row
.
id
]
;
}
}
}
}
}
}
...
...
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