Commit 1fc721e0 authored by 刘基明's avatar 刘基明

消息通知 fix

parent 6bd2c1f6
...@@ -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 {
} }
} }
} }
...@@ -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());
} }
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment