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
c1238b6a
Commit
c1238b6a
authored
Jun 21, 2022
by
周晓航
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
老算价,购物车优化修改
parent
85ba6314
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletions
+9
-1
shopping-cart-application-service/src/main/java/cn/freemud/service/impl/ShoppingCartNewServiceImpl.java
+9
-1
No files found.
shopping-cart-application-service/src/main/java/cn/freemud/service/impl/ShoppingCartNewServiceImpl.java
View file @
c1238b6a
...
@@ -2448,7 +2448,15 @@ public class ShoppingCartNewServiceImpl implements ShoppingCartNewService {
...
@@ -2448,7 +2448,15 @@ public class ShoppingCartNewServiceImpl implements ShoppingCartNewService {
toastMsg
=
shoppingCartInfoRequestVo
!=
null
&&
ObjectUtils
.
equals
(
SubmitPageEnum
.
YES
.
getCode
(),
shoppingCartInfoRequestVo
.
getFlag
())
?
SHOPPING_CART_EMPTY_GOODS_LIST
:
SHOPPING_CART_INVALIAD_GOODS
;
toastMsg
=
shoppingCartInfoRequestVo
!=
null
&&
ObjectUtils
.
equals
(
SubmitPageEnum
.
YES
.
getCode
(),
shoppingCartInfoRequestVo
.
getFlag
())
?
SHOPPING_CART_EMPTY_GOODS_LIST
:
SHOPPING_CART_INVALIAD_GOODS
;
setToastMsgIfNotExist
(
shoppingCartGoodsResponseVo
,
toastMsg
);
setToastMsgIfNotExist
(
shoppingCartGoodsResponseVo
,
toastMsg
);
//结算页,只有商品全部非法(即products为空)时,才提示changed为true toastMsg 不为空
//结算页,只有商品全部非法(即products为空)时,才提示changed为true toastMsg 不为空
if
(
shoppingCartInfoRequestVo
!=
null
&&
ObjectUtils
.
equals
(
SubmitPageEnum
.
YES
.
getCode
(),
shoppingCartInfoRequestVo
.
getFlag
()))
{
boolean
changed
=
shoppingCartInfoRequestVo
!=
null
&&
shoppingCartInfoRequestVo
.
getEnableSharing
()
!=
null
&&
shoppingCartInfoRequestVo
.
getEnableSharing
().
compareTo
(
0
)
==
0
&&
Objects
.
nonNull
(
shoppingCartGoodsResponseVo
.
getChanged
())
&&
shoppingCartGoodsResponseVo
.
getChanged
().
compareTo
(
true
)
==
0
;
if
(
changed
)
{
shoppingCartGoodsResponseVo
.
setChanged
(
true
);
shoppingCartGoodsResponseVo
.
setToastMsg
(
"购物车数据异常,需要重新请求购物车list接口"
);
}
else
{
shoppingCartGoodsResponseVo
.
setChanged
(
CollectionUtils
.
isEmpty
(
cartGoodsList
));
shoppingCartGoodsResponseVo
.
setChanged
(
CollectionUtils
.
isEmpty
(
cartGoodsList
));
shoppingCartGoodsResponseVo
.
setToastMsg
(
CollectionUtils
.
isEmpty
(
cartGoodsList
)
?
toastMsg
:
""
);
shoppingCartGoodsResponseVo
.
setToastMsg
(
CollectionUtils
.
isEmpty
(
cartGoodsList
)
?
toastMsg
:
""
);
}
}
...
...
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