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
b096af13
Commit
b096af13
authored
Jun 18, 2021
by
周晓航
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature/20210609-v2.0.34-下单锁定配送券ID1030707-周晓航-合并张悦33版本' into qa
parents
c5ae3027
1b267c3d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
1 deletions
+13
-1
order-application-service/src/main/java/cn/freemud/adapter/OrderAdapter.java
+13
-1
No files found.
order-application-service/src/main/java/cn/freemud/adapter/OrderAdapter.java
View file @
b096af13
...
@@ -26,6 +26,7 @@ import cn.freemud.entities.dto.pay.CombPayResponse;
...
@@ -26,6 +26,7 @@ import cn.freemud.entities.dto.pay.CombPayResponse;
import
cn.freemud.entities.dto.promotion.OrderBeanRequest
;
import
cn.freemud.entities.dto.promotion.OrderBeanRequest
;
import
cn.freemud.entities.dto.promotion.ShoppingCartGoodsResponse
;
import
cn.freemud.entities.dto.promotion.ShoppingCartGoodsResponse
;
import
cn.freemud.entities.dto.shoppingCart.ActivityDiscountsDto
;
import
cn.freemud.entities.dto.shoppingCart.ActivityDiscountsDto
;
import
cn.freemud.entities.dto.shoppingCart.CollageOrderDto
;
import
cn.freemud.entities.dto.shoppingCart.ShoppingCartGoodsDto
;
import
cn.freemud.entities.dto.shoppingCart.ShoppingCartGoodsDto
;
import
cn.freemud.entities.ttpay.OrderInfo
;
import
cn.freemud.entities.ttpay.OrderInfo
;
import
cn.freemud.entities.vo.*
;
import
cn.freemud.entities.vo.*
;
...
@@ -186,9 +187,20 @@ public class OrderAdapter {
...
@@ -186,9 +187,20 @@ public class OrderAdapter {
if
(
createOrderVo
.
getMenuType
().
equals
(
BusinessTypeEnum
.
SAAS_DELIVERY
.
getCode
()))
{
if
(
createOrderVo
.
getMenuType
().
equals
(
BusinessTypeEnum
.
SAAS_DELIVERY
.
getCode
()))
{
deliveryAmount
=
shoppingCartGoodsDto
.
getDeliveryAmount
()
==
null
?
9
l
:
shoppingCartGoodsDto
.
getDeliveryAmount
();
deliveryAmount
=
shoppingCartGoodsDto
.
getDeliveryAmount
()
==
null
?
9
l
:
shoppingCartGoodsDto
.
getDeliveryAmount
();
discountDeliveryAmount
=
shoppingCartGoodsDto
.
getDeliveryAmount
()
==
null
?
9
l
:
shoppingCartGoodsDto
.
getDeliveryAmount
();
discountDeliveryAmount
=
shoppingCartGoodsDto
.
getDeliveryAmount
()
==
null
?
9
l
:
shoppingCartGoodsDto
.
getDeliveryAmount
();
if
(
shoppingCartGoodsDto
.
getIsDiscountDelivery
()
&&
deliveryAmount
>
shoppingCartGoodsDto
.
getDiscountDeliveryAmount
())
{
// 参加满减活动 || 有运费券
boolean
isUseFreightCoupon
=
false
;
List
<
ActivityDiscountsDto
>
activityDiscountsDtos
=
shoppingCartGoodsDto
.
getActivityDiscountsDtos
();
if
(
CollectionUtils
.
isNotEmpty
(
activityDiscountsDtos
))
{
ActivityDiscountsDto
activityDiscountsDto
=
activityDiscountsDtos
.
stream
().
filter
(
a
->
a
.
getActivityType
()
!=
null
&&
a
.
getActivityType
().
equals
(
ActivityTypeEnum
.
TYPE_34
.
getCode
())).
findFirst
().
orElse
(
null
);
if
(
activityDiscountsDto
!=
null
)
{
isUseFreightCoupon
=
true
;
}
}
if
((
shoppingCartGoodsDto
.
getIsDiscountDelivery
()
||
isUseFreightCoupon
)
&&
deliveryAmount
>
shoppingCartGoodsDto
.
getDiscountDeliveryAmount
())
{
discountDeliveryAmount
=
shoppingCartGoodsDto
.
getDiscountDeliveryAmount
();
discountDeliveryAmount
=
shoppingCartGoodsDto
.
getDiscountDeliveryAmount
();
}
}
}
else
if
(
createOrderVo
.
getMenuType
().
equals
(
BusinessTypeEnum
.
SAAS_MALL
.
getCode
())){
}
else
if
(
createOrderVo
.
getMenuType
().
equals
(
BusinessTypeEnum
.
SAAS_MALL
.
getCode
())){
deliveryAmount
=
shoppingCartGoodsDto
.
getDeliveryAmount
()
==
null
?
0
:
shoppingCartGoodsDto
.
getDeliveryAmount
();
deliveryAmount
=
shoppingCartGoodsDto
.
getDeliveryAmount
()
==
null
?
0
:
shoppingCartGoodsDto
.
getDeliveryAmount
();
discountDeliveryAmount
=
shoppingCartGoodsDto
.
getDeliveryAmount
()
==
null
?
0
:
shoppingCartGoodsDto
.
getDeliveryAmount
();
discountDeliveryAmount
=
shoppingCartGoodsDto
.
getDeliveryAmount
()
==
null
?
0
:
shoppingCartGoodsDto
.
getDeliveryAmount
();
...
...
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