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
8972bb90
Commit
8972bb90
authored
Nov 11, 2019
by
jiaorz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
后台
parent
68b8215f
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
1 deletion
+23
-1
ImQuestionBiz.java
...src/main/java/com/xxfc/platform/im/biz/ImQuestionBiz.java
+15
-0
MsgBiz.java
...server/src/main/java/com/xxfc/platform/im/biz/MsgBiz.java
+1
-1
ImQuestionController.java
.../java/com/xxfc/platform/im/rest/ImQuestionController.java
+7
-0
No files found.
xx-im/xx-im-server/src/main/java/com/xxfc/platform/im/biz/ImQuestionBiz.java
View file @
8972bb90
...
@@ -86,6 +86,7 @@ public class ImQuestionBiz extends BaseBiz<ImQuestionMapper, ImQuestion> {
...
@@ -86,6 +86,7 @@ public class ImQuestionBiz extends BaseBiz<ImQuestionMapper, ImQuestion> {
if
(
appUserDTO
==
null
)
{
if
(
appUserDTO
==
null
)
{
return
ObjectRestResponse
.
createFailedResult
(
508
,
"token is null or invalid"
);
return
ObjectRestResponse
.
createFailedResult
(
508
,
"token is null or invalid"
);
}
}
imQuestion
.
setSource
(
2
);
imQuestion
.
setUserId
(
Long
.
parseLong
(
appUserDTO
.
getImUserid
()
+
""
));
imQuestion
.
setUserId
(
Long
.
parseLong
(
appUserDTO
.
getImUserid
()
+
""
));
imQuestion
.
setNickname
(
appUserDTO
.
getNickname
());
imQuestion
.
setNickname
(
appUserDTO
.
getNickname
());
imQuestion
.
setPicUrl
(
appUserDTO
.
getHeadimgurl
());
imQuestion
.
setPicUrl
(
appUserDTO
.
getHeadimgurl
());
...
@@ -115,6 +116,20 @@ public class ImQuestionBiz extends BaseBiz<ImQuestionMapper, ImQuestion> {
...
@@ -115,6 +116,20 @@ public class ImQuestionBiz extends BaseBiz<ImQuestionMapper, ImQuestion> {
return
ObjectRestResponse
.
succ
();
return
ObjectRestResponse
.
succ
();
}
}
/**
* 后台创建
* @return
*/
public
ObjectRestResponse
bgAdd
(
ImQuestion
imQuestion
)
{
if
(
imQuestion
==
null
)
{
return
ObjectRestResponse
.
paramIsEmpty
();
}
imQuestion
.
setSource
(
1
);
insertSelectiveRe
(
imQuestion
);
return
ObjectRestResponse
.
succ
();
}
/**
/**
* 删除消息,修改isDel为true
* 删除消息,修改isDel为true
*
*
...
...
xx-im/xx-im-server/src/main/java/com/xxfc/platform/im/biz/MsgBiz.java
View file @
8972bb90
...
@@ -425,7 +425,7 @@ public class MsgBiz {
...
@@ -425,7 +425,7 @@ public class MsgBiz {
if
(!
StringUtils
.
isEmpty
(
param
.
getMusicId
())){
if
(!
StringUtils
.
isEmpty
(
param
.
getMusicId
())){
updateUseCount
(
new
ObjectId
(
param
.
getMusicId
()));
updateUseCount
(
new
ObjectId
(
param
.
getMusicId
()));
}
}
entity
.
setSource
(
1
);
if
(
null
!=
param
.
getUserRemindLook
()){
if
(
null
!=
param
.
getUserRemindLook
()){
if
(
null
!=
param
.
getUserNotLook
()){
if
(
null
!=
param
.
getUserNotLook
()){
List
<
Integer
>
collect
=
param
.
getUserRemindLook
().
stream
().
filter
(
item
->
param
.
getUserNotLook
().
contains
(
item
)).
collect
(
Collectors
.
toList
());
List
<
Integer
>
collect
=
param
.
getUserRemindLook
().
stream
().
filter
(
item
->
param
.
getUserNotLook
().
contains
(
item
)).
collect
(
Collectors
.
toList
());
...
...
xx-im/xx-im-server/src/main/java/com/xxfc/platform/im/rest/ImQuestionController.java
View file @
8972bb90
...
@@ -53,4 +53,11 @@ public class ImQuestionController {
...
@@ -53,4 +53,11 @@ public class ImQuestionController {
public
ObjectRestResponse
update
(
@RequestBody
ImQuestion
imQuestion
)
{
public
ObjectRestResponse
update
(
@RequestBody
ImQuestion
imQuestion
)
{
return
imQuestionBiz
.
update
(
imQuestion
);
return
imQuestionBiz
.
update
(
imQuestion
);
}
}
@PostMapping
(
value
=
"/bg/app/unauth/add"
)
@ApiOperation
(
value
=
"添加问答信息"
)
public
ObjectRestResponse
bgAdd
(
@RequestBody
ImQuestion
imQuestion
)
{
return
imQuestionBiz
.
bgAdd
(
imQuestion
);
}
}
}
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