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
2828e7ba
Commit
2828e7ba
authored
Dec 05, 2020
by
孙昱
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'qa' of gitlab.freemud.com:order-group-application/order-group into qa
parents
228dbb6a
f0fc5847
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
order-application-service/src/main/java/cn/freemud/service/impl/CollageOrderServiceImpl.java
+1
-1
shopping-cart-application-service/src/main/java/cn/freemud/service/shoppingCart/impl/CocoShoppingCartRelationServiceImpl.java
+1
-1
No files found.
order-application-service/src/main/java/cn/freemud/service/impl/CollageOrderServiceImpl.java
View file @
2828e7ba
...
@@ -195,7 +195,7 @@ public class CollageOrderServiceImpl implements CollageOrderService {
...
@@ -195,7 +195,7 @@ public class CollageOrderServiceImpl implements CollageOrderService {
if
(
order
.
getOrderCostDetailList
()
!=
null
)
{
if
(
order
.
getOrderCostDetailList
()
!=
null
)
{
OrderCostResp
orderCostResp
=
order
.
getOrderCostDetailList
().
stream
().
filter
(
detail
->
(
detail
.
getCostType
().
equals
(
2
)
&&
detail
.
getBillType
().
equals
(
1
))).
findFirst
().
orElse
(
new
OrderCostResp
());
OrderCostResp
orderCostResp
=
order
.
getOrderCostDetailList
().
stream
().
filter
(
detail
->
(
detail
.
getCostType
().
equals
(
2
)
&&
detail
.
getBillType
().
equals
(
1
))).
findFirst
().
orElse
(
new
OrderCostResp
());
BigDecimal
deliveryPrice
=
orderCostResp
.
getActualCostAmount
()
==
null
?
new
BigDecimal
(
0
)
:
orderCostResp
.
getActualCostAmount
();
BigDecimal
deliveryPrice
=
orderCostResp
.
getActualCostAmount
()
==
null
?
new
BigDecimal
(
0
)
:
orderCostResp
.
getActualCostAmount
();
deliveryAmount
=
Math
.
floorDiv
(
deliveryPrice
.
longValue
(),
payerOpenIdList
.
size
());
deliveryAmount
=
Math
.
floorDiv
(
deliveryPrice
.
longValue
(),
payerOpenIdList
.
size
()
+
1
);
}
}
Long
amount
=
itemAmount
+
packAmount
+
deliveryAmount
;
Long
amount
=
itemAmount
+
packAmount
+
deliveryAmount
;
groupBuyUserInfo
=
new
GroupBuyRequest
.
UserInfo
();
groupBuyUserInfo
=
new
GroupBuyRequest
.
UserInfo
();
...
...
shopping-cart-application-service/src/main/java/cn/freemud/service/shoppingCart/impl/CocoShoppingCartRelationServiceImpl.java
View file @
2828e7ba
...
@@ -37,7 +37,7 @@ public class CocoShoppingCartRelationServiceImpl implements ShoppingCartRelation
...
@@ -37,7 +37,7 @@ public class CocoShoppingCartRelationServiceImpl implements ShoppingCartRelation
// coco返回的活动中剔除集点活动
// coco返回的活动中剔除集点活动
if
(
discountResult
.
getDiscounts
()
!=
null
&&
!
discountResult
.
getDiscounts
().
isEmpty
()){
if
(
discountResult
.
getDiscounts
()
!=
null
&&
!
discountResult
.
getDiscounts
().
isEmpty
()){
discountResult
.
getDiscounts
().
forEach
(
discount
->
{
discountResult
.
getDiscounts
().
forEach
(
discount
->
{
if
(
ActivityTypeEnum
.
TYPE_221
.
equals
(
discount
.
getType
())){
if
(
ActivityTypeEnum
.
TYPE_221
.
getCode
().
equals
(
discount
.
getType
())){
return
;
return
;
}
}
discounts
.
add
(
discount
);
discounts
.
add
(
discount
);
...
...
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