| 
					
				 | 
			
			
				@ -308,7 +308,34 @@ public class YkyyPrescriptionService extends BaseJpaService<WlyyPrescriptionDO, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     PRIMARY KEY (`id`), 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    public JSONArray getDrugDictionary(String chargeCode, String pyKey, String winNo, String groupNo) throws Exception { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        JSONArray mapList = ykyyEntranceService.findYkYpxx(chargeCode, null, null, pyKey); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        JSONArray mapList = new JSONArray(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        if (demoFlag){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            JSONObject jsonObject = new JSONObject(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            jsonObject.put("ypcd","400"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            jsonObject.put("ypjl",0.5); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            jsonObject.put("yfzf",0); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            jsonObject.put("kcsl",0); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            jsonObject.put("jldw","mg"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            jsonObject.put("lsjg",0.1); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            jsonObject.put("ypdm","0601"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            jsonObject.put("zfpb",0); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            jsonObject.put("yfgg","1ml:0.5mg"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            jsonObject.put("ypmc","维生素B12注射液"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            jsonObject.put("yfsx",null); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            jsonObject.put("fyfs",2); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            jsonObject.put("gyffmc","注射"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            jsonObject.put("jbywbz",1); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            jsonObject.put("yfbz",1); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            jsonObject.put("ybfl",null); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            jsonObject.put("yfdw","支"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            jsonObject.put("gyff",13); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            jsonObject.put("ypmc2","维生素B12注射液"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            jsonObject.put("ydyp",0); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            jsonObject.put("py_code","WSSB12ZS"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            mapList.add(jsonObject); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        }else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            mapList = ykyyEntranceService.findYkYpxx(chargeCode, null, null, pyKey); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        JSONArray array = new JSONArray(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        for (int i=0;i<mapList.size();i++){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            JSONObject map = mapList.getJSONObject(i); 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@ -345,9 +372,18 @@ public class YkyyPrescriptionService extends BaseJpaService<WlyyPrescriptionDO, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    /** 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     * 获取药品用法 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    public JSONArray getDrugUse(String drugNo, String pyKey) throws Exception { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        JSONArray mapList = ykyyEntranceService.findYpyf(pyKey); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    public JSONArray getDrugUse(String drugNo, String pyKey,boolean demoFlag) throws Exception { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        JSONArray mapList = new JSONArray(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        if (demoFlag){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            JSONObject jsonObject = new JSONObject(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            jsonObject.put("xmmc","含服"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            jsonObject.put("pydm","HF"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            jsonObject.put("ypyf",64); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            mapList.add(jsonObject); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        }else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            mapList = ykyyEntranceService.findYpyf(pyKey); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        JSONArray array = new JSONArray(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        for (int i=0;i<mapList.size();i++){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            JSONObject map = mapList.getJSONObject(i); 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@ -365,8 +401,17 @@ public class YkyyPrescriptionService extends BaseJpaService<WlyyPrescriptionDO, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     * 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     * @return 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    public JSONArray getDrugFrequency() throws Exception { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        JSONArray mapList = ykyyEntranceService.findSypc(null); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    public JSONArray getDrugFrequency(boolean demoFlag) throws Exception { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        JSONArray mapList = new JSONArray(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        if (demoFlag){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            JSONObject jsonObject = new JSONObject(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            jsonObject.put("pcmc","qd"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            jsonObject.put("pcmc1","每日一次"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            jsonObject.put("mrcs",1); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            mapList.add(jsonObject); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        }else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            mapList= ykyyEntranceService.findSypc(null); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        JSONArray array = new JSONArray(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        for (int i=0;i<mapList.size();i++){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            JSONObject map = mapList.getJSONObject(i); 
			 |