Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jiedao-api-boot-master
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
lanbaoming
jiedao-api-boot-master
Commits
8744a59c
Commit
8744a59c
authored
Aug 07, 2024
by
332784038@qq.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
应收报表核算bug修复
parent
1a756e50
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
7 deletions
+6
-7
OrderQueryServiceImpl.java
...odule/order/service/order/impl/OrderQueryServiceImpl.java
+6
-7
No files found.
yudao-module-order/yudao-module-order-core/src/main/java/cn/iocoder/yudao/module/order/service/order/impl/OrderQueryServiceImpl.java
View file @
8744a59c
...
...
@@ -2450,11 +2450,12 @@ public class OrderQueryServiceImpl implements OrderQueryService {
for
(
OrderItemDO
orderItemDO
:
orderItemDOList
)
{
// 判断品名是否入仓
boolean
isWarehouseIn
=
Objects
.
nonNull
(
orderItemDO
.
getWarehouseInInfoVO
())
&&
orderItemDO
.
getWarehouseInInfoVO
().
getCartonsNum
()
>
0
;
BigDecimal
seaFreight
=
orderItemDO
.
getSeaFreight
().
setScale
(
0
,
RoundingMode
.
HALF_UP
);
BigDecimal
receivableSeaFreight
=
orderItemDO
.
getReceivableSeaFreight
().
compareTo
(
BigDecimal
.
ZERO
)
==
0
?
seaFreight
:
orderItemDO
.
getReceivableSeaFreight
();
BigDecimal
clearanceFreight
=
orderItemDO
.
getClearanceFreight
().
setScale
(
0
,
RoundingMode
.
HALF_UP
);
BigDecimal
receivableClearanceFreight
=
orderItemDO
.
getReceivableClearanceFreight
().
compareTo
(
BigDecimal
.
ZERO
)
==
0
?
clearanceFreight
:
orderItemDO
.
getReceivableClearanceFreight
();
if
(
isWarehouseIn
)
{
BigDecimal
seaFreight
=
Objects
.
nonNull
(
orderItemDO
.
getSeaFreight
())
?
orderItemDO
.
getSeaFreight
().
setScale
(
0
,
RoundingMode
.
HALF_UP
)
:
BigDecimal
.
ZERO
;
BigDecimal
receivableSeaFreight
=
Objects
.
nonNull
(
orderItemDO
.
getReceivableSeaFreight
())
?
(
orderItemDO
.
getReceivableSeaFreight
().
compareTo
(
BigDecimal
.
ZERO
)
==
0
?
seaFreight
:
orderItemDO
.
getReceivableSeaFreight
())
:
BigDecimal
.
ZERO
;
BigDecimal
clearanceFreight
=
Objects
.
nonNull
(
orderItemDO
.
getClearanceFreight
())
?
orderItemDO
.
getClearanceFreight
().
setScale
(
0
,
RoundingMode
.
HALF_UP
)
:
BigDecimal
.
ZERO
;
BigDecimal
receivableClearanceFreight
=
Objects
.
nonNull
(
orderItemDO
.
getReceivableClearanceFreight
())
?
(
orderItemDO
.
getReceivableClearanceFreight
().
compareTo
(
BigDecimal
.
ZERO
)
==
0
?
clearanceFreight
:
orderItemDO
.
getReceivableClearanceFreight
())
:
BigDecimal
.
ZERO
;
Long
freightCurrencyId
=
Long
.
parseLong
(
String
.
valueOf
(
orderItemDO
.
getSeaFreightCurrency
()));
ExchangeRateRespDTO
collectFreightRateRespDTO
=
currencyApi
.
getCurrencyRate
(
freightCurrencyId
,
collectFreightFeeId
);
ExchangeRateRespDTO
freightTotalFeeRateRespDTO
=
currencyApi
.
getCurrencyRate
(
freightCurrencyId
,
collectTotalFeeId
);
// 运费总费用汇率计算
...
...
@@ -2790,9 +2791,7 @@ public class OrderQueryServiceImpl implements OrderQueryService {
// 运费优惠分组
StringBuilder
discountFreightFeeGroup
=
new
StringBuilder
();
List
<
FeeGroupDto
>
discountFreightFeeGroupDtoList
=
new
ArrayList
<>();
this
.
convertFeeGroup
(
currencyRespDTOMap
,
totalReceivableFreightFeeGroupDtoMap
,
totalNetReceiptsFreightFeeGroupDtoMap
,
discountFreightFeeGroupDtoList
,
discountFreightFeeGroup
);
this
.
convertFeeGroup
(
currencyRespDTOMap
,
totalReceivableFreightFeeGroupDtoMap
,
totalNetReceiptsFreightFeeGroupDtoMap
,
discountFreightFeeGroupDtoList
,
discountFreightFeeGroup
);
summaryDto
.
setDiscountFreightFeeGroupDtoList
(
discountFreightFeeGroupDtoList
);
summaryDto
.
setDiscountFreightFeeGroup
(
discountFreightFeeGroup
.
toString
());
// 运费换算成目的地设置的货币单位的总应收、总实收、总优惠
...
...
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