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
453ec46c
Commit
453ec46c
authored
Jun 03, 2021
by
张跃
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
加价购优化
parent
af20b456
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
12 deletions
+4
-12
shopping-cart-application-service/src/main/java/cn/freemud/demo/service/impl/ShoppingBaseServiceImpl.java
+2
-7
shopping-cart-application-service/src/main/java/cn/freemud/service/impl/ShoppingCartNewServiceImpl.java
+2
-5
No files found.
shopping-cart-application-service/src/main/java/cn/freemud/demo/service/impl/ShoppingBaseServiceImpl.java
View file @
453ec46c
...
...
@@ -75,13 +75,8 @@ public class ShoppingBaseServiceImpl implements ShoppingCartService {
if
(
Integer
.
valueOf
(
"5"
).
equals
(
showType
)
&&
!
org
.
springframework
.
util
.
CollectionUtils
.
isEmpty
(
chooseSendGoodList
))
{
chooseSendGoodList
.
forEach
(
good
->
{
ListCartGoodsBO
.
SendGoods
first
=
null
;
if
(
sendGoods
!=
null
)
{
if
(
sendGoods
.
stream
().
filter
(
a
->
a
.
getGoodsId
().
equals
(
good
.
getPid
())).
findFirst
().
isPresent
())
{
first
=
sendGoods
.
stream
().
filter
(
a
->
a
.
getGoodsId
().
equals
(
good
.
getPid
())).
findFirst
().
get
();
}
else
{
return
;
}
}
first
=
sendGoods
.
stream
().
filter
(
a
->
a
.
getGoodsId
().
equals
(
good
.
getSkuId
())
||
a
.
getGoodsId
().
equals
(
good
.
getSpuId
())).
findFirst
().
orElse
(
null
);
if
(
first
==
null
)
return
;
CartGoods
cartGoods
=
new
CartGoods
();
cartGoods
.
setSpuId
(
good
.
getSpuId
());
cartGoods
.
setSkuId
(
good
.
getSkuId
());
...
...
shopping-cart-application-service/src/main/java/cn/freemud/service/impl/ShoppingCartNewServiceImpl.java
View file @
453ec46c
...
...
@@ -787,11 +787,8 @@ public class ShoppingCartNewServiceImpl implements ShoppingCartNewService {
if
(
Integer
.
valueOf
(
"5"
).
equals
(
showType
)
&&
!
org
.
springframework
.
util
.
CollectionUtils
.
isEmpty
(
chooseSendGoodList
)){
chooseSendGoodList
.
forEach
(
good
->{
ShoppingCartInfoRequestVo
.
SendGoods
first
=
null
;
if
(
sendGoods
.
stream
().
filter
(
a
->
a
.
getGoodsId
().
equals
(
good
.
getPid
())).
findFirst
().
isPresent
())
{
first
=
sendGoods
.
stream
().
filter
(
a
->
a
.
getGoodsId
().
equals
(
good
.
getPid
())).
findFirst
().
get
();
}
else
{
return
;
}
first
=
sendGoods
.
stream
().
filter
(
a
->
a
.
getGoodsId
().
equals
(
good
.
getSkuId
())
||
a
.
getGoodsId
().
equals
(
good
.
getSpuId
())).
findFirst
().
orElse
(
null
);
if
(
first
==
null
)
return
;
CartGoods
cartGoods
=
new
CartGoods
();
cartGoods
.
setSpuId
(
good
.
getSpuId
());
cartGoods
.
setSkuId
(
good
.
getSkuId
());
...
...
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