|
@@ -354,24 +354,26 @@ public class NoticeLogic {
|
|
|
.between(NoticeRecord::getIssueTime, dateTime, date1)
|
|
|
.list());
|
|
|
|
|
|
- List<NoticeWebsitRecord> noticeWebsitRecords = noticeWebsitRecordService.lambdaQuery()
|
|
|
- .in(!StringUtil.isEmpty(adminUser.getCompanyWechatId()), NoticeWebsitRecord::getCompanyWechatId, adminUser.getCompanyWechatId())
|
|
|
- .in(!StringUtil.isEmpty(adminUser.getAdminUserId()), NoticeWebsitRecord::getAdminWebsitId, adminUser.getAdminWebsitIds())
|
|
|
- .eq(NoticeWebsitRecord::getReadFlag,IsYesNoEnum.NO.getKey())
|
|
|
- .between(NoticeWebsitRecord::getIssueTime, dateTime, date1).list();
|
|
|
-
|
|
|
- if (CollectionUtils.isNotEmpty(noticeWebsitRecords)){
|
|
|
- List<NoticeWebsit> noticeWebsits = noticeWebsitService.lambdaQuery().in(NoticeWebsit::getNoticeWebsitId,
|
|
|
- noticeWebsitRecords.stream().map(NoticeWebsitRecord::getNoticeWebsitId).collect(Collectors.toList()))
|
|
|
- .list();
|
|
|
-
|
|
|
- for (NoticeWebsit noticeWebsit : noticeWebsits) {
|
|
|
- NoticeRecord noticeRecord = new NoticeRecord();
|
|
|
- noticeRecord.setId(noticeWebsit.getNoticeWebsitId());
|
|
|
- noticeRecord.setType(noticeWebsit.getType());
|
|
|
- noticeRecord.setAdminNoticeType("WDTZ");
|
|
|
- noticeRecord.setTitle(noticeWebsit.getTitle());
|
|
|
- list.add(noticeRecord);
|
|
|
+ if (adminUser.getType().equals(0)) {
|
|
|
+ List<NoticeWebsitRecord> noticeWebsitRecords = noticeWebsitRecordService.lambdaQuery()
|
|
|
+ .in(!StringUtil.isEmpty(adminUser.getCompanyWechatId()), NoticeWebsitRecord::getCompanyWechatId, adminUser.getCompanyWechatId())
|
|
|
+ .in(!StringUtil.isEmpty(adminUser.getAdminUserId()), NoticeWebsitRecord::getAdminWebsitId, adminUser.getAdminWebsitIds())
|
|
|
+ .eq(NoticeWebsitRecord::getReadFlag, IsYesNoEnum.NO.getKey())
|
|
|
+ .between(NoticeWebsitRecord::getIssueTime, dateTime, date1).list();
|
|
|
+
|
|
|
+ if (CollectionUtils.isNotEmpty(noticeWebsitRecords)) {
|
|
|
+ List<NoticeWebsit> noticeWebsits = noticeWebsitService.lambdaQuery().in(NoticeWebsit::getNoticeWebsitId,
|
|
|
+ noticeWebsitRecords.stream().map(NoticeWebsitRecord::getNoticeWebsitId).collect(Collectors.toList()))
|
|
|
+ .list();
|
|
|
+
|
|
|
+ for (NoticeWebsit noticeWebsit : noticeWebsits) {
|
|
|
+ NoticeRecord noticeRecord = new NoticeRecord();
|
|
|
+ noticeRecord.setId(noticeWebsit.getNoticeWebsitId());
|
|
|
+ noticeRecord.setType(noticeWebsit.getType());
|
|
|
+ noticeRecord.setAdminNoticeType("WDTZ");
|
|
|
+ noticeRecord.setTitle(noticeWebsit.getTitle());
|
|
|
+ list.add(noticeRecord);
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
|