| 
															
																@ -132,7 +132,8 @@ public class XzzxEntranceService{ 
															 | 
														
													
												
													
														
															| 
															 | 
															
																    private static String key="bvvsf3JA0mUXMU+mVnMaOQ=="; 
															 | 
															
															 | 
															
																    private static String key="bvvsf3JA0mUXMU+mVnMaOQ=="; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																    //发送微信模板消息 
															 | 
															
															 | 
															
																    //发送微信模板消息 
															 | 
														
													
												
													
														
															| 
															 | 
															
																    public static String sendMessageUrl ="http://172.16.100.37:8090/hospitalPortal-sms/sms/sendMessage"; 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																    /*@Value("${wechat.url}")*/ 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																    private String sendMessageUrl="http://172.16.100.37:8090/hospitalPortal-sms/sms/sendMessage"; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																    public static String entranceUrl = "http://172.16.100.240:10023/xzzx/"; 
															 | 
															
															 | 
															
																    public static String entranceUrl = "http://172.16.100.240:10023/xzzx/"; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																    public static String entranceUrlLocal = "http://localhost:10023/xzzx/"; 
															 | 
															
															 | 
															
																    public static String entranceUrlLocal = "http://localhost:10023/xzzx/"; 
															 | 
														
													
												
											
												
													
														
															 | 
															
																@ -1162,7 +1163,7 @@ public class XzzxEntranceService{ 
															 | 
														
													
												
													
														
															| 
															 | 
															
																     * @return 
															 | 
															
															 | 
															
																     * @return 
															 | 
														
													
												
													
														
															| 
															 | 
															
																     * @throws Exception 
															 | 
															
															 | 
															
																     * @throws Exception 
															 | 
														
													
												
													
														
															| 
															 | 
															
																     */ 
															 | 
															
															 | 
															
																     */ 
															 | 
														
													
												
													
														
															| 
															 | 
															
																    public String GetDrugDict(String spellCode)throws Exception{ 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																    public String GetDrugDict(String spellCode,String drugNo)throws Exception{ 
															 | 
														
													
												
													
														
															| 
															 | 
															
																        String api = "GetDrugDict"; 
															 | 
															
															 | 
															
																        String api = "GetDrugDict"; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																        String msgHeader ="<?xml version=\"1.0\" encoding=\"utf-8\"?> " + 
															 | 
															
															 | 
															
																        String msgHeader ="<?xml version=\"1.0\" encoding=\"utf-8\"?> " + 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                "<root> " + 
															 | 
															
															 | 
															
																                "<root> " + 
															 | 
														
													
												
											
												
													
														
															 | 
															
																@ -1172,9 +1173,12 @@ public class XzzxEntranceService{ 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                "   <certificate>"+key+"</certificate> " + 
															 | 
															
															 | 
															
																                "   <certificate>"+key+"</certificate> " + 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                "</root>"; 
															 | 
															
															 | 
															
																                "</root>"; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																        String condition =""; 
															 | 
															
															 | 
															
																        String condition =""; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																        if (!StringUtils.isEmpty(spellCode)){ 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																        if (!StringUtils.isEmpty(spellCode)&&!"null".equalsIgnoreCase(spellCode)){ 
															 | 
														
													
												
													
														
															| 
															 | 
															
																            condition += "<spell_code>"+spellCode+"</spell_code>"; 
															 | 
															
															 | 
															
																            condition += "<spell_code>"+spellCode+"</spell_code>"; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																        } 
															 | 
															
															 | 
															
																        } 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																        if (!StringUtils.isEmpty(drugNo)&&!"null".equalsIgnoreCase(drugNo)){ 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																            condition += "<physic_code>"+drugNo+"</physic_code>"; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																        } 
															 | 
														
													
												
													
														
															| 
															 | 
															
																        String msgBody ="<?xml version=\"1.0\" encoding=\"utf-8\"?>" + 
															 | 
															
															 | 
															
																        String msgBody ="<?xml version=\"1.0\" encoding=\"utf-8\"?>" + 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                "<root>"+condition+"</root>"; 
															 | 
															
															 | 
															
																                "<root>"+condition+"</root>"; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
											
												
													
														
															 | 
															
																@ -3057,9 +3061,9 @@ public class XzzxEntranceService{ 
															 | 
														
													
												
													
														
															| 
															 | 
															
																     * @param spellCode 拼音码 
															 | 
															
															 | 
															
																     * @param spellCode 拼音码 
															 | 
														
													
												
													
														
															| 
															 | 
															
																     * @return 
															 | 
															
															 | 
															
																     * @return 
															 | 
														
													
												
													
														
															| 
															 | 
															
																     */ 
															 | 
															
															 | 
															
																     */ 
															 | 
														
													
												
													
														
															| 
															 | 
															
																    public JSONArray selectDrugDict(String spellCode) throws Exception { 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																    public JSONArray selectDrugDict(String spellCode,String drugNo) throws Exception { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																        String response=""; 
															 | 
															
															 | 
															
																        String response=""; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																        String url = entranceUrl+"getDrugDict?spellCode="+spellCode; 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																        String url = entranceUrl+"getDrugDict?spellCode="+spellCode+"&drugNo="+drugNo; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																        response = httpClientUtil.get(url,"GBK"); 
															 | 
															
															 | 
															
																        response = httpClientUtil.get(url,"GBK"); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																        JSONObject object = JSONObject.parseObject(response); 
															 | 
															
															 | 
															
																        JSONObject object = JSONObject.parseObject(response); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																        JSONArray jsonArray = new JSONArray(); 
															 | 
															
															 | 
															
																        JSONArray jsonArray = new JSONArray(); 
															 | 
														
													
												
											
												
													
														
															 | 
															
																@ -3080,7 +3084,7 @@ public class XzzxEntranceService{ 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                object1.put("pack_size",jsonObject.getString("PACK_SPEC")); 
															 | 
															
															 | 
															
																                object1.put("pack_size",jsonObject.getString("PACK_SPEC")); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                object1.put("retprice",jsonObject.getString("RETAIL_PRICE")); 
															 | 
															
															 | 
															
																                object1.put("retprice",jsonObject.getString("RETAIL_PRICE")); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                object1.put("specification",jsonObject.getString("PHYSIC_SPEC")); 
															 | 
															
															 | 
															
																                object1.put("specification",jsonObject.getString("PHYSIC_SPEC")); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                object1.put("pack_retprice",jsonObject.getString(" ")); 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                object1.put("pack_retprice",jsonObject.getString("RETAIL_PRICE")); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                object1.put("stock_amount",jsonObject.getString("QUANTITY")); 
															 | 
															
															 | 
															
																                object1.put("stock_amount",jsonObject.getString("QUANTITY")); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                object1.put("visible_flag",jsonObject.getString("VALID_FLAG")); 
															 | 
															
															 | 
															
																                object1.put("visible_flag",jsonObject.getString("VALID_FLAG")); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                object1.put("drug_flag",jsonObject.getString("OTC_FLAG")); 
															 | 
															
															 | 
															
																                object1.put("drug_flag",jsonObject.getString("OTC_FLAG")); 
															 | 
														
													
												
											
												
													
														
															 | 
															
																@ -3091,9 +3095,12 @@ public class XzzxEntranceService{ 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                object1.put("vol_unit",""); 
															 | 
															
															 | 
															
																                object1.put("vol_unit",""); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                object1.put("mini_unit_name",jsonObject.getString("PHYSIC_UNIT")); 
															 | 
															
															 | 
															
																                object1.put("mini_unit_name",jsonObject.getString("PHYSIC_UNIT")); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                DecimalFormat df =new DecimalFormat("0.00"); 
															 | 
															
															 | 
															
																                DecimalFormat df =new DecimalFormat("0.00"); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                Double packSize=Double.parseDouble(jsonObject.get("PACK_SPEC")==null?"1":jsonObject.getString("PACK_SPEC")); 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                Double retprice=Double.parseDouble(jsonObject.get("RETAIL_PRICE")==null?"0":jsonObject.getString("RETAIL_PRICE")); 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                Double miniUnitPrice=retprice/packSize; 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                Double packSize=Double.parseDouble(jsonObject.get("PACK_SPEC").toString().equals("[]")?"1":jsonObject.getString("PACK_SPEC")); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                Double retprice=Double.parseDouble(jsonObject.get("RETAIL_PRICE").toString().equals("[]")?"0":jsonObject.getString("RETAIL_PRICE")); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                Double miniUnitPrice=0.00; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                if (0.00!=packSize){ 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                    miniUnitPrice=retprice/packSize; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                } 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                object1.put("mini_unit_price",df.format(miniUnitPrice)); 
															 | 
															
															 | 
															
																                object1.put("mini_unit_price",df.format(miniUnitPrice)); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                object1.put("pack_unit_name",jsonObject.getString("PRICE_UNIT")); 
															 | 
															
															 | 
															
																                object1.put("pack_unit_name",jsonObject.getString("PRICE_UNIT")); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                object1.put("weigh_unit_name",jsonObject.getString("DOSE_UNIT")); 
															 | 
															
															 | 
															
																                object1.put("weigh_unit_name",jsonObject.getString("DOSE_UNIT")); 
															 |