|
|
@ -275,16 +275,18 @@ public class NoticeServiceImpl extends BaseServiceImpl<NoticeDao, NoticeEntity> |
|
|
|
//6.通知已读未读表初始数据
|
|
|
|
List<NoticeReafdRecordEntity> reafdRecordList = new ArrayList<>(); |
|
|
|
memberList.forEach(m -> { |
|
|
|
if (!"".equals(m.getGroupLeaderFlag())) { |
|
|
|
NoticeReafdRecordEntity reafdRecord = new NoticeReafdRecordEntity(); |
|
|
|
reafdRecord.setCustomerId(resultDTO.getCustomerId()); |
|
|
|
reafdRecord.setGridId(groupEntity.getGridId()); |
|
|
|
reafdRecord.setGroupId(formDTO.getGroupId()); |
|
|
|
reafdRecord.setNoticeId(entity.getId()); |
|
|
|
reafdRecord.setUserId(m.getCustomerUserId()); |
|
|
|
NoticeReafdRecordEntity reafdRecord = new NoticeReafdRecordEntity(); |
|
|
|
reafdRecord.setCustomerId(resultDTO.getCustomerId()); |
|
|
|
reafdRecord.setGridId(groupEntity.getGridId()); |
|
|
|
reafdRecord.setGroupId(formDTO.getGroupId()); |
|
|
|
reafdRecord.setNoticeId(entity.getId()); |
|
|
|
reafdRecord.setUserId(m.getCustomerUserId()); |
|
|
|
if ("leader".equals(m.getGroupLeaderFlag())) { |
|
|
|
reafdRecord.setReadFlag(ReadFlagConstant.READ); |
|
|
|
}else { |
|
|
|
reafdRecord.setReadFlag(ReadFlagConstant.UN_READ); |
|
|
|
reafdRecordList.add(reafdRecord); |
|
|
|
} |
|
|
|
reafdRecordList.add(reafdRecord); |
|
|
|
}); |
|
|
|
if (reafdRecordList.size() > NumConstant.ZERO) { |
|
|
|
noticeReafdRecordService.insertBatch(reafdRecordList); |
|
|
@ -394,16 +396,18 @@ public class NoticeServiceImpl extends BaseServiceImpl<NoticeDao, NoticeEntity> |
|
|
|
noticeReafdRecordDao.delByNoticeId(formDTO.getNoticeId()); |
|
|
|
List<NoticeReafdRecordEntity> reafdRecordList = new ArrayList<>(); |
|
|
|
memberList.forEach(m -> { |
|
|
|
if (!"".equals(m.getGroupLeaderFlag())) { |
|
|
|
NoticeReafdRecordEntity reafdRecord = new NoticeReafdRecordEntity(); |
|
|
|
reafdRecord.setCustomerId(entity.getCustomerId()); |
|
|
|
reafdRecord.setGridId(entity.getGridId()); |
|
|
|
reafdRecord.setGroupId(entity.getGroupId()); |
|
|
|
reafdRecord.setNoticeId(entity.getId()); |
|
|
|
reafdRecord.setUserId(m.getCustomerUserId()); |
|
|
|
NoticeReafdRecordEntity reafdRecord = new NoticeReafdRecordEntity(); |
|
|
|
reafdRecord.setCustomerId(entity.getCustomerId()); |
|
|
|
reafdRecord.setGridId(entity.getGridId()); |
|
|
|
reafdRecord.setGroupId(entity.getGroupId()); |
|
|
|
reafdRecord.setNoticeId(entity.getId()); |
|
|
|
reafdRecord.setUserId(m.getCustomerUserId()); |
|
|
|
if ("leader".equals(m.getGroupLeaderFlag())) { |
|
|
|
reafdRecord.setReadFlag(ReadFlagConstant.READ); |
|
|
|
}else { |
|
|
|
reafdRecord.setReadFlag(ReadFlagConstant.UN_READ); |
|
|
|
reafdRecordList.add(reafdRecord); |
|
|
|
} |
|
|
|
reafdRecordList.add(reafdRecord); |
|
|
|
}); |
|
|
|
if (reafdRecordList.size() > NumConstant.ZERO) { |
|
|
|
noticeReafdRecordService.insertBatch(reafdRecordList); |
|
|
|