Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
dc-java
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
huluobin
dc-java
Commits
b1f820f7
Commit
b1f820f7
authored
May 10, 2022
by
jianshuqin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复BUG:实际运费
parent
fcf61356
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
OrderSyncJob.java
...s-order/src/main/java/com/bailuntec/job/OrderSyncJob.java
+7
-0
No files found.
data-base/base-sync-oms-order/src/main/java/com/bailuntec/job/OrderSyncJob.java
View file @
b1f820f7
...
@@ -971,6 +971,7 @@ public class OrderSyncJob extends PointJob {
...
@@ -971,6 +971,7 @@ public class OrderSyncJob extends PointJob {
private
void
handPickingOrder
(
DcBaseOmsOrder
dcBaseOmsOrder
,
OmsResult
omsResult
,
Map
<
String
,
BailunSkuStructure
>
skuStructureMap
)
{
private
void
handPickingOrder
(
DcBaseOmsOrder
dcBaseOmsOrder
,
OmsResult
omsResult
,
Map
<
String
,
BailunSkuStructure
>
skuStructureMap
)
{
List
<
PickingOrder
>
pickingOrderList
=
omsResult
.
getPickingOrder
();
List
<
PickingOrder
>
pickingOrderList
=
omsResult
.
getPickingOrder
();
List
<
WmsFeeDetailDtos
>
wmsFeeDetailDtosList
=
omsResult
.
getWmsFeeDetailsDtos
();
List
<
WmsFeeDetailDtos
>
wmsFeeDetailDtosList
=
omsResult
.
getWmsFeeDetailsDtos
();
List
<
PickingVariances
>
pickingVariancesList
=
omsResult
.
getPickingVariances
();
BigDecimal
totalCostPackaging
=
BigDecimal
.
ZERO
;
BigDecimal
totalCostPackaging
=
BigDecimal
.
ZERO
;
BigDecimal
totalOpf
=
BigDecimal
.
ZERO
;
BigDecimal
totalOpf
=
BigDecimal
.
ZERO
;
BigDecimal
totalCostShipping
=
BigDecimal
.
ZERO
;
BigDecimal
totalCostShipping
=
BigDecimal
.
ZERO
;
...
@@ -1048,6 +1049,12 @@ public class OrderSyncJob extends PointJob {
...
@@ -1048,6 +1049,12 @@ public class OrderSyncJob extends PointJob {
if
(
wmsFeeDetailDtos
.
getPickingNo
()
!=
null
&&
pickingOrder
.
getPickOrderId
().
equals
(
wmsFeeDetailDtos
.
getPickingNo
()))
{
if
(
wmsFeeDetailDtos
.
getPickingNo
()
!=
null
&&
pickingOrder
.
getPickOrderId
().
equals
(
wmsFeeDetailDtos
.
getPickingNo
()))
{
BigDecimal
totalFee
=
wmsFeeDetailDtos
.
getTotalFee
()
==
null
?
BigDecimal
.
ZERO
:
wmsFeeDetailDtos
.
getTotalFee
().
multiply
(
weightRatio
).
setScale
(
5
,
RoundingMode
.
HALF_EVEN
);
BigDecimal
totalFee
=
wmsFeeDetailDtos
.
getTotalFee
()
==
null
?
BigDecimal
.
ZERO
:
wmsFeeDetailDtos
.
getTotalFee
().
multiply
(
weightRatio
).
setScale
(
5
,
RoundingMode
.
HALF_EVEN
);
BigDecimal
shipping
=
wmsFeeDetailDtos
.
getShipping
()
==
null
?
BigDecimal
.
ZERO
:
wmsFeeDetailDtos
.
getShipping
().
multiply
(
weightRatio
).
setScale
(
5
,
RoundingMode
.
HALF_EVEN
);
BigDecimal
shipping
=
wmsFeeDetailDtos
.
getShipping
()
==
null
?
BigDecimal
.
ZERO
:
wmsFeeDetailDtos
.
getShipping
().
multiply
(
weightRatio
).
setScale
(
5
,
RoundingMode
.
HALF_EVEN
);
if
(
pickingVariancesList
!=
null
&&
pickingVariancesList
.
size
()
>
0
){
PickingVariances
pickingVariances
=
pickingVariancesList
.
stream
().
filter
(
l
->
pickingOrder
.
getPickOrderId
().
equals
(
l
.
getPickOrderId
())
&&
l
.
getBillCost
()
!=
null
&&
l
.
getBillCost
().
compareTo
(
BigDecimal
.
ZERO
)
!=
0
).
findFirst
().
orElse
(
null
);
if
(
pickingVariances
!=
null
){
shipping
=
pickingVariances
.
getBillCost
();
}
}
BigDecimal
opf
=
wmsFeeDetailDtos
.
getOpf
()
==
null
?
BigDecimal
.
ZERO
:
wmsFeeDetailDtos
.
getOpf
().
multiply
(
weightRatio
).
setScale
(
5
,
RoundingMode
.
HALF_EVEN
);
BigDecimal
opf
=
wmsFeeDetailDtos
.
getOpf
()
==
null
?
BigDecimal
.
ZERO
:
wmsFeeDetailDtos
.
getOpf
().
multiply
(
weightRatio
).
setScale
(
5
,
RoundingMode
.
HALF_EVEN
);
BigDecimal
fsc
=
wmsFeeDetailDtos
.
getFsc
()
==
null
?
BigDecimal
.
ZERO
:
wmsFeeDetailDtos
.
getFsc
().
multiply
(
weightRatio
).
setScale
(
5
,
RoundingMode
.
HALF_EVEN
);
BigDecimal
fsc
=
wmsFeeDetailDtos
.
getFsc
()
==
null
?
BigDecimal
.
ZERO
:
wmsFeeDetailDtos
.
getFsc
().
multiply
(
weightRatio
).
setScale
(
5
,
RoundingMode
.
HALF_EVEN
);
BigDecimal
dt
=
wmsFeeDetailDtos
.
getDt
()
==
null
?
BigDecimal
.
ZERO
:
wmsFeeDetailDtos
.
getDt
().
multiply
(
weightRatio
).
setScale
(
5
,
RoundingMode
.
HALF_EVEN
);
BigDecimal
dt
=
wmsFeeDetailDtos
.
getDt
()
==
null
?
BigDecimal
.
ZERO
:
wmsFeeDetailDtos
.
getDt
().
multiply
(
weightRatio
).
setScale
(
5
,
RoundingMode
.
HALF_EVEN
);
...
...
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