Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Q
qk_backend
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
quanku
qk_backend
Commits
473ce221
Commit
473ce221
authored
Sep 19, 2023
by
shiyu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
查看商品权限
parent
477ac0f4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
0 deletions
+9
-0
ch-dao/src/main/java/com/wwdz/ch/db/bean/ItemOfEs.java
ch-dao/src/main/java/com/wwdz/ch/db/bean/ItemOfEs.java
+5
-0
ch-dao/src/main/java/com/wwdz/ch/db/es/ItemEsDao.java
ch-dao/src/main/java/com/wwdz/ch/db/es/ItemEsDao.java
+4
-0
No files found.
ch-dao/src/main/java/com/wwdz/ch/db/bean/ItemOfEs.java
View file @
473ce221
...
...
@@ -127,4 +127,9 @@ public class ItemOfEs implements Entity {
* 原始额外信息
*/
private
String
originalExtra
;
/**
* 查看权限(0所有人,1仅自己可见)
*/
private
Integer
viewPermission
;
}
ch-dao/src/main/java/com/wwdz/ch/db/es/ItemEsDao.java
View file @
473ce221
...
...
@@ -102,6 +102,10 @@ public class ItemEsDao {
build
.
filter
(
wildcardQuery
);
Query
isDeleteQuery
=
TermQuery
.
of
(
t
->
t
.
field
(
"isDeleted"
).
value
(
false
)).
_toQuery
();
build
.
filter
(
isDeleteQuery
);
//只查询权限为公开的商品
Query
viewPermissionQuery
=
TermQuery
.
of
(
t
->
t
.
field
(
"viewPermission"
).
value
(
0
)).
_toQuery
();
build
.
filter
(
viewPermissionQuery
);
if
(
StringUtils
.
hasLength
(
esSearchRequestDto
.
getContent
()))
{
Query
matchQuery
=
MatchQuery
.
of
(
m
->
m
.
field
(
"name"
)
...
...
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