| 
						
						
							
								
							
						
						
					 | 
				
				 | 
				
					@ -2,7 +2,6 @@ package com.epmet.service.impl; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					import com.alibaba.fastjson.JSON; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					import com.epmet.commons.tools.constant.NumConstant; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					import com.epmet.commons.tools.constant.StrConstant; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					import com.epmet.commons.tools.exception.EpmetErrorCode; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					import com.epmet.commons.tools.exception.RenException; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					import com.epmet.commons.tools.security.dto.TokenDto; | 
				
			
			
		
	
	
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
				
				 | 
				
					@ -281,7 +280,10 @@ public class UserBadgeServiceImpl implements UserBadgeService { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        //TODO 站内信发送
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        String badgeName = badgeDao.selectBadgeName(form.getCustomerId(), form.getBadgeId()); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        String msg = String.format(BadgeConstant.MESSAGE_CONTENT, userBaseInfoResultDTOS.get(NumConstant.ZERO).getDistrict().concat(userBaseInfoResultDTOS.get(NumConstant.ZERO).getRealName()), badgeName); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        sendMessage(BadgeConstant.AUTH_TITLE,msg,form.getGridId(),form.getUserId(),form.getCustomerId(), UserMessageTypeConstant.BADGE_AUTH_APPLY); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        // 记录待审核id,和消息类型
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        sendMessage(BadgeConstant.AUTH_TITLE,msg,form.getGridId(),form.getUserId(),form.getCustomerId(), | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                UserMessageTypeConstant.BADGE_AUTH_APPLY, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                form.getId()); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        return new Result(); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    } | 
				
			
			
		
	
	
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
				
				 | 
				
					@ -442,7 +444,7 @@ public class UserBadgeServiceImpl implements UserBadgeService { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					     * @author zxc | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					     * @date 2020/11/19 上午9:16 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					     */ | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    public void sendMessage(String title,String msg,String gridId,String userId,String customerId,String messageType){ | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    public void sendMessage(String title,String msg,String gridId,String userId,String customerId,String messageType,String userBadgeCertificateRecordId){ | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        //1.查询加入当前网格下的人员 customer_staff_grid
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        CommonGridIdFormDTO commonGridIdFormDTO = new CommonGridIdFormDTO(); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        commonGridIdFormDTO.setGridId(gridId); | 
				
			
			
		
	
	
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
				
				 | 
				
					@ -476,8 +478,7 @@ public class UserBadgeServiceImpl implements UserBadgeService { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                    //21.09.10:记录消息类型和对应的业务id
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                    msgObj.setMessageType(messageType); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                    //todo
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                    msgObj.setTargetId(StrConstant.EPMETY_STR); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                    msgObj.setTargetId(userBadgeCertificateRecordId); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                    msgList.add(msgObj); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                    //微信订阅
 | 
				
			
			
		
	
	
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
				
				 | 
				
					
  |