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
88983e77
Commit
88983e77
authored
Apr 26, 2023
by
张永
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
c16a1347
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
11 deletions
+15
-11
OrderServiceImpl.java
...ava/com/egolm/shop/api/service/impl/OrderServiceImpl.java
+15
-11
No files found.
src/main/java/com/egolm/shop/api/service/impl/OrderServiceImpl.java
View file @
88983e77
...
@@ -248,7 +248,8 @@ public class OrderServiceImpl implements OrderService {
...
@@ -248,7 +248,8 @@ public class OrderServiceImpl implements OrderService {
}
}
List
<
Map
<
String
,
Object
>>
orderDtlList
=
new
ArrayList
<
Map
<
String
,
Object
>>();
List
<
Map
<
String
,
Object
>>
orderDtlList
=
new
ArrayList
<
Map
<
String
,
Object
>>();
if
(
orderMap
.
size
()
>
0
)
{
if
(
orderMap
.
size
()
>
0
)
{
String
sql2
=
"select sod.*,sos.nSendQty, PromoSalePrice=CONVERT(NUMERIC(12,2),ROUND((sod.nSaleAmount)/sod.nSaleQty,2)),OriginaSaleAmount=sod.nSaleAmount+sod.nDisAmount,ISGift = sod.nTag&1,"
String
sql2
=
"select sod.*, sos.nSendQty, PromoSalePrice = CONVERT(NUMERIC(12,2),ROUND((sod.nSaleAmount)/sod.nSaleQty,2)), "
+
" OriginaSaleAmount = sod.nSaleAmount + sod.nDisAmount, ISGift = sod.nTag&1, "
+
" agp.sURL, pm.sPromoName, pm.sPromoTheme, pm.sPromoActionType sPromoType, pm.sPromoActionTypeID sPromoTypeID "
+
" agp.sURL, pm.sPromoName, pm.sPromoTheme, pm.sPromoActionType sPromoType, pm.sPromoActionTypeID sPromoTypeID "
+
" from tSalesOrderDtl sod left join (select a.sPromoPaperNO, a.sPromoName, a.sPromoTheme, a.sPromoActionTypeID, a.sPromoActionType, b.nGoodsID "
+
" from tSalesOrderDtl sod left join (select a.sPromoPaperNO, a.sPromoName, a.sPromoTheme, a.sPromoActionTypeID, a.sPromoActionType, b.nGoodsID "
+
" from tYWPromoMain a, tYWPromoDtl b "
+
" from tYWPromoMain a, tYWPromoDtl b "
...
@@ -257,8 +258,11 @@ public class OrderServiceImpl implements OrderService {
...
@@ -257,8 +258,11 @@ public class OrderServiceImpl implements OrderService {
+
" and a.nTag&1=0 "
+
" and a.nTag&1=0 "
+
" and b.nTag&1=0 "
+
" and b.nTag&1=0 "
+
" ) pm on pm.sPromoPaperNO = sod.sPromoPaperNO and pm.nGoodsID = sod.nGoodsID "
+
" ) pm on pm.sPromoPaperNO = sod.sPromoPaperNO and pm.nGoodsID = sod.nGoodsID "
+
" left join V_GetminAgentGoodsPic agp on agp.nAgentID = sod.nAgentID and agp.nGoodsID = sod.nGoodsID and agp.sPicTypeID = 1"
+
" left join V_GetminAgentGoodsPic agp on agp.nAgentID = sod.nAgentID and agp.nGoodsID = sod.nGoodsID and agp.sPicTypeID = 1 "
+
" left join tSalesOrderSubDtl sos on sos.sSalesOrderID = sod.sSalesOrderID and sos.nGoodsID = sod.nGoodsID "
+
" left join tSalesOrderSubDtl sos on sos.sSalesOrderID = sod.sSalesOrderID "
+
" and sos.sAgentContractNO = sod.sAgentContractNO "
+
" and sos.nGoodsID = sod.nGoodsID "
+
" and (sos.nTag&1 = sod.nTag&1 or sos.nTag&1-1 = sod.nTag&1-1) "
+
" where sod.sSalesOrderID = ?"
;
+
" where sod.sSalesOrderID = ?"
;
orderDtlList
=
jdbcTemplate
.
queryForList
(
sql2
,
salesOrderId
);
orderDtlList
=
jdbcTemplate
.
queryForList
(
sql2
,
salesOrderId
);
}
}
...
...
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