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
e82e0950
Commit
e82e0950
authored
Jun 27, 2023
by
张永
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
需求 #15246
parent
c6fca7aa
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
39 deletions
+18
-39
OrderServiceImpl.java
...ava/com/egolm/shop/api/service/impl/OrderServiceImpl.java
+18
-39
No files found.
src/main/java/com/egolm/shop/api/service/impl/OrderServiceImpl.java
View file @
e82e0950
...
@@ -255,27 +255,15 @@ public class OrderServiceImpl implements OrderService {
...
@@ -255,27 +255,15 @@ public class OrderServiceImpl implements OrderService {
" nSalePrice = case when sod.nOrderRate > 1 then sod.nSaleAmount / sod.nPackQty else sod.nSalePrice end, sod.nSaleAmount, "
+
" nSalePrice = case when sod.nOrderRate > 1 then sod.nSaleAmount / sod.nPackQty else sod.nSalePrice end, sod.nSaleAmount, "
+
" sod.nDisAmount, sod.sMemo, sod.dUpdate, sod.nTag, "
+
" sod.nDisAmount, sod.sMemo, sod.dUpdate, sod.nTag, "
+
" sod.dLastUpdateTime, sod.sPromoActionTypeID, sod.sPromoActionType, "
+
" sod.dLastUpdateTime, sod.sPromoActionTypeID, sod.sPromoActionType, "
+
" sod.sPromoPaperNO, sod.nExpressFee, sod.nOldSaleQty, sod.nOldSalePrice, "
+
" sod.sPromoPaperNO, sod.nExpressFee, "
+
" nOldSaleQty = case when sod.nOrderRate > 1 then sod.nOldSaleQty / sod.nOrderRate else sod.nOldSaleQty end, "
+
" nOldSalePrice = case when sod.nOrderRate > 1 then sod.nOldSalePrice * sod.nOrderRate else sod.nOldSalePrice end, "
+
" sod.sSaleUnit, sod.nPackQty, sod.nOrderRate,"
+
" sod.sSaleUnit, sod.nPackQty, sod.nOrderRate,"
+
" nSendQty = case when sod.nOrderRate > 1 then sos.nSendQty / sod.nOrderRate else sos.nSendQty end, "
+
" PromoSalePrice=CONVERT(NUMERIC(12,2),case when sod.nSaleQty = 0 then 0 else ROUND((sod.nSaleAmount)/sod.nSaleQty,2) end),"
+
" PromoSalePrice = CONVERT(NUMERIC(12,2),ROUND((sod.nSaleAmount)/sod.nSaleQty,2)), "
+
" OriginaSaleAmount=sod.nSaleAmount+sod.nDisAmount,"
+
" OriginaSaleAmount = sod.nSaleAmount, sod.nDisAmount, ISGift = sod.nTag&1, "
+
" ISGift = sod.nTag&1, agp.sURL"
+
" agp.sURL, pm.sPromoName, pm.sPromoTheme, pm.sPromoActionType sPromoType, pm.sPromoActionTypeID sPromoTypeID, "
+
"from tSalesOrderDtl sod left join V_GetminAgentGoodsPic agp on agp.nAgentID = sod.nAgentID and agp.nGoodsID = sod.nGoodsID and agp.sPicTypeID = 1 "
+
" BrandID = ag.sBrandID, Brand = ag.sBrand "
+
"where sod.sSalesOrderID = ? "
;
" from tSalesOrderDtl sod join tAgentGoods ag on sod.nAgentID = ag.nAgentID and sod.nGoodsID = ag.nGoodsID "
+
" left join (select a.sPromoPaperNO, a.sPromoName, a.sPromoTheme, a.sPromoActionTypeID, a.sPromoActionType, b.nGoodsID "
+
" from tYWPromoMain a, tYWPromoDtl b "
+
" where a.sPromoPaperNO = b.sPromoPaperNO "
+
" and a.sPromoPaperNORuleID = b.sPromoPaperNO + isnull(convert(varchar,b.nRuleID),'') "
+
" and a.nTag&1=0 "
+
" and b.nTag&1=0 "
+
" ) 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 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 = ? "
;
orderDtlList
=
jdbcTemplate
.
queryForList
(
sql2
,
salesOrderId
);
orderDtlList
=
jdbcTemplate
.
queryForList
(
sql2
,
salesOrderId
);
}
}
Map
<
String
,
Object
>
payMap
=
new
HashMap
<
String
,
Object
>();
Map
<
String
,
Object
>
payMap
=
new
HashMap
<
String
,
Object
>();
...
@@ -394,26 +382,17 @@ public class OrderServiceImpl implements OrderService {
...
@@ -394,26 +382,17 @@ public class OrderServiceImpl implements OrderService {
" sosd.nAvgStockPrice, sosd.nReturnQty, sosd.sReturnTypeID, "
+
" sosd.nAvgStockPrice, sosd.nReturnQty, sosd.sReturnTypeID, "
+
" sosd.sReturnType, sosd.sRetunReson, sosd.nCaseUnits, sosd.sUnit, "
+
" sosd.sReturnType, sosd.sRetunReson, sosd.nCaseUnits, sosd.sUnit, "
+
" sosd.sChangeUser, sosd.dChangeDate, sosd.dProduceDate, sosd.nTaxRate, "
+
" sosd.sChangeUser, sosd.dChangeDate, sosd.dProduceDate, sosd.nTaxRate, "
+
" sosd.nExpressFee, sosd.sPromoPaperNO, sosd.nOldSaleQty, "
+
" sosd.nExpressFee, sosd.sPromoPaperNO, "
+
" sosd.nOldSalePrice, sosd.nOldLockedQty, sosd.sSaleUnit, "
+
" nOldSaleQty = case when sosd.nOrderRate > 1 then sosd.nOldSaleQty / sosd.nOrderRate else sosd.nOldSaleQty end, "
+
" nOldSalePrice = case when sosd.nOrderRate > 1 then sosd.nOldSalePrice*sosd.nOrderRate else sosd.nOldSalePrice end, "
+
" sosd.nOldLockedQty, sosd.sSaleUnit, "
+
" sosd.nPackQty, sosd.nOrderRate, "
+
" sosd.nPackQty, sosd.nOrderRate, "
+
" PromoSalePrice = CONVERT(NUMERIC(12,2),ROUND((sosd.nSaleAmount)/sosd.nSaleQty,2)), "
+
" PromoSalePrice=CONVERT(NUMERIC(12,2),case when sosd.nSaleQty = 0 then 0 else ROUND((sosd.nSaleAmount)/sosd.nSaleQty,2) end),"
+
" OriginaSaleAmount = sosd.nSaleAmount,sosd.nDisAmount, ISGift = sosd.nTag&1, "
+
" OriginaSaleAmount=sosd.nSaleAmount+sosd.nDisAmount,"
+
" LeftReturnQty = case when sosd.nOrderRate > 1 then (sosd.nSendQty - isnull(sosd.nReturnQty,0)) / sosd.nOrderRate else sosd.nSendQty - isnull(sosd.nReturnQty,0) end, "
+
" ISGift = sosd.nTag&1,"
+
" ag.nSaleUnits SaleMulti, ag.sSpec sSpec,"
+
" agp.sURL "
+
" ag.sGoodTypeID GoodTypeID, agp.sURL, pm.sPromoName, pm.sPromoTheme, "
+
"from tSalesOrderSubDtl sosd left join V_GetminAgentGoodsPic agp on agp.nAgentID = sosd.nAgentID and agp.nGoodsID = sosd.nGoodsID and agp.sPicTypeID = 1"
+
" pm.sPromoActionType sPromoType, pm.sPromoActionTypeID sPromoTypeID, "
+
"where sosd.sSubOrderID = ? "
;
" BrandID = ag.sBrandID, Brand = ag.sBrand "
+
"from tSalesOrderSubDtl sosd left join (select a.sPromoPaperNO, a.sPromoName, a.sPromoTheme, a.sPromoActionTypeID, a.sPromoActionType, b.nGoodsID "
+
" from tYWPromoMain a, tYWPromoDtl b "
+
" where a.sPromoPaperNO = b.sPromoPaperNO "
+
" and a.sPromoPaperNORuleID = b.sPromoPaperNO + isnull(convert(varchar,b.nRuleID),'') "
+
" and a.nTag&1=0 "
+
" and b.nTag&1=0 "
+
" ) pm on pm.sPromoPaperNO = sosd.sPromoPaperNO and pm.nGoodsID = sosd.nGoodsID "
+
" left join V_GetminAgentGoodsPic agp on agp.nAgentID = sosd.nAgentID and agp.nGoodsID = sosd.nGoodsID and agp.sPicTypeID = 1 "
+
" left join tAgentContractGoods ag on sosd.sAgentContractNO = ag.sAgentContractNO and sosd.nGoodsID = ag.nGoodsID "
+
"where sosd.sSubOrderID = ?"
;
List
<
Map
<
String
,
Object
>>
dtlList
=
jdbcTemplate
.
queryForList
(
sql
,
subOrderID
);
List
<
Map
<
String
,
Object
>>
dtlList
=
jdbcTemplate
.
queryForList
(
sql
,
subOrderID
);
Map
<
String
,
Object
>
deliver
=
jdbcTemplate
.
queryForMap
(
Map
<
String
,
Object
>
deliver
=
jdbcTemplate
.
queryForMap
(
...
...
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