|
|
@@ -18,6 +18,7 @@ import com.xunmei.common.core.domain.message.dto.CoreAnnouncementNotificationDto
|
|
|
import com.xunmei.common.core.domain.message.dto.CoreAnnouncementNotificationPageDto;
|
|
|
import com.xunmei.common.core.domain.message.vo.CoreAnnouncementNotificationAppPageVo;
|
|
|
import com.xunmei.common.core.domain.message.vo.CoreAnnouncementNotificationPageVo;
|
|
|
+import com.xunmei.common.core.domain.message.vo.MessageAppPageVo;
|
|
|
import com.xunmei.common.core.util.BeanHelper;
|
|
|
import com.xunmei.common.core.utils.DateUtils;
|
|
|
import com.xunmei.common.core.utils.bean.BeanUtils;
|
|
|
@@ -103,8 +104,8 @@ public class CoreAnnouncementNotificationServiceImpl extends ServiceImpl<CoreAnn
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- public TableDataInfo<CoreAnnouncementNotificationAppPageVo> selectAppPage(CoreAnnouncementNotificationAppPageDto request) {
|
|
|
- Page<CoreAnnouncementNotificationAppPageVo> page;
|
|
|
+ public TableDataInfo<MessageAppPageVo> selectAppPage(CoreAnnouncementNotificationAppPageDto request) {
|
|
|
+ Page<MessageAppPageVo> page;
|
|
|
//分页
|
|
|
if (request.getPageNum()!=null&&request.getPageSize()!=null)
|
|
|
{
|
|
|
@@ -135,8 +136,8 @@ public class CoreAnnouncementNotificationServiceImpl extends ServiceImpl<CoreAnn
|
|
|
coreAnnouncementNotificationMapper.insertNotificationUser(notificationUser);
|
|
|
}
|
|
|
|
|
|
- private Page<CoreAnnouncementNotificationAppPageVo> buildNewNotificationAppPageVo(Page<CoreAnnouncementNotificationAppPageVo> page, CoreAnnouncementNotificationAppPageDto request) {
|
|
|
- List<CoreAnnouncementNotificationAppPageVo> records = page.getRecords();
|
|
|
+ private Page<MessageAppPageVo> buildNewNotificationAppPageVo(Page<MessageAppPageVo> page, CoreAnnouncementNotificationAppPageDto request) {
|
|
|
+ List<MessageAppPageVo> records = page.getRecords();
|
|
|
List<CoreAnnouncementNotificationToUser> list = coreAnnouncementNotificationMapper.selectNotificationToUsers(request,records);
|
|
|
records.forEach(r->{
|
|
|
int num = (int) list.stream().filter(a->a.getUserId().equals(request.getUserId())&&a.getAnnouncementNotificationId().equals(r.getId())).count();
|