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
073c4d21
Commit
073c4d21
authored
Apr 03, 2023
by
张永
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
f843f168
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
OrderServiceImpl.java
...ava/com/egolm/shop/api/service/impl/OrderServiceImpl.java
+1
-1
No files found.
src/main/java/com/egolm/shop/api/service/impl/OrderServiceImpl.java
View file @
073c4d21
...
...
@@ -176,7 +176,7 @@ public class OrderServiceImpl implements OrderService {
List
<
Map
<
String
,
Object
>>
orderList
=
jdbcTemplate
.
limit
(
sql
,
page
);
if
(
orderList
.
size
()
>
0
)
{
List
<
String
>
orderIds
=
orderList
.
stream
().
map
(
o
->
(
String
)
o
.
get
(
"sSalesOrderID"
)).
collect
(
Collectors
.
toList
());
String
sql2
=
"select sod.*,PromoSalePrice=CONVERT(NUMERIC(12,2),
ROUND((sod.nSaleAmount)/sod.nSaleQty,2)
),OriginaSaleAmount=sod.nSaleAmount+sod.nDisAmount,ISGift = sod.nTag&1,agp.sURL "
String
sql2
=
"select sod.*,PromoSalePrice=CONVERT(NUMERIC(12,2),
case when sod.nSaleQty = 0 then 0 else ROUND((sod.nSaleAmount)/sod.nSaleQty,2) end
),OriginaSaleAmount=sod.nSaleAmount+sod.nDisAmount,ISGift = sod.nTag&1,agp.sURL "
+
" from tSalesOrderDtl sod left join V_GetminAgentGoodsPic agp on agp.nAgentID = sod.nAgentID and agp.nGoodsID = sod.nGoodsID and agp.sPicTypeID = 1 "
+
" where sod.sSalesOrderID in ("
+
StringUtil
.
join
(
"', '"
,
"'"
,
"'"
,
orderIds
)
+
")"
;
List
<
Map
<
String
,
Object
>>
orderDtlList
=
jdbcTemplate
.
queryForList
(
sql2
);
...
...
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