| 
						
						
							
								
							
						
						
					 | 
				
				 | 
				
					@ -497,4 +497,55 @@ public class IcPartyActServiceImpl extends BaseServiceImpl<IcPartyActDao, IcPart | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        } | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    } | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    /** | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					     * * pc活动列表-发布活动 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					     * pc党建日历左下角列表,点击发布 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					     * 工作端小程序点击发布 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					     * | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					     * @param userId | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					     * @param icPartyActId | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					     */ | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    @Transactional(rollbackFor = Exception.class) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    @Override | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    public void publicshIcPartyAct(String userId, String icPartyActId) { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        //谁发布的活动谁编辑
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        IcPartyActEntity icPartyActEntity = baseDao.selectById(icPartyActId); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        if (null == icPartyActEntity) { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            String msg = "未找到活动详情"; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            throw new EpmetException(EpmetErrorCode.EPMET_COMMON_OPERATION_FAIL.getCode(), msg, msg); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        } | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        if(!userId.equals(icPartyActEntity.getCreatedBy())){ | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            String msg = String.format("当前活动是%s发布的,您无权操作",icPartyActEntity.getPublishStaffName()); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            throw new EpmetException(EpmetErrorCode.EPMET_COMMON_OPERATION_FAIL.getCode(), msg, msg); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        } | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        icPartyActEntity.setIsPublish(NumConstant.ONE_STR); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        icPartyActEntity.setUpdatedBy(userId); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        baseDao.updateById(icPartyActEntity); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        //发送消息
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        PartyMeetingMessageMQMsg msg = new PartyMeetingMessageMQMsg(); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        msg.setCustomerId(icPartyActEntity.getCustomerId()); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        msg.setIcPartyActId(icPartyActEntity.getId()); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        msg.setType("publish"); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        SendMqMsgUtil.build().openFeignClient(SpringContextUtils.getBean(EpmetMessageOpenFeignClient.class)).sendRocketMqMsg(SystemMessageType.PARTY_MEETING_MESSAGE, msg); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    } | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    /** | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					     * 删除活动 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					     * | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					     * @param userId | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					     * @param icPartyActIds | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					     */ | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    @Transactional(rollbackFor = Exception.class) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    @Override | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    public void deleteIcPartyAct(String customerId,String userId, List<String> icPartyActIds) { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        if(CollectionUtils.isEmpty(icPartyActIds)){ | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            return; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        } | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        icPartyActIds.forEach(icPartyActId->{ | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            //删除活动主表和参与活动党组织关系表记录
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            baseDao.deleteIcPartyAct(customerId,userId,icPartyActId); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            icPartyActOrgDao.updateToDel(userId,icPartyActId); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        }); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    } | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					} |