Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cloud-platform
Project
Project
Details
Activity
Releases
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
youjj
cloud-platform
Commits
ff0c71d2
Commit
ff0c71d2
authored
Nov 14, 2019
by
jiaorz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
b0589191
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
MsgBiz.java
...server/src/main/java/com/xxfc/platform/im/biz/MsgBiz.java
+7
-2
No files found.
xx-im/xx-im-server/src/main/java/com/xxfc/platform/im/biz/MsgBiz.java
View file @
ff0c71d2
...
@@ -26,6 +26,7 @@ import com.xxfc.platform.universal.feign.ThirdFeign;
...
@@ -26,6 +26,7 @@ import com.xxfc.platform.universal.feign.ThirdFeign;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
org.apache.commons.lang3.StringUtils
;
import
org.apache.commons.lang3.StringUtils
;
import
org.bson.types.ObjectId
;
import
org.bson.types.ObjectId
;
import
org.joda.time.DateTime
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.data.domain.PageRequest
;
import
org.springframework.data.domain.PageRequest
;
import
org.springframework.data.domain.Pageable
;
import
org.springframework.data.domain.Pageable
;
...
@@ -371,10 +372,14 @@ public class MsgBiz {
...
@@ -371,10 +372,14 @@ public class MsgBiz {
}
}
//下单时间
//下单时间
if
(
msgQueryDto
.
getStartTime
()
!=
null
)
{
if
(
msgQueryDto
.
getStartTime
()
!=
null
)
{
query
.
addCriteria
(
Criteria
.
where
(
"time"
).
gte
(
msgQueryDto
.
getStartTime
()/
1000
));
DateTime
dateTime
=
new
DateTime
();
dateTime
.
withMillis
(
msgQueryDto
.
getStartTime
());
query
.
addCriteria
(
Criteria
.
where
(
"time"
).
gte
(
dateTime
.
getMillis
()));
}
}
if
(
msgQueryDto
.
getEndTime
()
!=
null
)
{
if
(
msgQueryDto
.
getEndTime
()
!=
null
)
{
query
.
addCriteria
((
Criteria
.
where
(
"time"
).
lte
(
msgQueryDto
.
getEndTime
()/
1000
)));
DateTime
dateTime
=
new
DateTime
();
dateTime
.
withMillis
(
msgQueryDto
.
getEndTime
());
query
.
addCriteria
((
Criteria
.
where
(
"time"
).
lte
(
dateTime
.
getMillis
())));
}
}
//用户名
//用户名
if
(
StringUtils
.
isNotBlank
(
msgQueryDto
.
getUsername
()))
{
if
(
StringUtils
.
isNotBlank
(
msgQueryDto
.
getUsername
()))
{
...
...
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