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
9e6012cd
Commit
9e6012cd
authored
Sep 24, 2020
by
xiaoer.li@freemud.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
对接促销算价Alpha->fix
parent
84c439fc
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
shopping-cart-application-service/src/main/java/cn/freemud/service/impl/calculate/promotion/FullSharingService.java
+2
-0
No files found.
shopping-cart-application-service/src/main/java/cn/freemud/service/impl/calculate/promotion/FullSharingService.java
View file @
9e6012cd
...
@@ -325,6 +325,7 @@ public class FullSharingService {
...
@@ -325,6 +325,7 @@ public class FullSharingService {
*/
*/
public
HashMap
<
String
,
Long
>
drawnFullDiscount
(
List
<
CalculationSharingDiscountResponseDto
.
CalculationDiscountResult
.
Goods
.
SmallMaterial
>
materialDiscount
,
List
<
Integer
>
typeEnums
,
int
type
)
{
public
HashMap
<
String
,
Long
>
drawnFullDiscount
(
List
<
CalculationSharingDiscountResponseDto
.
CalculationDiscountResult
.
Goods
.
SmallMaterial
>
materialDiscount
,
List
<
Integer
>
typeEnums
,
int
type
)
{
HashMap
<
String
,
Long
>
hashMap
=
new
HashMap
<>();
HashMap
<
String
,
Long
>
hashMap
=
new
HashMap
<>();
if
(
CollectionUtils
.
isEmpty
(
materialDiscount
))
return
hashMap
;
for
(
CalculationSharingDiscountResponseDto
.
CalculationDiscountResult
.
Goods
.
SmallMaterial
smallMaterial
:
materialDiscount
)
{
for
(
CalculationSharingDiscountResponseDto
.
CalculationDiscountResult
.
Goods
.
SmallMaterial
smallMaterial
:
materialDiscount
)
{
if
(
CollectionUtils
.
isEmpty
(
smallMaterial
.
getDiscounts
()))
continue
;
if
(
CollectionUtils
.
isEmpty
(
smallMaterial
.
getDiscounts
()))
continue
;
for
(
CalculationSharingDiscountResponseDto
.
CalculationDiscountResult
.
Goods
.
GoodsDiscount
discount
:
smallMaterial
.
getDiscounts
())
{
for
(
CalculationSharingDiscountResponseDto
.
CalculationDiscountResult
.
Goods
.
GoodsDiscount
discount
:
smallMaterial
.
getDiscounts
())
{
...
@@ -341,6 +342,7 @@ public class FullSharingService {
...
@@ -341,6 +342,7 @@ public class FullSharingService {
*/
*/
public
HashMap
<
String
,
Long
>
drawnFullDiscount
(
List
<
CalculationSharingDiscountResponseDto
.
CalculationDiscountResult
.
Goods
.
GroupCombox
>
groupCombDiscount
,
List
<
Integer
>
typeEnums
)
{
public
HashMap
<
String
,
Long
>
drawnFullDiscount
(
List
<
CalculationSharingDiscountResponseDto
.
CalculationDiscountResult
.
Goods
.
GroupCombox
>
groupCombDiscount
,
List
<
Integer
>
typeEnums
)
{
HashMap
<
String
,
Long
>
hashMap
=
new
HashMap
<>();
HashMap
<
String
,
Long
>
hashMap
=
new
HashMap
<>();
if
(
CollectionUtils
.
isEmpty
(
groupCombDiscount
))
return
hashMap
;
for
(
CalculationSharingDiscountResponseDto
.
CalculationDiscountResult
.
Goods
.
GroupCombox
com
:
groupCombDiscount
)
{
for
(
CalculationSharingDiscountResponseDto
.
CalculationDiscountResult
.
Goods
.
GroupCombox
com
:
groupCombDiscount
)
{
if
(
CollectionUtils
.
isEmpty
(
com
.
getDiscounts
()))
continue
;
if
(
CollectionUtils
.
isEmpty
(
com
.
getDiscounts
()))
continue
;
for
(
CalculationSharingDiscountResponseDto
.
CalculationDiscountResult
.
Goods
.
GoodsDiscount
discount
:
com
.
getDiscounts
())
{
for
(
CalculationSharingDiscountResponseDto
.
CalculationDiscountResult
.
Goods
.
GoodsDiscount
discount
:
com
.
getDiscounts
())
{
...
...
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