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
e16b4455
Commit
e16b4455
authored
Mar 10, 2021
by
xiaoer.li@freemud.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
modify:排序
parent
8df006c0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
26 deletions
+21
-26
shopping-cart-application-service/src/main/java/cn/freemud/service/impl/FullPromotionService.java
+11
-14
shopping-cart-application-service/src/main/java/cn/freemud/service/impl/calculate/promotion/FullSharingService.java
+10
-12
No files found.
shopping-cart-application-service/src/main/java/cn/freemud/service/impl/FullPromotionService.java
View file @
e16b4455
...
...
@@ -193,21 +193,18 @@ public class FullPromotionService implements IPromotionService {
notInShopping
.
setTipType
(
7
);
}
//int len = benefitBeanDto.getSendGoodsList().size();
for
(
BenefitBeanDto
beanDto
:
benefitBeanDtos
)
{
notInShopping
.
setSatisfy
(
WebUtil
.
formatAmount
(
beanDto
.
getThresholdAmount
()
*
1.00
/
100
).
toString
());
int
len
=
beanDto
.
getSendGoodsList
().
size
();
List
<
ActivityList
.
SendGoods
>
sends
=
new
ArrayList
();
for
(
int
i
=
len
-
1
;
i
>=
0
;
i
--)
{
ActivityList
.
SendGoods
goods
=
new
ActivityList
.
SendGoods
();
goods
.
setQty
(
beanDto
.
getSendGoodsList
().
get
(
i
).
getSendNumber
());
goods
.
setGoodsName
(
beanDto
.
getSendGoodsList
().
get
(
i
).
getGoodsName
());
sends
.
add
(
goods
);
}
notInShopping
.
setSends
(
sends
);
break
;
Collections
.
sort
(
benefitBeanDtos
);
BenefitBeanDto
dto
=
benefitBeanDtos
.
get
(
0
);
int
len
=
dto
.
getSendGoodsList
().
size
();
notInShopping
.
setSatisfy
(
WebUtil
.
formatAmount
(
dto
.
getThresholdAmount
()
*
1.00
/
100
).
toString
());
List
<
ActivityList
.
SendGoods
>
sends
=
new
ArrayList
();
for
(
int
i
=
len
-
1
;
i
>=
0
;
i
--)
{
ActivityList
.
SendGoods
goods
=
new
ActivityList
.
SendGoods
();
goods
.
setQty
(
dto
.
getSendGoodsList
().
get
(
i
).
getSendNumber
());
goods
.
setGoodsName
(
dto
.
getSendGoodsList
().
get
(
i
).
getGoodsName
());
sends
.
add
(
goods
);
}
notInShopping
.
setSends
(
sends
);
activityList
.
add
(
notInShopping
);
}
}
...
...
shopping-cart-application-service/src/main/java/cn/freemud/service/impl/calculate/promotion/FullSharingService.java
View file @
e16b4455
...
...
@@ -285,18 +285,16 @@ public class FullSharingService {
else
if
(
GiftTypeEnum
.
TYPE_2
.
equals
(
activityResponseDto
.
getActivitySubType
()))
{
notInShopping
.
setTipType
(
7
);
}
for
(
BenefitBeanDto
beanDto
:
benefitBeanDtos
)
{
notInShopping
.
setSatisfy
(
WebUtil
.
formatAmount
(
beanDto
.
getThresholdAmount
()
*
1.00
/
100
).
toString
());
int
len
=
beanDto
.
getSendGoodsList
().
size
();
List
<
ActivityList
.
SendGoods
>
sends
=
new
ArrayList
();
for
(
int
i
=
len
-
1
;
i
>=
0
;
i
--)
{
ActivityList
.
SendGoods
goods
=
new
ActivityList
.
SendGoods
();
goods
.
setQty
(
beanDto
.
getSendGoodsList
().
get
(
i
).
getSendNumber
());
goods
.
setGoodsName
(
beanDto
.
getSendGoodsList
().
get
(
i
).
getGoodsName
());
sends
.
add
(
goods
);
}
notInShopping
.
setSends
(
sends
);
break
;
Collections
.
sort
(
benefitBeanDtos
);
BenefitBeanDto
dto
=
benefitBeanDtos
.
get
(
0
);
int
len
=
dto
.
getSendGoodsList
().
size
();
notInShopping
.
setSatisfy
(
WebUtil
.
formatAmount
(
dto
.
getThresholdAmount
()
*
1.00
/
100
).
toString
());
List
<
ActivityList
.
SendGoods
>
sends
=
new
ArrayList
();
for
(
int
i
=
len
-
1
;
i
>=
0
;
i
--)
{
ActivityList
.
SendGoods
goods
=
new
ActivityList
.
SendGoods
();
goods
.
setQty
(
dto
.
getSendGoodsList
().
get
(
i
).
getSendNumber
());
goods
.
setGoodsName
(
dto
.
getSendGoodsList
().
get
(
i
).
getGoodsName
());
sends
.
add
(
goods
);
}
activityList
.
add
(
notInShopping
);
}
...
...
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