| 
						
						
							
								
							
						
						
					 | 
					@ -133,21 +133,21 @@ public class CodeServiceImpl implements CodeService { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
							codeExtDTO.setExtJson(extJson); | 
					 | 
					 | 
							codeExtDTO.setExtJson(extJson); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
							codeExtService.update(codeExtDTO); | 
					 | 
					 | 
							codeExtService.update(codeExtDTO); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					
 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
							WxMaCodeCommitReq request = ConvertUtils.sourceToTarget(formDTO, WxMaCodeCommitReq.class); | 
					 | 
					 | 
					//		WxMaCodeCommitReq request = ConvertUtils.sourceToTarget(formDTO, WxMaCodeCommitReq.class);
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
							request.setExtJson(extJson); | 
					 | 
					 | 
					//		request.setExtJson(extJson);
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
							//调用微信API上传代码
 | 
					 | 
					 | 
					//		//调用微信API上传代码
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
							WxResult wxResult = wxMaCodeService.commit(authInfo.getAuthorizerAccessToken(), request); | 
					 | 
					 | 
					//		WxResult wxResult = wxMaCodeService.commit(authInfo.getAuthorizerAccessToken(), request);
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
							//上传失败,抛出异常
 | 
					 | 
					 | 
					//		//上传失败,抛出异常
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
							if (!wxResult.success()) { | 
					 | 
					 | 
					//		if (!wxResult.success()) {
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
								saveOperation(formDTO.getCustomerId(), null, formDTO.getUserVersion(), CodeConstant.OPER_UPLOAD, wxResult.getErrorMsg()); | 
					 | 
					 | 
					//			saveOperation(formDTO.getCustomerId(), null, formDTO.getUserVersion(), CodeConstant.OPER_UPLOAD, wxResult.getErrorMsg());
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
								throw new RenException(wxResult.getErrorCode(), wxResult.getErrorMsg()); | 
					 | 
					 | 
					//			throw new RenException(wxResult.getErrorCode(), wxResult.getErrorMsg());
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
							} | 
					 | 
					 | 
					//		}
 | 
				
			
			
				
				
			
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
			
				
					 | 
					 | 
							//获取客户信息
 | 
					 | 
					 | 
							//获取客户信息
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
							CustomerDTO customerDTO = new CustomerDTO(); | 
					 | 
					 | 
							CustomerDTO customerDTO = new CustomerDTO(); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
							customerDTO.setId(formDTO.getCustomerId()); | 
					 | 
					 | 
							customerDTO.setId(formDTO.getCustomerId()); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
							PaCustomerDTO paCustomerDTO = paCustomerService.get(formDTO.getCustomerId()); | 
					 | 
					 | 
							PaCustomerDTO paCustomerDTO = paCustomerService.get(formDTO.getCustomerId()); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
							//将之前上传信息删除
 | 
					 | 
					 | 
							//将之前上传信息删除
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
							codeCustomerService.deleteCode(formDTO.getCustomerId(), formDTO.getClientType()); | 
					 | 
					 | 
					//		codeCustomerService.deleteCode(formDTO.getCustomerId(), formDTO.getClientType());
 | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					 | 
					 | 
					
 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
							//将上传信息存入表中
 | 
					 | 
					 | 
							//将上传信息存入表中
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
							CodeCustomerDTO codeCustomerDTO = ConvertUtils.sourceToTarget(formDTO, CodeCustomerDTO.class); | 
					 | 
					 | 
							CodeCustomerDTO codeCustomerDTO = ConvertUtils.sourceToTarget(formDTO, CodeCustomerDTO.class); | 
				
			
			
		
	
	
		
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
					@ -155,9 +155,9 @@ public class CodeServiceImpl implements CodeService { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
							codeCustomerDTO.setExtJson(extJson); | 
					 | 
					 | 
							codeCustomerDTO.setExtJson(extJson); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
							codeCustomerDTO.setAppId(authInfo.getAuthorizerAppid()); | 
					 | 
					 | 
							codeCustomerDTO.setAppId(authInfo.getAuthorizerAppid()); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
							codeCustomerDTO.setStatus(CodeConstant.UNAUDITED); | 
					 | 
					 | 
							codeCustomerDTO.setStatus(CodeConstant.UNAUDITED); | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
							codeCustomerService.save(codeCustomerDTO); | 
					 | 
					 | 
							String codeId = codeCustomerService.save(codeCustomerDTO); | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					 | 
					 | 
					
 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
							saveOperation(formDTO.getCustomerId(), codeCustomerDTO.getId(), formDTO.getUserVersion(), CodeConstant.OPER_UPLOAD, "上传成功"); | 
					 | 
					 | 
							saveOperation(formDTO.getCustomerId(), codeId, formDTO.getUserVersion(), CodeConstant.OPER_UPLOAD, "上传成功"); | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					 | 
					 | 
						} | 
					 | 
					 | 
						} | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					
 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
						@Override | 
					 | 
					 | 
						@Override | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
					
  |