|  | @ -2599,6 +2599,23 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
 | 
	
		
			
				|  |  |                     ins.setCreateTime(new Date());
 | 
	
		
			
				|  |  |                     ins.setPrescriptionId(prescription.getId());
 | 
	
		
			
				|  |  |                     ins.setOutpatientId(outPatientId);
 | 
	
		
			
				|  |  |                     if ("xm_ykyy_wx".equalsIgnoreCase(wechatId)){
 | 
	
		
			
				|  |  |                         String code = ins.getCode();
 | 
	
		
			
				|  |  |                         com.alibaba.fastjson.JSONArray jsonArray = ykyyEntranceService.findZlxm("",code,"","","");
 | 
	
		
			
				|  |  |                         if (jsonArray!=null&&jsonArray.size()>0){
 | 
	
		
			
				|  |  |                             com.alibaba.fastjson.JSONObject deptobject = jsonArray.getJSONObject(0);
 | 
	
		
			
				|  |  |                             String deptNo = deptobject.getString("dept");
 | 
	
		
			
				|  |  |                             ins.setDept(deptNo);
 | 
	
		
			
				|  |  |                             String yqdm = deptobject.getString("yqdm");
 | 
	
		
			
				|  |  |                             if ("1001".equalsIgnoreCase(yqdm)){
 | 
	
		
			
				|  |  |                                 ins.setOrgCode(yqdm);
 | 
	
		
			
				|  |  |                                 ins.setOrgName("思北院区");
 | 
	
		
			
				|  |  |                             }else{
 | 
	
		
			
				|  |  |                                 ins.setOrgCode(yqdm);
 | 
	
		
			
				|  |  |                                 ins.setOrgName("五缘院区");
 | 
	
		
			
				|  |  |                             }
 | 
	
		
			
				|  |  |                         }
 | 
	
		
			
				|  |  |                     }
 | 
	
		
			
				|  |  |                     System.out.println("____outpatientId=="+outPatientId);
 | 
	
		
			
				|  |  |                 }
 | 
	
		
			
				|  |  |                 //保存检查检验。
 | 
	
	
		
			
				|  | @ -5525,7 +5542,7 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
 | 
	
		
			
				|  |  |         }
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |         sql += " WHERE  1=1 ";
 | 
	
		
			
				|  |  |         sql += " WHERE  1=1 and h.del = '1' ";
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |         if (StringUtils.isNotBlank(chargType)) {
 | 
	
	
		
			
				|  | @ -11513,7 +11530,7 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
 | 
	
		
			
				|  |  |             }
 | 
	
		
			
				|  |  |         }
 | 
	
		
			
				|  |  |         logger.info("appKey"+appKey+"======"+"masterSecret"+masterSecret);
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |         logger.info("addExtra++++"+extras.toString());
 | 
	
		
			
				|  |  |         JPushClient jPushClient = new JPushClient(masterSecret, appKey, null, ClientConfig.getInstance());
 | 
	
		
			
				|  |  |         PushPayload payload = PushPayload.newBuilder()
 | 
	
		
			
				|  |  |                 .setPlatform(Platform.all())
 | 
	
	
		
			
				|  | @ -11681,6 +11698,7 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
 | 
	
		
			
				|  |  |                     title=baseJpushTemplateDO.getPushHeader().replace("{{咨询类型}}","家医咨询");
 | 
	
		
			
				|  |  |                 }
 | 
	
		
			
				|  |  |             }
 | 
	
		
			
				|  |  |             isDoctor="1";
 | 
	
		
			
				|  |  |             userId = wlyyOutpatientDO.getConsumer();
 | 
	
		
			
				|  |  |             jsonObject.put("type",12);
 | 
	
		
			
				|  |  |             jsonObject.put("id",wlyyOutpatientDO.getId());
 |