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
437de27d
Commit
437de27d
authored
Jul 20, 2020
by
linboxuan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ucommune-back operate api
parent
cf9da52d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
9 deletions
+21
-9
center-order/app/base/service/impl/dbcorder/ucommuneOrderSve.js
+21
-9
No files found.
center-order/app/base/service/impl/dbcorder/ucommuneOrderSve.js
View file @
437de27d
...
@@ -315,24 +315,36 @@ class OrderInfoService extends ServiceBase {
...
@@ -315,24 +315,36 @@ class OrderInfoService extends ServiceBase {
result
.
data
.
deliveryFlowLog
=
await
this
.
getOrderLogInfo
(
pobj
,
actionBody
);
result
.
data
.
deliveryFlowLog
=
await
this
.
getOrderLogInfo
(
pobj
,
actionBody
);
// 订单金额相关
// 订单金额相关
result
.
data
.
orderDetail
=
await
this
.
getOrderDetails
(
pobj
,
actionBody
);
result
.
data
.
orderDetail
=
await
this
.
getOrderDetails
(
pobj
,
actionBody
);
// 付款信息
var
moneyJourneySql
=
"select accountTypeName from c_moneyjourney where sourceOrderNo=:sourceOrderNo"
;
var
paramWhere
=
{
sourceOrderNo
:
actionBody
.
orderNo
};
var
moneyJourneylist
=
await
this
.
moneyJourneyDao
.
customQuery
(
moneyJourneySql
,
paramWhere
);
if
(
moneyJourneylist
.
length
==
0
)
{
result
.
data
.
accountTypeName
=
"其他"
;
return
result
;
}
// 查询官方回执文件
// 查询官方回执文件
if
(
result
.
data
.
nclones
.
length
!=
0
)
{
if
(
result
.
data
.
nclones
.
length
!=
0
)
{
// 循环商标类别
for
(
let
i
=
0
;
i
<
result
.
data
.
nclones
.
length
;
i
++
)
{
for
(
let
i
=
0
;
i
<
result
.
data
.
nclones
.
length
;
i
++
)
{
// 根据商标类别码 查询出 交付明细(c_delivery_official_flow)
var
list
=
await
this
.
getOrderDeliveryFlowInfo
(
pobj
,
{
sourceOrderNo
:
result
.
data
.
nclones
[
i
][
"tmRegistNum"
]});
var
list
=
await
this
.
getOrderDeliveryFlowInfo
(
pobj
,
{
sourceOrderNo
:
result
.
data
.
nclones
[
i
][
"tmRegistNum"
]});
result
.
data
.
nclones
[
i
][
"DeliveryFlowInfo"
]
=
[];
result
.
data
.
nclones
[
i
][
"DeliveryFlowInfo"
]
=
[];
// 循环查询出来的交付明细
for
(
let
j
=
0
;
j
<
list
.
length
;
j
++
)
{
for
(
let
j
=
0
;
j
<
list
.
length
;
j
++
)
{
result
.
data
.
nclones
[
i
][
"DeliveryFlowInfo"
].
push
(
list
[
j
][
"officialFlow"
])
// 声明回执文件名字29471633-注册-PASSED.pdf
var
uploadFileName
=
list
[
j
][
"officialFlow"
][
0
][
"uploadFileName"
]
?
list
[
j
][
"officialFlow"
][
0
][
"uploadFileName"
]
:
""
;
var
returnReceiptUrl
=
list
[
j
][
"officialFlow"
][
0
][
"returnReceiptUrl"
]
?
list
[
j
][
"officialFlow"
][
0
][
"returnReceiptUrl"
]
:
""
;
// 切割去掉后缀名 29471633-注册-PASSED
uploadFileName
=
uploadFileName
.
split
(
"."
)[
0
];
result
.
data
.
nclones
[
i
][
"DeliveryFlowInfo"
].
push
({
uploadFileName
:
uploadFileName
,
returnReceiptUrl
:
returnReceiptUrl
})
}
}
}
}
}
}
// 付款信息
var
moneyJourneySql
=
"select accountTypeName from c_moneyjourney where sourceOrderNo=:sourceOrderNo"
;
var
paramWhere
=
{
sourceOrderNo
:
actionBody
.
orderNo
};
var
moneyJourneylist
=
await
this
.
moneyJourneyDao
.
customQuery
(
moneyJourneySql
,
paramWhere
);
if
(
moneyJourneylist
.
length
==
0
)
{
result
.
data
.
accountTypeName
=
"其他"
;
return
result
;
}
result
.
data
.
accountTypeName
=
moneyJourneylist
[
0
][
"accountTypeName"
];
result
.
data
.
accountTypeName
=
moneyJourneylist
[
0
][
"accountTypeName"
];
return
result
;
return
result
;
}
}
...
...
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