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
c9beb518
Commit
c9beb518
authored
Nov 11, 2019
by
周健威
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/dev' into dev
parents
5368e2fa
dcc4ab14
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
24 additions
and
1 deletion
+24
-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
BranchCompanyBiz.java
.../java/com/xxfc/platform/vehicle/biz/BranchCompanyBiz.java
+1
-0
No files found.
xx-im/xx-im-server/src/main/java/com/xxfc/platform/im/biz/ImQuestionBiz.java
View file @
c9beb518
...
@@ -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 @
c9beb518
...
@@ -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 @
c9beb518
...
@@ -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
);
}
}
}
xx-vehicle/xx-vehicle-server/src/main/java/com/xxfc/platform/vehicle/biz/BranchCompanyBiz.java
View file @
c9beb518
...
@@ -418,6 +418,7 @@ public class BranchCompanyBiz extends BaseBiz<BranchCompanyMapper, BranchCompany
...
@@ -418,6 +418,7 @@ public class BranchCompanyBiz extends BaseBiz<BranchCompanyMapper, BranchCompany
return
vehicleBiz
.
dataCompany
(
dataZone
,
dataCompany
);
return
vehicleBiz
.
dataCompany
(
dataZone
,
dataCompany
);
}
}
@CacheClear
(
pre
=
RedisKey
.
BRANCH_COMPANY_CACHE_ALL
)
public
ObjectRestResponse
delCompanyByBaseId
(
Integer
id
)
{
public
ObjectRestResponse
delCompanyByBaseId
(
Integer
id
)
{
Example
example
=
new
Example
(
BranchCompany
.
class
);
Example
example
=
new
Example
(
BranchCompany
.
class
);
example
.
createCriteria
().
andEqualTo
(
"companyBaseId"
,
id
);
example
.
createCriteria
().
andEqualTo
(
"companyBaseId"
,
id
);
...
...
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