You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
108 lines
8.1 KiB
108 lines
8.1 KiB
2 years ago
|
//package com.ynxbd.common.dao;
|
||
|
//
|
||
|
//import com.ynxbd.api.dao.his.QuickDrugDispenseDao;
|
||
|
//import com.ynxbd.common.bean.PayInvoiceResponseBean;
|
||
|
//import com.ynxbd.api.utils.XMLUtil;
|
||
|
//import com.ynxbd.api.config.WeChatConfig;
|
||
|
//
|
||
|
//import javax.xml.soap.SOAPException;
|
||
|
//import java.io.IOException;
|
||
|
//import java.net.MalformedURLException;
|
||
|
//
|
||
|
///**
|
||
|
// * @author 张剑峰
|
||
|
// * @version v1.0.0
|
||
|
// * @Project: 微信公众号
|
||
|
// * @date 2017年5月23日下午3:15:31
|
||
|
// * @Copyright: 2017 云南新八达科技有限公司 All rights reserved.
|
||
|
// */
|
||
|
//
|
||
|
//public class Test {
|
||
|
//
|
||
|
// public static void main(String[] args) throws MalformedURLException, SOAPException {
|
||
|
//
|
||
|
//
|
||
|
//
|
||
|
//
|
||
|
//
|
||
|
//
|
||
|
// // System.load("D:/QuickDrugDispense.dll");
|
||
|
// // Test.cLibrary test = (Test.cLibrary)
|
||
|
// // Native.loadLibrary("QuickDrugDispense", cLibrary.class);
|
||
|
// // System.out.println(test.PushPrescription(1L, true));
|
||
|
// String appID = WeChatConfig.getAppId();
|
||
|
// String mchID = WeChatConfig.getMchId();
|
||
|
// String mchKey = WeChatConfig.getMchKey();
|
||
|
//
|
||
|
// // payPackage 的商品信息
|
||
|
//// String patientId = "111";
|
||
|
//// String fee = "0.01";
|
||
|
//// double dbFee = Double.valueOf(fee);
|
||
|
//// dbFee = dbFee * 100;
|
||
|
//// int intFee = (int) dbFee;
|
||
|
//// fee = String.valueOf(intFee);
|
||
|
//// Unifiedorder unifiedorder = new Unifiedorder();
|
||
|
//// unifiedorder.setAppid(WxConfig.getAppId());
|
||
|
//// unifiedorder.setMch_id(WxConfig.getMchId());
|
||
|
//// unifiedorder.setNonce_str(UUID.randomUUID().toString().replace("-", ""));
|
||
|
//// // unifiedorder.setOpenid(user.getOpenid());
|
||
|
//// unifiedorder.setBody("ID:" + patientId + " 预约挂号");
|
||
|
//// // unifiedorder.setBody("pre-registration");
|
||
|
//// unifiedorder.setOut_trade_no(StrUtil.genTrandNo());
|
||
|
//// unifiedorder.setTotal_fee(fee);// 单位分
|
||
|
//// unifiedorder.setSpbill_create_ip("127.0.0.1");// IP
|
||
|
//// unifiedorder.setNotify_url(WxConfig.getBaseURL() + "PayMchNotifyServlet");
|
||
|
//// unifiedorder.setTrade_type("NATIVE");// JSAPI,NATIVE,APP,MWEB
|
||
|
////
|
||
|
//// UnifiedorderResult unifiedorderResult = PayMchAPI.payUnifiedorder(unifiedorder, mchKey);
|
||
|
//
|
||
|
//// WSDao dao = new WSDao();
|
||
|
//// List<String> rList = new ArrayList<>();
|
||
|
//// rList.add("33124473");
|
||
|
//// PayInvoiceResponseBean bean = dao.payInvoice("11105180", "5198477", rList, "4.8", "2020-6-15", "14:35:00", "1234", "1234", "1234");
|
||
|
//// String s = bean.getDrugInfo();
|
||
|
//// s = s.replace("<", "<");
|
||
|
//// s = s.replace(">", ">");
|
||
|
//// System.out.println(s);
|
||
|
// QuickDrugDispenseDao quickDrugDispenseDao = new QuickDrugDispenseDao();
|
||
|
// try {
|
||
|
// String s = "<?xml version=\"1.0\" encoding=\"GB2312\"?><Response><TransactionCode>4002</TransactionCode><ResponseCode>0</ResponseCode>" +
|
||
|
// "<ResponseMessage>成功</ResponseMessage><HISTransNo>471493</HISTransNo><InvoiceTransNo>1604701</InvoiceTransNo>" +
|
||
|
// "<DrugInfo><?xml version=\"1.0\" encoding=\"GB2312\"?><outpOrder><patient><windowNo></" +
|
||
|
// "windowNo><groupNo>1604701</groupNo><patientID>60325802 </patientID><patientName>" +
|
||
|
// "陈庆</patientName><patientGender>女</patientGender><patientAge>17</patientAge><identity>" +
|
||
|
// "532502200410010626</identity><insuranceType>城镇居民医保</insuranceType><chargeType>城镇居民医保</chargeType></" +
|
||
|
// "patient><prescriptions><prescription no=\"6814155\" type=\"M\" paymentDT=\"2020-11-17 15:37:28\"><outpNo>912795</" +
|
||
|
// "outpNo><visitNo>912795</visitNo><deptCode>1301</deptCode><deptName>皮肤科 </deptName" +
|
||
|
// "><doctCode>0767</doctCode><doctName>苏建发 </doctName><diagnosis>面部湿疹</diagnosis><paymentIP>IP</paymentIP><" +
|
||
|
// "paymentDT>2020-11-17 15:37:28</paymentDT><drugList><drug><drugCode>0100003667</drugCode><drugName>灭菌注射用水 </drugName" +
|
||
|
// "><drugSpec>500ml </drugSpec><firmName>山东齐都药</firmName><amount>6</amount><takeUnit>瓶 </takeUnit" +
|
||
|
// "><takeMethod>外用 每日一次 1000.000ml</takeMethod><takeType>外用 </takeType><takeNote> <" +
|
||
|
// "/takeNote><pharmacyCode>01 </pharmacyCode><sortNo>1</sortNo></drug><drug><drugCode>0100003848</drugCode><drugName>" +
|
||
|
// "马来酸氯苯那敏注射液 </drugName><drugSpec>1ml:10mg*10支 </drugSpec><firmName>湖北兴华制</firmName><amount>3</amount><takeUnit>" +
|
||
|
// "支 </takeUnit><takeMethod>外用 每日一次 10.000mg</takeMethod><takeType>外用 </takeType><takeNote> </" +
|
||
|
// "takeNote><pharmacyCode>01 </pharmacyCode><sortNo>2</sortNo></drug><drug><drugCode>0100003576</drugCode><drugName>" +
|
||
|
// "倍他米松磷酸钠注射液 </drugName><drugSpec>1ml:5.26mg(4mg)*6支 </drugSpec><firmName>遂成药业股</firmName><amount>3</amount><" +
|
||
|
// "takeUnit>支 </takeUnit><takeMethod>外用 每日一次 1.000ml</takeMethod><takeType>外用 </takeType><" +
|
||
|
// "takeNote> </takeNote><pharmacyCode>01 </pharmacyCode><sortNo>3</" +
|
||
|
// "sortNo></drug><drug><drugCode>0100001968</drugCode><drugName>依巴斯汀片 </drugName><drugSpec>10mg*7片 </" +
|
||
|
// "drugSpec><firmName>江苏联环药</firmName><amount>7</amount><takeUnit>片 </takeUnit><" +
|
||
|
// "takeMethod>口服 每晚一次 10.000mg</takeMethod><takeType>口服 </takeType><takeNote> </" +
|
||
|
// "takeNote><pharmacyCode>01 </pharmacyCode><sortNo>4</sortNo></drug><drug><drugCode>0100002119</drugCode><" +
|
||
|
// "drugName>地奈德乳膏 </drugName><drugSpec>15g:7.5mg </drugSpec><firmName>重庆华邦制</firmName><amount>1</" +
|
||
|
// "amount><takeUnit>支 </takeUnit><takeMethod>外用 每日两次 0.200g</takeMethod><takeType>外用 </takeType><" +
|
||
|
// "takeNote> </takeNote><pharmacyCode>01 </pharmacyCode><sortNo>5</sortNo></drug></drugList></" +
|
||
|
// "prescription></prescriptions></outpOrder>" +
|
||
|
// "</DrugInfo></Response>";
|
||
|
//
|
||
|
// PayInvoiceResponseBean payInvoiceResponseBean = (PayInvoiceResponseBean) XMLUtil
|
||
|
// .convertXmlStrToObject(PayInvoiceResponseBean.class, s);
|
||
|
// String drugInfo = payInvoiceResponseBean.getDrugInfo();
|
||
|
// quickDrugDispenseDao.quickDrug(drugInfo, "1604701");
|
||
|
// } catch (IOException e) {
|
||
|
// e.printStackTrace();
|
||
|
// }
|
||
|
// }
|
||
|
//
|
||
|
//}
|