Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in
Toggle navigation
T
tanpu-community
Project
Project
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
探普后端
tanpu-community
Commits
1fc721e0
Commit
1fc721e0
authored
Aug 16, 2021
by
刘基明
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
消息通知 fix
parent
6bd2c1f6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
NotificationService.java
...java/com/tanpu/community/service/NotificationService.java
+5
-1
ConvertUtil.java
...e/src/main/java/com/tanpu/community/util/ConvertUtil.java
+0
-2
No files found.
community-service/src/main/java/com/tanpu/community/service/NotificationService.java
View file @
1fc721e0
...
@@ -61,7 +61,7 @@ public class NotificationService {
...
@@ -61,7 +61,7 @@ public class NotificationService {
NotificationEntity
entity
=
NotificationEntity
.
builder
().
operatorId
(
operatorId
)
NotificationEntity
entity
=
NotificationEntity
.
builder
().
operatorId
(
operatorId
)
.
notificationId
(
uuidGenHelper
.
getUuidStr
())
.
notificationId
(
uuidGenHelper
.
getUuidStr
())
.
notifiedUserId
(
notifierId
)
.
notifiedUserId
(
notifierId
)
.
messageType
(
NotificationTypeEnum
.
LIKE
.
getCode
())
.
messageType
(
NotificationTypeEnum
.
FORWARD
.
getCode
())
.
content
(
JsonUtil
.
toJson
(
forwardDO
))
.
content
(
JsonUtil
.
toJson
(
forwardDO
))
.
operatorId
(
operatorId
)
.
operatorId
(
operatorId
)
.
targetId
(
themeId
)
.
targetId
(
themeId
)
...
@@ -113,6 +113,7 @@ public class NotificationService {
...
@@ -113,6 +113,7 @@ public class NotificationService {
public
List
<
NotificationEntity
>
query
(
String
userId
,
Integer
type
,
String
lastId
,
Integer
pageSize
){
public
List
<
NotificationEntity
>
query
(
String
userId
,
Integer
type
,
String
lastId
,
Integer
pageSize
){
LambdaQueryWrapper
<
NotificationEntity
>
queryWrapper
=
new
LambdaQueryWrapper
<
NotificationEntity
>()
LambdaQueryWrapper
<
NotificationEntity
>
queryWrapper
=
new
LambdaQueryWrapper
<
NotificationEntity
>()
.
eq
(
NotificationEntity:
:
getNotifiedUserId
,
userId
)
.
eq
(
NotificationEntity:
:
getNotifiedUserId
,
userId
)
.
orderByDesc
(
NotificationEntity:
:
getUpdateTime
)
.
last
(
"limit "
+
pageSize
);
.
last
(
"limit "
+
pageSize
);
...
@@ -162,4 +163,7 @@ public class NotificationService {
...
@@ -162,4 +163,7 @@ public class NotificationService {
}
}
}
}
}
}
community-service/src/main/java/com/tanpu/community/util/ConvertUtil.java
View file @
1fc721e0
...
@@ -280,8 +280,6 @@ public class ConvertUtil {
...
@@ -280,8 +280,6 @@ public class ConvertUtil {
}
catch
(
Exception
e
){
}
catch
(
Exception
e
){
throw
new
BizException
(
"消息通知-点赞类型-反序列化异常:"
+
entity
.
getContent
());
throw
new
BizException
(
"消息通知-点赞类型-反序列化异常:"
+
entity
.
getContent
());
}
}
}
}
}
}
...
...
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