Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
order-group
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
order-group-application
order-group
Commits
b2e5f2c9
Commit
b2e5f2c9
authored
Dec 16, 2021
by
周晓航
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新算价支持夜间配送费计算
Signed-off-by: 周晓航 <xiaohang.zhou@freemud.com>
parent
f23bb513
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
shopping-cart-application-service/src/main/java/cn/freemud/service/impl/calculate/CalculationSharingDiscountService.java
+3
-3
No files found.
shopping-cart-application-service/src/main/java/cn/freemud/service/impl/calculate/CalculationSharingDiscountService.java
View file @
b2e5f2c9
...
@@ -95,7 +95,7 @@ public class CalculationSharingDiscountService {
...
@@ -95,7 +95,7 @@ public class CalculationSharingDiscountService {
,
List
<
CartGoods
>
cartGoodsList
,
List
<
ActivityCalculationDiscountRequestDto
.
CalculationDiscountCoupon
>
coupons
,
List
<
CartGoods
>
cartGoodsList
,
List
<
ActivityCalculationDiscountRequestDto
.
CalculationDiscountCoupon
>
coupons
,
List
<
ShoppingCartInfoRequestVo
.
SendGoods
>
sendGoodsList
,
Long
deliveryAmount
,
List
<
ShoppingCartInfoRequestVo
.
SendGoods
>
sendGoodsList
,
Long
deliveryAmount
,
ShoppingCartInfoRequestVo
shoppingCartInfoRequestVo
,
Integer
bizType
,
Integer
accountFlag
,
DiscountSharingDto
sharingDto
,
long
nightDistributionFee
)
{
,
ShoppingCartInfoRequestVo
shoppingCartInfoRequestVo
,
Integer
bizType
,
Integer
accountFlag
,
DiscountSharingDto
sharingDto
,
long
nightDistributionFee
)
{
deliveryAmount
=
Objects
.
isNull
(
deliveryAmount
)
?
0L
:
deliveryAmount
;
ActivityCalculationDiscountRequestDto
calculationSharingDiscountRequestDto
=
this
.
commonSharingDto
(
partnerId
,
storeId
,
userId
,
appId
,
orderType
);
ActivityCalculationDiscountRequestDto
calculationSharingDiscountRequestDto
=
this
.
commonSharingDto
(
partnerId
,
storeId
,
userId
,
appId
,
orderType
);
// 是否有夜间配送费 设置
// 是否有夜间配送费 设置
calculationSharingDiscountRequestDto
.
setNightDistributionFee
(
nightDistributionFee
);
calculationSharingDiscountRequestDto
.
setNightDistributionFee
(
nightDistributionFee
);
...
@@ -251,8 +251,8 @@ public class CalculationSharingDiscountService {
...
@@ -251,8 +251,8 @@ public class CalculationSharingDiscountService {
result
.
setValidCouponMap
(
validCouponMap
);
result
.
setValidCouponMap
(
validCouponMap
);
result
.
setSpqIdToCartUuid
(
spqIdToCartUuid
);
result
.
setSpqIdToCartUuid
(
spqIdToCartUuid
);
// fisherman 这里传递过来的 配送费 是否要计算一下 配送券的逻辑
// fisherman 这里传递过来的 配送费 是否要计算一下 配送券的逻辑
result
.
setDeliveryAmount
(
deliveryAmount
);
result
.
setDeliveryAmount
(
deliveryAmount
+
nightDistributionFee
);
result
.
setDistributionFee
(
result
.
getDistributionFee
());
result
.
setDistributionFee
(
result
.
getDistributionFee
()
+
result
.
getNightDistributionFee
()
);
return
result
;
return
result
;
}
}
...
...
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