|  |  | @ -31,6 +31,7 @@ import com.epmet.modules.constant.UserMessageConstant; | 
			
		
	
		
			
				
					|  |  |  | import com.epmet.modules.group.service.ResiGroupService; | 
			
		
	
		
			
				
					|  |  |  | import com.epmet.modules.member.dao.GroupLeaderTransferRecordDao; | 
			
		
	
		
			
				
					|  |  |  | import com.epmet.modules.member.entity.GroupLeaderTransferRecordEntity; | 
			
		
	
		
			
				
					|  |  |  | import com.epmet.modules.member.redis.ResiGroupMemberRedis; | 
			
		
	
		
			
				
					|  |  |  | import com.epmet.modules.member.service.GroupLeaderTransferRecordService; | 
			
		
	
		
			
				
					|  |  |  | import com.epmet.modules.member.service.ResiGroupMemberService; | 
			
		
	
		
			
				
					|  |  |  | import com.epmet.modules.utils.ModuleConstant; | 
			
		
	
	
		
			
				
					|  |  | @ -65,6 +66,8 @@ public class GroupLeaderTransferRecordServiceImpl extends BaseServiceImpl<GroupL | 
			
		
	
		
			
				
					|  |  |  |     private EpmetMessageOpenFeignClient epmetMessageOpenFeignClient; | 
			
		
	
		
			
				
					|  |  |  |     @Autowired | 
			
		
	
		
			
				
					|  |  |  |     private ResiGroupService resiGroupService; | 
			
		
	
		
			
				
					|  |  |  |     @Autowired | 
			
		
	
		
			
				
					|  |  |  |     private ResiGroupMemberRedis resiGroupMemberRedis; | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |     @Override | 
			
		
	
		
			
				
					|  |  |  |     public PageData<GroupLeaderTransferRecordDTO> page(Map<String, Object> params) { | 
			
		
	
	
		
			
				
					|  |  | @ -161,6 +164,24 @@ public class GroupLeaderTransferRecordServiceImpl extends BaseServiceImpl<GroupL | 
			
		
	
		
			
				
					|  |  |  |         insert(entity); | 
			
		
	
		
			
				
					|  |  |  |         //发送站内信
 | 
			
		
	
		
			
				
					|  |  |  |         saveUserMessage(formDTO,originalLeader.getCustomerUserId()); | 
			
		
	
		
			
				
					|  |  |  |         //新组长、原组长成员缓存更新
 | 
			
		
	
		
			
				
					|  |  |  |         this.updateGroupMemberInfo(originalLeader.getCustomerUserId(),formDTO.getNewLeaderUserId(),formDTO.getGroupId()); | 
			
		
	
		
			
				
					|  |  |  |     } | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |     /** | 
			
		
	
		
			
				
					|  |  |  |      * @return void | 
			
		
	
		
			
				
					|  |  |  |      * @param originalLeaderUserId | 
			
		
	
		
			
				
					|  |  |  |      * @param newLeaderUserId | 
			
		
	
		
			
				
					|  |  |  |      * @param groupId | 
			
		
	
		
			
				
					|  |  |  |      * @author yinzuomei | 
			
		
	
		
			
				
					|  |  |  |      * @description 先删缓存,后查(没有会查数据库同时放进缓存) | 
			
		
	
		
			
				
					|  |  |  |      * @Date 2021/3/31 10:09 | 
			
		
	
		
			
				
					|  |  |  |      **/ | 
			
		
	
		
			
				
					|  |  |  |     private void updateGroupMemberInfo(String originalLeaderUserId, String newLeaderUserId, String groupId) { | 
			
		
	
		
			
				
					|  |  |  |         resiGroupMemberRedis.deleteMemberCatche(groupId,originalLeaderUserId); | 
			
		
	
		
			
				
					|  |  |  |         resiGroupMemberRedis.deleteMemberCatche(groupId,newLeaderUserId); | 
			
		
	
		
			
				
					|  |  |  |         resiGroupMemberRedis.get(groupId,originalLeaderUserId); | 
			
		
	
		
			
				
					|  |  |  |         resiGroupMemberRedis.get(groupId,newLeaderUserId); | 
			
		
	
		
			
				
					|  |  |  |     } | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |     private void saveUserMessage(ConfirmTransferFormDTO formDTO,String originalLeaderUserId) { | 
			
		
	
	
		
			
				
					|  |  | 
 |