Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
brandkbs2
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
shenjunjie
brandkbs2
Commits
181d5d65
Commit
181d5d65
authored
Jan 30, 2023
by
shenjunjie
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature' into 'release'
用户行为列表查询增加项目限制 See merge request
!178
parents
006360e7
abd25b4c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
src/main/java/com/zhiwei/brandkbs2/service/impl/BehaviorServiceImpl.java
+3
-0
No files found.
src/main/java/com/zhiwei/brandkbs2/service/impl/BehaviorServiceImpl.java
View file @
181d5d65
package
com
.
zhiwei
.
brandkbs2
.
service
.
impl
;
package
com
.
zhiwei
.
brandkbs2
.
service
.
impl
;
import
com.zhiwei.brandkbs2.auth.UserThreadLocal
;
import
com.zhiwei.brandkbs2.dao.BehaviorDao
;
import
com.zhiwei.brandkbs2.dao.BehaviorDao
;
import
com.zhiwei.brandkbs2.dao.UserDao
;
import
com.zhiwei.brandkbs2.dao.UserDao
;
import
com.zhiwei.brandkbs2.easyexcel.dto.ExportBehaviorDTO
;
import
com.zhiwei.brandkbs2.easyexcel.dto.ExportBehaviorDTO
;
...
@@ -71,11 +72,13 @@ public class BehaviorServiceImpl implements BehaviorService {
...
@@ -71,11 +72,13 @@ public class BehaviorServiceImpl implements BehaviorService {
@Override
@Override
public
PageVO
<
BehaviorVO
>
findBehaviorList
(
int
page
,
int
size
,
long
startTime
,
long
endTime
,
boolean
backstage
,
String
nickname
)
{
public
PageVO
<
BehaviorVO
>
findBehaviorList
(
int
page
,
int
size
,
long
startTime
,
long
endTime
,
boolean
backstage
,
String
nickname
)
{
String
projectId
=
UserThreadLocal
.
getProjectId
();
Date
start
=
new
Date
(
startTime
);
Date
start
=
new
Date
(
startTime
);
Date
end
=
new
Date
(
endTime
);
Date
end
=
new
Date
(
endTime
);
String
[]
collectionNames
=
behaviorDao
.
generateCollectionNames
(
start
,
end
);
String
[]
collectionNames
=
behaviorDao
.
generateCollectionNames
(
start
,
end
);
Query
query
=
new
Query
();
Query
query
=
new
Query
();
query
.
addCriteria
(
Criteria
.
where
(
"cTime"
).
gte
(
startTime
).
lt
(
endTime
).
and
(
"backstage"
).
is
(
backstage
));
query
.
addCriteria
(
Criteria
.
where
(
"cTime"
).
gte
(
startTime
).
lt
(
endTime
).
and
(
"backstage"
).
is
(
backstage
));
query
.
addCriteria
(
Criteria
.
where
(
"projectId"
).
is
(
projectId
));
behaviorDao
.
addSort
(
query
,
"{\"cTime\":\"descend\"}"
);
behaviorDao
.
addSort
(
query
,
"{\"cTime\":\"descend\"}"
);
if
(
StringUtils
.
isNotEmpty
(
nickname
))
{
if
(
StringUtils
.
isNotEmpty
(
nickname
))
{
Query
userQuery
=
new
Query
();
Query
userQuery
=
new
Query
();
...
...
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