|  |  | @ -152,7 +152,7 @@ public class GovLoginServiceImpl implements GovLoginService { | 
			
		
	
		
			
				
					|  |  |  |         } | 
			
		
	
		
			
				
					|  |  |  |         StaffLatestAgencyResultDTO staffLatestAgencyResultDTO = latestStaffWechat.getData(); | 
			
		
	
		
			
				
					|  |  |  |         //2、记录staff_wechat
 | 
			
		
	
		
			
				
					|  |  |  |         this.savestaffwechat(staffLatestAgencyResultDTO.getStaffId(), wxMaJscode2SessionResult.getOpenid()); | 
			
		
	
		
			
				
					|  |  |  |         this.savestaffwechat(staffLatestAgencyResultDTO.getStaffId(), wxMaJscode2SessionResult.getOpenid(), staffLatestAgencyResultDTO.getCustomerId()); | 
			
		
	
		
			
				
					|  |  |  |         //3、记录登录日志
 | 
			
		
	
		
			
				
					|  |  |  |         this.saveStaffLoginRecord(staffLatestAgencyResultDTO); | 
			
		
	
		
			
				
					|  |  |  |         //4、获取用户token
 | 
			
		
	
	
		
			
				
					|  |  | @ -276,7 +276,7 @@ public class GovLoginServiceImpl implements GovLoginService { | 
			
		
	
		
			
				
					|  |  |  |         WxMaJscode2SessionResult wxMaJscode2SessionResult = loginService.getWxMaUser(LoginConstant.APP_GOV, formDTO.getWxCode(), formDTO.getAppId()); | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |         //3、记录staff_wechat,并记录用户激活状态,激活时间
 | 
			
		
	
		
			
				
					|  |  |  |         this.savestaffwechat(customerStaff.getUserId(), wxMaJscode2SessionResult.getOpenid()); | 
			
		
	
		
			
				
					|  |  |  |         this.savestaffwechat(customerStaff.getUserId(), wxMaJscode2SessionResult.getOpenid(), formDTO.getCustomerId()); | 
			
		
	
		
			
				
					|  |  |  |         //4、记录登录日志
 | 
			
		
	
		
			
				
					|  |  |  |         this.saveStaffLoginRecord(formDTO, customerStaff.getUserId(), wxMaJscode2SessionResult.getOpenid()); | 
			
		
	
		
			
				
					|  |  |  |         //5.1、获取用户token
 | 
			
		
	
	
		
			
				
					|  |  | @ -401,10 +401,11 @@ public class GovLoginServiceImpl implements GovLoginService { | 
			
		
	
		
			
				
					|  |  |  |      * @Description 保存微信和当前登录用户关系 | 
			
		
	
		
			
				
					|  |  |  |      * @Date 2020/4/18 22:54 | 
			
		
	
		
			
				
					|  |  |  |      **/ | 
			
		
	
		
			
				
					|  |  |  |     private Result savestaffwechat(String userId, String openid) { | 
			
		
	
		
			
				
					|  |  |  |     private Result savestaffwechat(String userId, String openid, String customerId) { | 
			
		
	
		
			
				
					|  |  |  |         StaffWechatFormDTO staffWechatFormDTO = new StaffWechatFormDTO(); | 
			
		
	
		
			
				
					|  |  |  |         staffWechatFormDTO.setUserId(userId); | 
			
		
	
		
			
				
					|  |  |  |         staffWechatFormDTO.setWxOpenId(openid); | 
			
		
	
		
			
				
					|  |  |  |         staffWechatFormDTO.setCustomerId(customerId); | 
			
		
	
		
			
				
					|  |  |  |         return epmetUserFeignClient.saveStaffWechat(staffWechatFormDTO); | 
			
		
	
		
			
				
					|  |  |  |     } | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
	
		
			
				
					|  |  | 
 |