|  | @ -2229,8 +2229,20 @@ public class XzzxEntranceService{
 | 
												
													
														
															|  |                 "   <certificate>"+key+"</certificate> " +
 |  |                 "   <certificate>"+key+"</certificate> " +
 | 
												
													
														
															|  |                 "</root>";
 |  |                 "</root>";
 | 
												
													
														
															|  | 
 |  | 
 | 
												
													
														
															|  |         String condition ="";
 |  | 
 | 
												
													
														
															|  | 
 |  | 
 | 
												
													
														
															|  | 
 |  | 
 | 
												
													
														
															|  | 
 |  |         JSONObject jsonObject = new JSONObject();
 | 
												
													
														
															|  |         if (!StringUtils.isEmpty(icCardNo)){
 |  |         if (!StringUtils.isEmpty(icCardNo)){
 | 
												
													
														
															|  | 
 |  |             jsonObject.put("icCardNo",icCardNo);
 | 
												
													
														
															|  | 
 |  |         }
 | 
												
													
														
															|  | 
 |  |         if (!StringUtils.isEmpty(his_serial)){
 | 
												
													
														
															|  | 
 |  |             jsonObject.put("his_serial",his_serial);
 | 
												
													
														
															|  | 
 |  |         }
 | 
												
													
														
															|  | 
 |  |         if (!StringUtils.isEmpty(org_code)){
 | 
												
													
														
															|  | 
 |  |             jsonObject.put("org_code",org_code);
 | 
												
													
														
															|  | 
 |  |         }
 | 
												
													
														
															|  | 
 |  |         String condition =jsonObject.toJSONString();
 | 
												
													
														
															|  | 
 |  |         /*if (!StringUtils.isEmpty(icCardNo)){
 | 
												
													
														
															|  |             condition += "<icCardNo>"+icCardNo+"</icCardNo>";
 |  |             condition += "<icCardNo>"+icCardNo+"</icCardNo>";
 | 
												
													
														
															|  |         }
 |  |         }
 | 
												
													
														
															|  |         if (!StringUtils.isEmpty(his_serial)){
 |  |         if (!StringUtils.isEmpty(his_serial)){
 | 
												
											
												
													
														
															|  | @ -2238,9 +2250,8 @@ public class XzzxEntranceService{
 | 
												
													
														
															|  |         }
 |  |         }
 | 
												
													
														
															|  |         if (!StringUtils.isEmpty(org_code)){
 |  |         if (!StringUtils.isEmpty(org_code)){
 | 
												
													
														
															|  |             condition += "<org_code>"+org_code+"</org_code>";
 |  |             condition += "<org_code>"+org_code+"</org_code>";
 | 
												
													
														
															|  |         }
 |  | 
 | 
												
													
														
															|  |         String msgBody ="<?xml version=\"1.0\" encoding=\"utf-8\"?>" +
 |  | 
 | 
												
													
														
															|  |                 "<root>"+condition+"</root>";
 |  | 
 | 
												
													
														
															|  | 
 |  |         }*/
 | 
												
													
														
															|  | 
 |  |         String msgBody =condition;
 | 
												
													
														
															|  | 
 |  | 
 | 
												
													
														
															|  |         Map<String,String> params = new HashedMap();
 |  |         Map<String,String> params = new HashedMap();
 | 
												
													
														
															|  |         params.put("msgHeader",msgHeader);
 |  |         params.put("msgHeader",msgHeader);
 | 
												
											
												
													
														
															|  | @ -2448,9 +2459,80 @@ public class XzzxEntranceService{
 | 
												
													
														
															|  |         YlzMedicalRelationDO ylzMedicalRelationDO = ylzMedicailRelationDao.findByOutpatient(his_serial);
 |  |         YlzMedicalRelationDO ylzMedicalRelationDO = ylzMedicailRelationDao.findByOutpatient(his_serial);
 | 
												
													
														
															|  | 
 |  | 
 | 
												
													
														
															|  |         String condition ="";
 |  |         String condition ="";
 | 
												
													
														
															|  | 
 |  |         JSONObject jsonObject = new JSONObject();
 | 
												
													
														
															|  |         if (ylzMedicalRelationDO!=null){
 |  |         if (ylzMedicalRelationDO!=null){
 | 
												
													
														
															|  | 
 |  | 
 | 
												
													
														
															|  |             if (!StringUtils.isEmpty(ylzMedicalRelationDO.getLogNo())){
 |  |             if (!StringUtils.isEmpty(ylzMedicalRelationDO.getLogNo())){
 | 
												
													
														
															|  | 
 |  |                 jsonObject.put("log_no",ylzMedicalRelationDO.getLogNo());
 | 
												
													
														
															|  | 
 |  |             }
 | 
												
													
														
															|  | 
 |  |             if (!StringUtils.isEmpty(icCardNo)){
 | 
												
													
														
															|  | 
 |  |                 jsonObject.put("icCardNo",icCardNo);
 | 
												
													
														
															|  | 
 |  |             }
 | 
												
													
														
															|  | 
 |  |             if (!StringUtils.isEmpty(org_code)){
 | 
												
													
														
															|  | 
 |  |                 jsonObject.put("org_code",org_code);
 | 
												
													
														
															|  | 
 |  |             }
 | 
												
													
														
															|  | 
 |  |             if (!StringUtils.isEmpty("acc_class")){
 | 
												
													
														
															|  | 
 |  |                 jsonObject.put("acc_class","acc_class");
 | 
												
													
														
															|  | 
 |  |             }
 | 
												
													
														
															|  | 
 |  |             if (!StringUtils.isEmpty(ylzMedicalRelationDO.getInsuranceSerial())){
 | 
												
													
														
															|  | 
 |  |                 jsonObject.put("insurance_serial",ylzMedicalRelationDO.getInsuranceSerial());
 | 
												
													
														
															|  | 
 |  |             }
 | 
												
													
														
															|  | 
 |  |             if (!StringUtils.isEmpty(ylzMedicalRelationDO.getBillSerial())){
 | 
												
													
														
															|  | 
 |  |                 jsonObject.put("bill_serial",ylzMedicalRelationDO.getBillSerial());
 | 
												
													
														
															|  | 
 |  |             }
 | 
												
													
														
															|  | 
 |  |             if (!StringUtils.isEmpty(ylzMedicalRelationDO.getTotalAmount())){
 | 
												
													
														
															|  | 
 |  |                 jsonObject.put("total_amount",ylzMedicalRelationDO.getTotalAmount());
 | 
												
													
														
															|  | 
 |  |             }
 | 
												
													
														
															|  | 
 |  |             if (!StringUtils.isEmpty(ylzMedicalRelationDO.getPersonCash())){
 | 
												
													
														
															|  | 
 |  |                 jsonObject.put("person_cash",ylzMedicalRelationDO.getPersonCash());
 | 
												
													
														
															|  | 
 |  |             }
 | 
												
													
														
															|  | 
 |  |             if (!StringUtils.isEmpty(ylzMedicalRelationDO.getPersonAccount())){
 | 
												
													
														
															|  | 
 |  |                 jsonObject.put("person_account",ylzMedicalRelationDO.getPersonAccount());
 | 
												
													
														
															|  | 
 |  |             }
 | 
												
													
														
															|  | 
 |  |             if (!StringUtils.isEmpty(ylzMedicalRelationDO.getFundPrice())){
 | 
												
													
														
															|  | 
 |  |                 jsonObject.put("fund_amount",ylzMedicalRelationDO.getFundPrice());
 | 
												
													
														
															|  | 
 |  |             }
 | 
												
													
														
															|  | 
 |  |             if (!StringUtils.isEmpty(ylzMedicalRelationDO.getJkzhPay())){
 | 
												
													
														
															|  | 
 |  |                 jsonObject.put("jkzh_pay",ylzMedicalRelationDO.getJkzhPay());
 | 
												
													
														
															|  | 
 |  |             }
 | 
												
													
														
															|  | 
 |  |             if (!StringUtils.isEmpty(ylzMedicalRelationDO.getOwnPay())){
 | 
												
													
														
															|  | 
 |  |                 jsonObject.put("own_pay",ylzMedicalRelationDO.getOwnPay());
 | 
												
													
														
															|  | 
 |  |             }
 | 
												
													
														
															|  | 
 |  |             if (!StringUtils.isEmpty(ylzMedicalRelationDO.getAccountBalance())){
 | 
												
													
														
															|  | 
 |  |                 jsonObject.put("account_balance",ylzMedicalRelationDO.getAccountBalance());
 | 
												
													
														
															|  | 
 |  |             }
 | 
												
													
														
															|  | 
 |  |             if (!StringUtils.isEmpty(ylzMedicalRelationDO.getHospitalizationQty())){
 | 
												
													
														
															|  | 
 |  |                 jsonObject.put("hospitalization_qty",ylzMedicalRelationDO.getHospitalizationQty());
 | 
												
													
														
															|  | 
 |  |             }
 | 
												
													
														
															|  | 
 |  |             List<YlzMedicalBillDO> ylzMedicalBillDOS = ylzMedicailBillDao.findByMedicalId(ylzMedicalRelationDO.getId());
 | 
												
													
														
															|  | 
 |  |             JSONArray fpArray = new JSONArray();
 | 
												
													
														
															|  | 
 |  |             for (YlzMedicalBillDO ylzMedicalBillDO :ylzMedicalBillDOS){
 | 
												
													
														
															|  | 
 |  |                 JSONObject fpObject = new JSONObject();
 | 
												
													
														
															|  | 
 |  |                 if (!StringUtils.isEmpty(ylzMedicalBillDO.getInvoiceType())){
 | 
												
													
														
															|  | 
 |  |                     fpObject.put("invoice_type",ylzMedicalBillDO.getInvoiceType());
 | 
												
													
														
															|  | 
 |  |                 }
 | 
												
													
														
															|  | 
 |  |                 if (!StringUtils.isEmpty(ylzMedicalBillDO.getInvoiceTypeName())){
 | 
												
													
														
															|  | 
 |  |                     fpObject.put("invoice_type_name",ylzMedicalBillDO.getInvoiceTypeName());
 | 
												
													
														
															|  | 
 |  |                 }
 | 
												
													
														
															|  | 
 |  |                 if (!StringUtils.isEmpty(ylzMedicalBillDO.getProjectPay())){
 | 
												
													
														
															|  | 
 |  |                     fpObject.put("project_pay",ylzMedicalBillDO.getProjectPay());
 | 
												
													
														
															|  | 
 |  |                 }
 | 
												
													
														
															|  | 
 |  |                 if (!StringUtils.isEmpty(ylzMedicalBillDO.getInvoicePay())){
 | 
												
													
														
															|  | 
 |  |                     fpObject.put("invoice_pay",ylzMedicalBillDO.getInvoicePay());
 | 
												
													
														
															|  | 
 |  |                 }
 | 
												
													
														
															|  | 
 |  |                 if (!StringUtils.isEmpty(ylzMedicalBillDO.getOwnPay())){
 | 
												
													
														
															|  | 
 |  |                     fpObject.put("own_pay",ylzMedicalBillDO.getOwnPay());
 | 
												
													
														
															|  | 
 |  |                 }
 | 
												
													
														
															|  | 
 |  |                 if (!StringUtils.isEmpty(ylzMedicalBillDO.getSpecialPay())){
 | 
												
													
														
															|  | 
 |  |                     fpObject.put("special_pay",ylzMedicalBillDO.getSpecialPay());
 | 
												
													
														
															|  | 
 |  |                 }
 | 
												
													
														
															|  | 
 |  |                 if (!StringUtils.isEmpty(ylzMedicalBillDO.getUninsurancePay())){
 | 
												
													
														
															|  | 
 |  |                     fpObject.put("uninsurance_pay",ylzMedicalBillDO.getUninsurancePay());
 | 
												
													
														
															|  | 
 |  |                 }
 | 
												
													
														
															|  | 
 |  |                 fpArray.add(fpObject);
 | 
												
													
														
															|  | 
 |  |             }
 | 
												
													
														
															|  | 
 |  |             jsonObject.put("fplist",fpArray);
 | 
												
													
														
															|  | 
 |  |             condition = jsonObject.toJSONString();
 | 
												
													
														
															|  | 
 |  |             /*if (!StringUtils.isEmpty(ylzMedicalRelationDO.getLogNo())){
 | 
												
													
														
															|  |                 condition += "<log_no>"+ylzMedicalRelationDO.getLogNo()+"</log_noc>";
 |  |                 condition += "<log_no>"+ylzMedicalRelationDO.getLogNo()+"</log_noc>";
 | 
												
													
														
															|  |             }
 |  |             }
 | 
												
													
														
															|  |             if (!StringUtils.isEmpty(icCardNo)){
 |  |             if (!StringUtils.isEmpty(icCardNo)){
 | 
												
											
												
													
														
															|  | @ -2517,12 +2599,11 @@ public class XzzxEntranceService{
 | 
												
													
														
															|  |                     condition += "<uninsurance_pay>"+ylzMedicalBillDO.getUninsurancePay()+"</uninsurance_pay>";
 |  |                     condition += "<uninsurance_pay>"+ylzMedicalBillDO.getUninsurancePay()+"</uninsurance_pay>";
 | 
												
													
														
															|  |                 }
 |  |                 }
 | 
												
													
														
															|  |             }
 |  |             }
 | 
												
													
														
															|  |             condition += "</fplist>";
 |  | 
 | 
												
													
														
															|  | 
 |  |             condition += "</fplist>";*/
 | 
												
													
														
															|  | 
 |  | 
 | 
												
													
														
															|  |         }
 |  |         }
 | 
												
													
														
															|  | 
 |  | 
 | 
												
													
														
															|  |         String msgBody ="<?xml version=\"1.0\" encoding=\"utf-8\"?>" +
 |  | 
 | 
												
													
														
															|  |                 "<root>"+condition+"</root>";
 |  | 
 | 
												
													
														
															|  | 
 |  |         String msgBody =condition;
 | 
												
													
														
															|  | 
 |  | 
 | 
												
													
														
															|  |         Map<String,String> params = new HashedMap();
 |  |         Map<String,String> params = new HashedMap();
 | 
												
													
														
															|  |         params.put("msgHeader",msgHeader);
 |  |         params.put("msgHeader",msgHeader);
 | 
												
											
												
													
														
															|  | @ -2550,7 +2631,7 @@ public class XzzxEntranceService{
 | 
												
													
														
															|  |                 "   <certificate>"+key+"</certificate> " +
 |  |                 "   <certificate>"+key+"</certificate> " +
 | 
												
													
														
															|  |                 "</root>";
 |  |                 "</root>";
 | 
												
													
														
															|  | 
 |  | 
 | 
												
													
														
															|  |         String condition ="";
 |  | 
 | 
												
													
														
															|  | 
 |  |         /*String condition ="";
 | 
												
													
														
															|  |         if (!StringUtils.isEmpty(icCardNo)){
 |  |         if (!StringUtils.isEmpty(icCardNo)){
 | 
												
													
														
															|  |             condition += "<icCardNo>"+icCardNo+"</icCardNo>";
 |  |             condition += "<icCardNo>"+icCardNo+"</icCardNo>";
 | 
												
													
														
															|  |         }
 |  |         }
 | 
												
											
												
													
														
															|  | @ -2559,9 +2640,19 @@ public class XzzxEntranceService{
 | 
												
													
														
															|  |         }
 |  |         }
 | 
												
													
														
															|  |         if (!StringUtils.isEmpty(org_code)){
 |  |         if (!StringUtils.isEmpty(org_code)){
 | 
												
													
														
															|  |             condition += "<org_code>"+org_code+"</org_code>";
 |  |             condition += "<org_code>"+org_code+"</org_code>";
 | 
												
													
														
															|  | 
 |  |         }*/
 | 
												
													
														
															|  | 
 |  |         JSONObject object = new JSONObject();
 | 
												
													
														
															|  | 
 |  |         if (!StringUtils.isEmpty(icCardNo)){
 | 
												
													
														
															|  | 
 |  |             object.put("icCardNo",icCardNo);
 | 
												
													
														
															|  |         }
 |  |         }
 | 
												
													
														
															|  |         String msgBody ="<?xml version=\"1.0\" encoding=\"utf-8\"?>" +
 |  | 
 | 
												
													
														
															|  |                 "<root>"+condition+"</root>";
 |  | 
 | 
												
													
														
															|  | 
 |  |         if (!StringUtils.isEmpty(his_serial)){
 | 
												
													
														
															|  | 
 |  |             object.put("his_serial",his_serial);
 | 
												
													
														
															|  | 
 |  |         }
 | 
												
													
														
															|  | 
 |  |         if (!StringUtils.isEmpty(org_code)){
 | 
												
													
														
															|  | 
 |  |             object.put("org_code",org_code);
 | 
												
													
														
															|  | 
 |  |         }
 | 
												
													
														
															|  | 
 |  |         String condition =object.toJSONString();
 | 
												
													
														
															|  | 
 |  |         String msgBody =condition;
 | 
												
													
														
															|  | 
 |  | 
 | 
												
													
														
															|  |         Map<String,String> params = new HashedMap();
 |  |         Map<String,String> params = new HashedMap();
 | 
												
													
														
															|  |         params.put("msgHeader",msgHeader);
 |  |         params.put("msgHeader",msgHeader);
 | 
												
											
												
													
														
															|  | @ -2596,9 +2687,23 @@ public class XzzxEntranceService{
 | 
												
													
														
															|  |                 "   <certificate>"+key+"</certificate> " +
 |  |                 "   <certificate>"+key+"</certificate> " +
 | 
												
													
														
															|  |                 "</root>";
 |  |                 "</root>";
 | 
												
													
														
															|  | 
 |  | 
 | 
												
													
														
															|  |         String condition ="";
 |  | 
 | 
												
													
														
															|  | 
 |  | 
 | 
												
													
														
															|  | 
 |  |         JSONObject jsonObject = new JSONObject();
 | 
												
													
														
															|  | 
 |  | 
 | 
												
													
														
															|  |         if (!StringUtils.isEmpty(sick_id)){
 |  |         if (!StringUtils.isEmpty(sick_id)){
 | 
												
													
														
															|  | 
 |  |             jsonObject.put("sick_id",sick_id);
 | 
												
													
														
															|  | 
 |  |         }
 | 
												
													
														
															|  | 
 |  |         if (!StringUtils.isEmpty(settle_no)){
 | 
												
													
														
															|  | 
 |  |             jsonObject.put("settle_no",settle_no);
 | 
												
													
														
															|  | 
 |  |         }
 | 
												
													
														
															|  | 
 |  |         if (!StringUtils.isEmpty(einvoice_code)){
 | 
												
													
														
															|  | 
 |  |             jsonObject.put("einvoice_code",einvoice_code);
 | 
												
													
														
															|  | 
 |  |         }
 | 
												
													
														
															|  | 
 |  |         if (!StringUtils.isEmpty(einvoice_number)){
 | 
												
													
														
															|  | 
 |  |             jsonObject.put("einvoice_number",einvoice_number);
 | 
												
													
														
															|  | 
 |  |         }
 | 
												
													
														
															|  | 
 |  | 
 | 
												
													
														
															|  | 
 |  |         /*if (!StringUtils.isEmpty(sick_id)){
 | 
												
													
														
															|  |             condition += "<sick_id>"+sick_id+"</sick_id>";
 |  |             condition += "<sick_id>"+sick_id+"</sick_id>";
 | 
												
													
														
															|  |         }
 |  |         }
 | 
												
													
														
															|  |         if (!StringUtils.isEmpty(settle_no)){
 |  |         if (!StringUtils.isEmpty(settle_no)){
 | 
												
											
												
													
														
															|  | @ -2609,10 +2714,9 @@ public class XzzxEntranceService{
 | 
												
													
														
															|  |         }
 |  |         }
 | 
												
													
														
															|  |         if (!StringUtils.isEmpty(einvoice_number)){
 |  |         if (!StringUtils.isEmpty(einvoice_number)){
 | 
												
													
														
															|  |             condition += "<einvoice_number>"+einvoice_number+"</einvoice_number>";
 |  |             condition += "<einvoice_number>"+einvoice_number+"</einvoice_number>";
 | 
												
													
														
															|  |         }
 |  | 
 | 
												
													
														
															|  | 
 |  |         }*/
 | 
												
													
														
															|  | 
 |  | 
 | 
												
													
														
															|  |         String msgBody ="<?xml version=\"1.0\" encoding=\"utf-8\"?>" +
 |  | 
 | 
												
													
														
															|  |                 "<root>"+condition+"</root>";
 |  | 
 | 
												
													
														
															|  | 
 |  |         String msgBody =jsonObject.toJSONString();
 | 
												
													
														
															|  | 
 |  | 
 | 
												
													
														
															|  |         Map<String,String> params = new HashedMap();
 |  |         Map<String,String> params = new HashedMap();
 | 
												
													
														
															|  |         params.put("msgHeader",msgHeader);
 |  |         params.put("msgHeader",msgHeader);
 |