|
@@ -194,7 +194,7 @@ public class NoticeServiceImpl implements NoticeService {
|
|
|
@Override
|
|
|
public NoticeRulePublishProgressEntity updateNotice(UpdateNoticeInfo info) {
|
|
|
Long rootOrgId = info.getRootOrgId();
|
|
|
- List<Long> noticeIdList = Collections.singletonList(info.getId());
|
|
|
+
|
|
|
// 校验通知状态,正在发送的通知不允许修改
|
|
|
NoticeEntity originalNotice = GlobalHelper.getEntity(noticeRepo, info.getId(),
|
|
|
NoticeEntity.class);
|
|
@@ -217,6 +217,8 @@ public class NoticeServiceImpl implements NoticeService {
|
|
|
originalNotice.setUpdateTime(new Date());
|
|
|
noticeRepo.save(originalNotice);
|
|
|
|
|
|
+ List<Long> noticeIdList = Collections.singletonList(info.getId());
|
|
|
+
|
|
|
// 更新公告接收规则实体
|
|
|
noticeReceiverRuleRepo.deleteByRootOrgIdAndNoticeIdIn(rootOrgId, noticeIdList);
|
|
|
List<NoticeReceiverRuleEntity> ruleList = getNoticeReceiverRuleEntityListFrom(info);
|