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
d8c803ef
Commit
d8c803ef
authored
Jun 21, 2019
by
jiaorz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改查询
parent
9fd85723
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
3 deletions
+2
-3
MsgBiz.java
...server/src/main/java/com/xxfc/platform/im/biz/MsgBiz.java
+1
-1
Msg.java
...-server/src/main/java/com/xxfc/platform/im/model/Msg.java
+1
-2
No files found.
xx-im/xx-im-server/src/main/java/com/xxfc/platform/im/biz/MsgBiz.java
View file @
d8c803ef
...
...
@@ -37,7 +37,7 @@ public class MsgBiz {
/* PageHelper.startPage(Integer.parseInt(map.get("page").toString()),Integer.parseInt(map.get("limit").toString()));
PageInfo<Msg> goodPageInfo = new PageInfo<>(mongoTemplate.findAll(Msg.class));
Query query = new Query(Criteria.where("userId").is(10000012));
List<Msg> msg= mongoTemplate.findAll(Msg.class);*/
List<Msg> msg= mongoTemplate.findAll(Msg.class
, "s_msg"
);*/
if
(
null
==
collection
)
collection
=
MGDBCollection
.
getDB
().
getCollection
(
"s_msg"
);
DBCursor
cursor
=
collection
.
find
();
...
...
xx-im/xx-im-server/src/main/java/com/xxfc/platform/im/model/Msg.java
View file @
d8c803ef
...
...
@@ -547,8 +547,7 @@ public class Msg {
// body.videos = com.mongodb.util.JSON.parse(param.getVideos());
if
(
2
==
param
.
getType
()||
4
==
param
.
getType
()){
body
.
images
=
JSON
.
parseArray
(
param
.
getImages
(),
Resource
.
class
);
if
(
null
!=
body
.
images
&&
0
==
body
.
images
.
size
())
throw
new
ServiceException
(
"请上传有效图片"
);
if
(
null
!=
body
.
images
&&
0
==
body
.
images
.
size
())
throw
new
ServiceException
(
"请上传有效图片"
);
}
// body.images = JSON.parseArray(param.getImages(), Resource.class);
body
.
audios
=
JSON
.
parseArray
(
param
.
getAudios
(),
Resource
.
class
);
...
...
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