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
wwwanlingxiao
mall
Commits
b97292aa
Commit
b97292aa
authored
Oct 31, 2022
by
macro
Browse files
前台商品查询逻辑修改
parent
20db1fb8
Changes
1
Hide whitespace changes
Inline
Side-by-side
mall-portal/src/main/java/com/macro/mall/portal/service/impl/PmsPortalProductServiceImpl.java
View file @
b97292aa
...
@@ -47,6 +47,7 @@ public class PmsPortalProductServiceImpl implements PmsPortalProductService {
...
@@ -47,6 +47,7 @@ public class PmsPortalProductServiceImpl implements PmsPortalProductService {
PmsProductExample
example
=
new
PmsProductExample
();
PmsProductExample
example
=
new
PmsProductExample
();
PmsProductExample
.
Criteria
criteria
=
example
.
createCriteria
();
PmsProductExample
.
Criteria
criteria
=
example
.
createCriteria
();
criteria
.
andDeleteStatusEqualTo
(
0
);
criteria
.
andDeleteStatusEqualTo
(
0
);
criteria
.
andPublishStatusEqualTo
(
1
);
if
(
StrUtil
.
isNotEmpty
(
keyword
))
{
if
(
StrUtil
.
isNotEmpty
(
keyword
))
{
criteria
.
andNameLike
(
"%"
+
keyword
+
"%"
);
criteria
.
andNameLike
(
"%"
+
keyword
+
"%"
);
}
}
...
...
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