| | |
| | | @Resource |
| | | private UserService userService; |
| | | |
| | | @Resource |
| | | private CommediateTypeService commediateTypeService; |
| | | |
| | | @Override |
| | | public R pageByComEvent(ComEvent comEvent, Page pagination) { |
| | | IPage<ComEvent> list = baseMapper.pageByComEvent(comEvent, pagination); |
| | |
| | | List<ComEventRequestImageVO> comEventRequestImageVO = CopyUtil.deepCopyListObject(resourceList, ComEventRequestImageVO.class); |
| | | comEvent1.setImages(comEventRequestImageVO); |
| | | comEvent1.setIcon(userService.getUserInfoByUserId(comEvent1.getRequestUserId().toString()).getData().getImageUrl()); |
| | | ComMediateType category = commediateTypeService.getById(comEvent1.getEventCategory()); |
| | | comEvent1.setEventCategoryName(category.getName()); |
| | | }); |
| | | return R.ok(list); |
| | | } |
| | |
| | | if (comEvent.getRequestUserCommunity() != null) { |
| | | ComActDO community = comActDAO.selectById(comEvent.getRequestUserCommunity()); |
| | | comEvent.setCurrentOrgName(community.getName()); |
| | | comEvent.setCurrentOrgId(community.getCommunityId().toString()); |
| | | comEvent.setCurrentProcessType(2); |
| | | } |
| | | if (!StringUtils.isEmpty(comEvent.getCenterId())) { |
| | | ComSanshuoIndustryCenter center = comSanShuoIndustryCenterService.getById(comEvent.getCenterId()); |
| | | comEvent.setCurrentOrgName(center.getName()); |
| | | comEvent.setCurrentOrgId(center.getId().toString()); |
| | | comEvent.setCurrentProcessType(1); |
| | | } |
| | | comEvent.setUserEventStatus(2); |
| | | comEvent.setEventProcessStatus(SanShuoEventStatusEnum.UNDO.getCode()); |
| | |
| | | public R archiveRequest(ComEventArchiveVO comEventArchiveVO, LoginUserInfoVO sysUser) { |
| | | ComEvent comEvent = baseMapper.selectById(comEventArchiveVO.getId()); |
| | | if (comEvent.getEventSucceed() == 2) { |
| | | comEvent.setEventProcessStatus(6); |
| | | comEvent.setEventProcessStatus(7); |
| | | } else { |
| | | comEvent.setEventProcessStatus(5); |
| | | comEvent.setEventProcessStatus(6); |
| | | } |
| | | comEvent.setResult(comEventArchiveVO.getResult()); |
| | | baseMapper.updateById(comEvent); |