Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
S
shop
Project
Project
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
曲欣亮
shop
Commits
86e653fc
Commit
86e653fc
authored
Apr 26, 2023
by
张永
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
a460b16f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
OrderServiceImpl.java
...ava/com/egolm/shop/api/service/impl/OrderServiceImpl.java
+12
-0
No files found.
src/main/java/com/egolm/shop/api/service/impl/OrderServiceImpl.java
View file @
86e653fc
...
@@ -383,6 +383,18 @@ public class OrderServiceImpl implements OrderService {
...
@@ -383,6 +383,18 @@ public class OrderServiceImpl implements OrderService {
subOrderID
);
subOrderID
);
String
sql3
=
"select sSubOrderID, nOrderMoney, sAocOrderID, sAocOrderNumber, nOrderNum, nPickupNum, sExpressNO, sExpressName from tSalesOrderDeliverSub where nTag&1 = 0 and sSubOrderID = ?"
;
String
sql3
=
"select sSubOrderID, nOrderMoney, sAocOrderID, sAocOrderNumber, nOrderNum, nPickupNum, sExpressNO, sExpressName from tSalesOrderDeliverSub where nTag&1 = 0 and sSubOrderID = ?"
;
List
<
Map
<
String
,
Object
>>
deliverSubList
=
jdbcTemplate
.
queryForList
(
sql3
,
subOrderID
);
List
<
Map
<
String
,
Object
>>
deliverSubList
=
jdbcTemplate
.
queryForList
(
sql3
,
subOrderID
);
Map
<
String
,
Object
>
payMap
=
new
HashMap
<
String
,
Object
>();
try
{
String
sqlPay
=
"select sPayTypeID, sPayType, nPayAmount, sOutTradeNO, sTransTraceNO, dPayDateTime, sStatusID = case when nTag&2=2 then '1' else '0' end, sStatus = case when nTag&2=2 then '已付款' else '未付款' end "
+
"from tSalesOrderPay "
+
"where sSalesOrderID = ? "
;
payMap
=
jdbcTemplate
.
queryForMap
(
sqlPay
,
subOrderMap
.
get
(
"sSalesOrderID"
));
payMap
.
put
(
"nOrderTotalAmount"
,
orderMap
.
get
(
"nTotalSaleAmount"
));
}
catch
(
Exception
e
)
{
}
return
Rjx
.
jsonOk
().
set
(
"deliver"
,
deliver
).
set
(
"deliverList"
,
deliverSubList
).
set
(
"order"
,
orderMap
)
return
Rjx
.
jsonOk
().
set
(
"deliver"
,
deliver
).
set
(
"deliverList"
,
deliverSubList
).
set
(
"order"
,
orderMap
)
.
set
(
"subOrder"
,
subOrderMap
).
set
(
"list"
,
dtlList
).
toJson
();
.
set
(
"subOrder"
,
subOrderMap
).
set
(
"list"
,
dtlList
).
toJson
();
}
}
...
...
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