|  | @ -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);
 | 
	
	
		
			
				|  | @ -461,13 +506,15 @@ public class YkyyPrescriptionService extends BaseJpaService<WlyyPrescriptionDO,
 | 
	
		
			
				|  |  |             JSONArray rs = new JSONArray();
 | 
	
		
			
				|  |  |             if(res !=null){
 | 
	
		
			
				|  |  |                 for (int i =0;i<res.size();i++){
 | 
	
		
			
				|  |  |                     JSONObject object = (JSONObject) res.get(i);
 | 
	
		
			
				|  |  |                     JSONObject jsonObject = new JSONObject();
 | 
	
		
			
				|  |  |                     jsonObject.put("PAT_NO",jsonObject.get("pat_no"));
 | 
	
		
			
				|  |  |                     jsonObject.put("CARD_NO",jsonObject.get("card_no"));
 | 
	
		
			
				|  |  |                     jsonObject.put("OP_DATE",jsonObject.get("op_date"));
 | 
	
		
			
				|  |  |                     jsonObject.put("CARD_STAT",jsonObject.get("card_stat"));
 | 
	
		
			
				|  |  |                     jsonObject.put("CARD_TYPE",jsonObject.get("card_type"));
 | 
	
		
			
				|  |  |                     jsonObject.put("CARD_TYPE_NAME",jsonObject.get("card_type_name"));
 | 
	
		
			
				|  |  |                     jsonObject.put("PAT_NO",object.get("pat_no"));
 | 
	
		
			
				|  |  |                     jsonObject.put("CARD_NO",object.get("card_no"));
 | 
	
		
			
				|  |  |                     jsonObject.put("OP_DATE",object.get("op_date"));
 | 
	
		
			
				|  |  |                     jsonObject.put("CARD_STAT",object.get("card_stat"));
 | 
	
		
			
				|  |  |                     jsonObject.put("CARD_TYPE",object.get("card_type"));
 | 
	
		
			
				|  |  |                     jsonObject.put("CARD_TYPE_NAME",object.get("card_type_name"));
 | 
	
		
			
				|  |  |                     rs.add(jsonObject);
 | 
	
		
			
				|  |  |                 }
 | 
	
		
			
				|  |  |             }
 | 
	
		
			
				|  |  |             return rs;
 |