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
36c1fb8e
Commit
36c1fb8e
authored
Dec 04, 2020
by
chongfu.liang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
加赠商品修改
parent
93835de2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
+6
-3
shopping-cart-application-service/src/main/java/cn/freemud/entities/dto/ActivityCalculationDiscountResponseDto.java
+4
-0
shopping-cart-application-service/src/main/java/cn/freemud/service/impl/BuySendPromotionService.java
+2
-3
No files found.
shopping-cart-application-service/src/main/java/cn/freemud/entities/dto/ActivityCalculationDiscountResponseDto.java
View file @
36c1fb8e
...
...
@@ -332,6 +332,10 @@ public class ActivityCalculationDiscountResponseDto {
@Data
public
static
class
SendGoods
{
/**
* 买一赠一时,存赠送主商品的cartGoodsUid 用于标记是那个商品送的
*/
private
String
originalGoodsUid
;
/**
* 赠送商品ID
*/
private
String
goodsId
;
...
...
shopping-cart-application-service/src/main/java/cn/freemud/service/impl/BuySendPromotionService.java
View file @
36c1fb8e
...
...
@@ -237,13 +237,12 @@ public class BuySendPromotionService implements IPromotionService {
}
if
(
manyOrSingle
)
{
// 多规格
if
(!
Objects
.
equals
(
sendGoodsMap
.
get
(
cartGood
.
getSkuId
()).
get
GoodsId
(),
cartGood
.
getSkuI
d
()))
{
if
(!
Objects
.
equals
(
sendGoodsMap
.
get
(
cartGood
.
getSkuId
()).
get
OriginalGoodsUid
(),
cartGood
.
getCartGoodsUi
d
()))
{
return
;
}
}
else
{
// 单品
List
<
String
>
spuIds
=
newCartGoodsList
.
stream
().
map
(
CartGoods:
:
getSpuId
).
collect
(
Collectors
.
toList
());
if
(
spuIds
.
contains
(
cartGood
.
getSpuId
()))
{
if
(!
Objects
.
equals
(
sendGoodsMap
.
get
(
cartGood
.
getSpuId
()).
getOriginalGoodsUid
(),
cartGood
.
getCartGoodsUid
()))
{
return
;
}
}
...
...
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