|
@@ -44,29 +44,31 @@ public class NoticeCloudServiceProvider extends ControllerSupport implements Not
|
|
|
public GetNoticeRulePublishProgressListResp getToBeDisposedNoticeRulePublishProgressList() {
|
|
|
GetNoticeRulePublishProgressListResp resp = new GetNoticeRulePublishProgressListResp();
|
|
|
List<NoticeRulePublishProgressEntity> progressEntityList = noticeService.getToBeDisposedNoticeRulePublishProgressList();
|
|
|
- if (progressEntityList != null && !progressEntityList.isEmpty()) {
|
|
|
- List<NoticeRulePublishProgressBean> beanList = new ArrayList<>();
|
|
|
- for (NoticeRulePublishProgressEntity entity : progressEntityList) {
|
|
|
- NoticeRulePublishProgressBean bean = new NoticeRulePublishProgressBean();
|
|
|
- bean.setId(entity.getId());
|
|
|
- bean.setMaxCommonUserId(entity.getMaxCommonUserId());
|
|
|
- bean.setMaxStudentId(entity.getMaxStudentId());
|
|
|
- bean.setNoticeId(entity.getNoticeId());
|
|
|
- bean.setNoticeReceiverRuleType(entity.getNoticeReceiverRuleType());
|
|
|
- bean.setRootOrgId(entity.getRootOrgId());
|
|
|
- beanList.add(bean);
|
|
|
- }
|
|
|
- resp.setList(beanList);
|
|
|
+ if (progressEntityList == null || progressEntityList.isEmpty()) {
|
|
|
+ return resp;
|
|
|
}
|
|
|
+ List<NoticeRulePublishProgressBean> beanList = new ArrayList<>();
|
|
|
+ for (NoticeRulePublishProgressEntity entity : progressEntityList) {
|
|
|
+ NoticeRulePublishProgressBean bean = new NoticeRulePublishProgressBean();
|
|
|
+ bean.setId(entity.getId());
|
|
|
+ bean.setMaxCommonUserId(entity.getMaxCommonUserId());
|
|
|
+ bean.setMaxStudentId(entity.getMaxStudentId());
|
|
|
+ bean.setNoticeId(entity.getNoticeId());
|
|
|
+ bean.setNoticeReceiverRuleType(entity.getNoticeReceiverRuleType());
|
|
|
+ bean.setRootOrgId(entity.getRootOrgId());
|
|
|
+ beanList.add(bean);
|
|
|
+ }
|
|
|
+ resp.setList(beanList);
|
|
|
return resp;
|
|
|
}
|
|
|
|
|
|
@ApiOperation(value = "处理待发布和发布中的数据")
|
|
|
@PostMapping("disposePublishingUserNotice")
|
|
|
@Override
|
|
|
- public DisposePublishingUserNoticeResp disposePublishingUserNotice(@RequestBody DisposePublishingUserNoticeReq req) {
|
|
|
- DisposePublishingUserNoticeResp resp = new DisposePublishingUserNoticeResp();
|
|
|
+ public DisposePublishingUserNoticeResp disposePublishingUserNotice(@RequestBody DisposePublishingUserNoticeReq
|
|
|
+ req) {
|
|
|
NoticeRulePublishProgressBean processBean = req.getNoticeRulePublishProgress();
|
|
|
+
|
|
|
NoticeRulePublishProgressEntity processEntity = new NoticeRulePublishProgressEntity();
|
|
|
processEntity.setId(processBean.getId());
|
|
|
processEntity.setMaxCommonUserId(processBean.getMaxCommonUserId());
|
|
@@ -74,9 +76,10 @@ public class NoticeCloudServiceProvider extends ControllerSupport implements Not
|
|
|
processEntity.setNoticeId(processBean.getNoticeId());
|
|
|
processEntity.setNoticeReceiverRuleType(processBean.getNoticeReceiverRuleType());
|
|
|
processEntity.setRootOrgId(processBean.getRootOrgId());
|
|
|
- Long nextUserId = noticeService.disposePublishingUserNotice(req.getStartUserId(),processEntity);
|
|
|
|
|
|
+ Long nextUserId = noticeService.disposePublishingUserNotice(req.getStartUserId(), processEntity);
|
|
|
|
|
|
+ DisposePublishingUserNoticeResp resp = new DisposePublishingUserNoticeResp();
|
|
|
resp.setNextUserId(nextUserId);
|
|
|
return resp;
|
|
|
}
|
|
@@ -92,7 +95,7 @@ public class NoticeCloudServiceProvider extends ControllerSupport implements Not
|
|
|
@PostMapping("updateNoticeStatus")
|
|
|
@Override
|
|
|
public void updateNoticeStatus(@RequestBody UpdateNoticeStatusReq updateNoticeStatusReq) {
|
|
|
- noticeService.updateNoticeStatus(updateNoticeStatusReq.getNoticeId(),updateNoticeStatusReq.getNoticeStatus());
|
|
|
+ noticeService.updateNoticeStatus(updateNoticeStatusReq.getNoticeId(), updateNoticeStatusReq.getNoticeStatus());
|
|
|
}
|
|
|
|
|
|
}
|