| 
					
				 | 
			
			
				@@ -152,7 +152,7 @@ public class PayBillToolUtil { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 isZFQZ = false; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             if(bbh>=1 && bbh!=fkcs){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                errMsg.append("单据号:").append(billNum).append(",付款单版本号有误,请检查数据,或联系管理员~\r\n"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                errMsg.append("单据号:").append(billNum).append(",付款单未调整,请调整数据,或点击重付~\r\n"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 isZFQZ = false; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             if(payBillEntity.getDynamicObject("payeracctbank")==null) { 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -188,12 +188,18 @@ public class PayBillToolUtil { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 errMsg.append("错误号:").append("XXXXXXX"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 errMsg.append(",错误原因:").append("接口无法连通,未获取到返回结果"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 errMsg.append("\r\n"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            }else if(cbsReturnJson.getJSONObject("Message")==null){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                isSuccess = false; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                errMsg.append("单据号:").append(billNum).append(",推送支付前置失败,"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                errMsg.append("错误号:").append("DDDDDD1"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                errMsg.append(",错误原因:").append("接口已连通,但未获取到返回结果"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                errMsg.append("\r\n"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             }else{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 JSONObject bodyinfo = cbsReturnJson.getJSONObject("Message").getJSONObject("Body"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 if(bodyinfo==null){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     isSuccess = false; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     errMsg.append("单据号:").append(billNum).append(",推送支付前置失败,"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                    errMsg.append("错误号:").append("DDDDDDD"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    errMsg.append("错误号:").append("DDDDDDD2"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     errMsg.append(",错误原因:").append("接口已连通,但无法解析返回结果"+cbsReturnJson.toString()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     errMsg.append("\r\n"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 }else{ 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -213,12 +219,16 @@ public class PayBillToolUtil { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                             payBillEntity.set("nckd_paystatus",4);//支付失败 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                    } else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    } else {//拿到返回结果支付次数就必须加一 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                         isSuccess = false; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                         errMsg.append("单据号:").append(billNum).append(",推送支付前置失败,"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                         errMsg.append("错误号:").append(errcode); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                         errMsg.append(",错误原因:").append(bodyinfo.getString("errormsg")); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                         errMsg.append("\r\n"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        payBillEntity.set("nckd_fkcs", fkcs+1);//付款次数+1 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        payBillEntity.set("nckd_paystatus",4);//支付失败 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        payBillEntity.set("nckd_sbyy",bodyinfo.getString("errormsg"));//错误信息 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        SaveServiceHelper.update(new DynamicObject[]{payBillEntity}); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 } 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -245,6 +255,8 @@ public class PayBillToolUtil { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             logInfo.set("nckd_payid",payBillEntity.getPkValue()+""); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             logInfo.set("nckd_qqbw_tag",qqbw); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             logInfo.set("nckd_fhbw_tag",fhbw); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            logInfo.set("nckd_redate",new Date()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             logInfo.set("nckd_djlx","1"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             OperationServiceHelper.executeOperate("save","nckd_zfjkdyrz",new DynamicObject[]{logInfo}); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 |