Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
Litemall
Commits
0a0e9974
Commit
0a0e9974
authored
Jan 29, 2019
by
Junling Bu
Browse files
fix[litemall-db]: 购物车商品是否存在需要过滤已删除商品。
parent
878a921a
Changes
1
Hide whitespace changes
Inline
Side-by-side
litemall-db/src/main/java/org/linlinjava/litemall/db/service/LitemallCartService.java
View file @
0a0e9974
...
...
@@ -114,7 +114,7 @@ public class LitemallCartService {
public
boolean
checkExist
(
Integer
goodsId
)
{
LitemallCartExample
example
=
new
LitemallCartExample
();
example
.
or
().
andGoodsIdEqualTo
(
goodsId
).
andCheckedEqualTo
(
true
);
example
.
or
().
andGoodsIdEqualTo
(
goodsId
).
andCheckedEqualTo
(
true
)
.
andDeletedEqualTo
(
false
)
;
return
cartMapper
.
countByExample
(
example
)
!=
0
;
}
}
Write
Preview
Supports
Markdown
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