|
|
@ -130,7 +130,7 @@ public class EpdcEventsServiceImpl extends BaseServiceImpl<EpdcEventsDao, EpdcEv |
|
|
imgService.saveImages(dto.getImages(), entity.getId(), ImageConstant.TYPE_IMAGE_BIZ_EVENTS); |
|
|
imgService.saveImages(dto.getImages(), entity.getId(), ImageConstant.TYPE_IMAGE_BIZ_EVENTS); |
|
|
|
|
|
|
|
|
// 发送菜单消息-议题待回应
|
|
|
// 发送菜单消息-议题待回应
|
|
|
this.sendMenuNoticeOfEventRespond(entity.getGridId()); |
|
|
this.sendMenuNoticeOfEventRespond(entity.getGridId(), null); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@Override |
|
|
@Override |
|
|
@ -193,14 +193,14 @@ public class EpdcEventsServiceImpl extends BaseServiceImpl<EpdcEventsDao, EpdcEv |
|
|
informationFormDTO.setBusinessType(EventsNoticeConstant.NOTICE_BUSINESS_TYPE_ISSUE); |
|
|
informationFormDTO.setBusinessType(EventsNoticeConstant.NOTICE_BUSINESS_TYPE_ISSUE); |
|
|
|
|
|
|
|
|
// 发送菜单消息-议题待处理
|
|
|
// 发送菜单消息-议题待处理
|
|
|
issueService.sendIssueHandleMenuNotice(issueEntity.getGridId()); |
|
|
issueService.sendIssueHandleMenuNotice(issueEntity.getGridId(), null); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
// 发送消息
|
|
|
// 发送消息
|
|
|
newsTask.insertUserInformation(informationFormDTO); |
|
|
newsTask.insertUserInformation(informationFormDTO); |
|
|
|
|
|
|
|
|
// 发送菜单消息-议题待回应
|
|
|
// 发送菜单消息-议题待回应
|
|
|
this.sendMenuNoticeOfEventRespond(eventsEntity.getGridId()); |
|
|
this.sendMenuNoticeOfEventRespond(eventsEntity.getGridId(), null); |
|
|
return new Result(); |
|
|
return new Result(); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@ -244,20 +244,21 @@ public class EpdcEventsServiceImpl extends BaseServiceImpl<EpdcEventsDao, EpdcEv |
|
|
@Override |
|
|
@Override |
|
|
public void initMenuNotice() { |
|
|
public void initMenuNotice() { |
|
|
Long deptId = SecurityUser.getDeptId(); |
|
|
Long deptId = SecurityUser.getDeptId(); |
|
|
|
|
|
Long userId = SecurityUser.getUserId(); |
|
|
// 获取部门信息
|
|
|
// 获取部门信息
|
|
|
Result<SysDeptDTO> dtoResult = adminFeignClient.getSysDeptInfo(deptId); |
|
|
Result<SysDeptDTO> dtoResult = adminFeignClient.getSysDeptInfo(deptId); |
|
|
if (dtoResult.success()) { |
|
|
if (dtoResult.success()) { |
|
|
// 网格用户
|
|
|
// 网格用户
|
|
|
if (OrganizationTypeConstant.ORG_TYPE_GRID_PARTY.equals(dtoResult.getData().getTypeKey())) { |
|
|
if (OrganizationTypeConstant.ORG_TYPE_GRID_PARTY.equals(dtoResult.getData().getTypeKey())) { |
|
|
// 议题-待回应
|
|
|
// 议题-待回应
|
|
|
this.sendMenuNoticeOfEventRespond(deptId); |
|
|
this.sendMenuNoticeOfEventRespond(deptId, userId); |
|
|
// 议题-待处理
|
|
|
// 议题-待处理
|
|
|
issueService.sendIssueHandleMenuNotice(deptId); |
|
|
issueService.sendIssueHandleMenuNotice(deptId, userId); |
|
|
// 项目-待处理项目-网格用户
|
|
|
// 项目-待处理项目-网格用户
|
|
|
itemService.sendItemHandleMenuNotice(deptId); |
|
|
itemService.sendItemHandleMenuNotice(deptId, userId); |
|
|
} else { |
|
|
} else { |
|
|
// 项目-待处理项目-吹哨部门用户
|
|
|
// 项目-待处理项目-吹哨部门用户
|
|
|
itemService.sendWhistlingDeptItemHandleMenuNotice(Collections.singletonList(deptId)); |
|
|
itemService.sendWhistlingDeptItemHandleMenuNotice(Collections.singletonList(deptId), userId); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
@ -332,7 +333,8 @@ public class EpdcEventsServiceImpl extends BaseServiceImpl<EpdcEventsDao, EpdcEv |
|
|
* @author liuchuang |
|
|
* @author liuchuang |
|
|
* @since 2019/10/29 18:05 |
|
|
* @since 2019/10/29 18:05 |
|
|
*/ |
|
|
*/ |
|
|
private void sendMenuNoticeOfEventRespond(Long deptId) { |
|
|
@Override |
|
|
|
|
|
public void sendMenuNoticeOfEventRespond(Long deptId, Long userId) { |
|
|
// 获取部门待审核事件数量
|
|
|
// 获取部门待审核事件数量
|
|
|
int num = baseDao.selectCountOfDeptNotice(deptId, EventIssueItemState.EVENT_PENDING_REVIEW); |
|
|
int num = baseDao.selectCountOfDeptNotice(deptId, EventIssueItemState.EVENT_PENDING_REVIEW); |
|
|
MenuNoticeDTO menuNoticeDTO = new MenuNoticeDTO(); |
|
|
MenuNoticeDTO menuNoticeDTO = new MenuNoticeDTO(); |
|
|
@ -340,6 +342,6 @@ public class EpdcEventsServiceImpl extends BaseServiceImpl<EpdcEventsDao, EpdcEv |
|
|
menuNoticeDTO.setNum(num); |
|
|
menuNoticeDTO.setNum(num); |
|
|
menuNoticeDTO.setMenuCode(MenuCodeConstant.PARTY_GROUP_DISCUSSION_EVENT_RESPOND); |
|
|
menuNoticeDTO.setMenuCode(MenuCodeConstant.PARTY_GROUP_DISCUSSION_EVENT_RESPOND); |
|
|
// 发送菜单消息通知
|
|
|
// 发送菜单消息通知
|
|
|
newsTask.eventMenuNotice(menuNoticeDTO); |
|
|
newsTask.eventMenuNotice(menuNoticeDTO, userId); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|