|  | @ -676,16 +676,21 @@ public class PatientConsultEndpoint extends EnvelopRestEndpoint {
 | 
	
		
			
				|  |  | 				if (org.apache.commons.lang3.StringUtils.isNoneBlank(outpatientDO.getCardNo())) {
 | 
	
		
			
				|  |  | 					cardNo = outpatientDO.getCardNo();
 | 
	
		
			
				|  |  | 				}
 | 
	
		
			
				|  |  | 				String free = 0+"";
 | 
	
		
			
				|  |  | 				String date=DateUtil.dateToStr(outpatientDO.getRegisterDate(), "yyyyMMddHHmmss");
 | 
	
		
			
				|  |  | 				net.sf.json.JSONObject object =entranceService.BS15054(patientMappingDO.getMappingCode(),outpatientDO.getRealOrder(),false);
 | 
	
		
			
				|  |  | 				net.sf.json.JSONObject res = object.getJSONObject("resquest");
 | 
	
		
			
				|  |  | 				logger.info("获取待结算数据 res: " + res.toString());
 | 
	
		
			
				|  |  | 				String rsCode = res.getString("@RESULT");
 | 
	
		
			
				|  |  | 				String free= 0+"";
 | 
	
		
			
				|  |  | 				if ("0".equals(rsCode)) {
 | 
	
		
			
				|  |  | 					if (res.getString("@settle_flag").equalsIgnoreCase("N")){
 | 
	
		
			
				|  |  | 						free = res.getString("@total_charge");
 | 
	
		
			
				|  |  | 				if (org.apache.commons.lang3.StringUtils.isNoneBlank(outpatientDO.getRealOrder())){
 | 
	
		
			
				|  |  | 					net.sf.json.JSONObject object =entranceService.BS15054(patientMappingDO.getMappingCode(),outpatientDO.getRealOrder(),false);
 | 
	
		
			
				|  |  | 					if(object!=null){
 | 
	
		
			
				|  |  | 						net.sf.json.JSONObject res = object.getJSONObject("resquest");
 | 
	
		
			
				|  |  | 						String rsCode = res.getString("@RESULT");
 | 
	
		
			
				|  |  | 						if ("0".equals(rsCode)) {
 | 
	
		
			
				|  |  | 							if (res.getString("@settle_flag").equalsIgnoreCase("N")){
 | 
	
		
			
				|  |  | 								free = res.getString("@total_charge");
 | 
	
		
			
				|  |  | 							}
 | 
	
		
			
				|  |  | 						}
 | 
	
		
			
				|  |  | 						logger.info("获取待结算数据 res: " + res.toString());
 | 
	
		
			
				|  |  | 					}
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  | 				}
 | 
	
		
			
				|  |  | 				if (!free.equalsIgnoreCase("0")){
 | 
	
		
			
				|  |  | 					ylzPayService.msgPush("01", cardNo, "01", patientDO.getMobile(), "00", userNo, userName, idcard, outpatientDO.getXtgzh(), outpatientDO.getDeptName(), outpatientDO.getDoctorName(), date, free, "1");
 |