|  | @ -2630,8 +2630,19 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
 | 
	
		
			
				|  |  |                         ykyySMSService.sendSmsByTempcode("prescription_remind", outpatientDO, wlyyPrescriptionDO, "");
 | 
	
		
			
				|  |  |                     }
 | 
	
		
			
				|  |  |                 }
 | 
	
		
			
				|  |  |                 if (StringUtils.isNotBlank(inspectionJson)) {
 | 
	
		
			
				|  |  |                     if (StringUtils.isNotBlank(infoJsons)) {
 | 
	
		
			
				|  |  |                         List<WlyyPrescriptionInfoDO> infoDOs = (List<WlyyPrescriptionInfoDO>) com.alibaba.fastjson.JSONArray.parseArray(infoJsons, WlyyPrescriptionInfoDO.class);
 | 
	
		
			
				|  |  |                         if (infoDOs != null && infoDOs.size() > 0) {
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |                         } else {
 | 
	
		
			
				|  |  |                             prescription.setStatus(20);
 | 
	
		
			
				|  |  |                         }
 | 
	
		
			
				|  |  |                     } else {
 | 
	
		
			
				|  |  |                         prescription.setStatus(20);
 | 
	
		
			
				|  |  |                     }
 | 
	
		
			
				|  |  |                 }
 | 
	
		
			
				|  |  |                 prescriptionDao.save(prescription);
 | 
	
		
			
				|  |  |                 result.put("code", 1);
 | 
	
		
			
				|  |  |                 result.put("mes", "诊断完成");
 | 
	
		
			
				|  |  |                 result.put("prescriptionId",prescription.getId());
 | 
	
	
		
			
				|  | @ -4398,7 +4409,7 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
 | 
	
		
			
				|  |  |                 newConfig.setUrl(newConfig.getUrl() + "" + outpatientDO.getId());
 | 
	
		
			
				|  |  |                 logger.info("眼科微信消息模板推送 医生拒诊开始");
 | 
	
		
			
				|  |  |                 logger.info("极光消息推送 医生拒诊开始");
 | 
	
		
			
				|  |  |                 wxTempalteJPush("cancel_remind",outpatientDO,null,"","","","");
 | 
	
		
			
				|  |  |                 //wxTempalteJPush("cancel_remind",outpatientDO,null,"","","","");
 | 
	
		
			
				|  |  |                 /*String res = wxTempalteJPush(outpatientDO.getConsumer(),newConfig.getFirst(),"医生拒绝了你的问诊",type,outpatientDO.getId());
 | 
	
		
			
				|  |  |                 logger.info("JPUSH res==="+res);*/
 | 
	
		
			
				|  |  |             }else if("outPatientTimeOutRemind".equals(titelType)){
 | 
	
	
		
			
				|  | @ -4435,7 +4446,7 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
 | 
	
		
			
				|  |  |                 newConfig.setUrl(newConfig.getUrl() + "" + outpatientDO.getId());
 | 
	
		
			
				|  |  |                 logger.info("眼科微信消息模板推送 就诊支付提醒开始");
 | 
	
		
			
				|  |  |                 logger.info("极光消息推送 就诊支付提醒开始");
 | 
	
		
			
				|  |  |                 wxTempalteJPush("outpatient_pay",outpatientDO,null,"","","","");
 | 
	
		
			
				|  |  |                 //wxTempalteJPush("outpatient_pay",outpatientDO,null,"","","","");
 | 
	
		
			
				|  |  |             } else if ("prescriptionPayRemind".equalsIgnoreCase(titelType)) {
 | 
	
		
			
				|  |  |                 //处方开具支付提醒
 | 
	
		
			
				|  |  |                 scene = "cfzfts";
 | 
	
	
		
			
				|  | @ -4449,7 +4460,7 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
 | 
	
		
			
				|  |  |                 newConfig.setUrl(newConfig.getUrl() + "" + outpatientDO.getId());
 | 
	
		
			
				|  |  |                 logger.info("眼科微信消息模板推送 处方支付提醒开始");
 | 
	
		
			
				|  |  |                 logger.info("极光消息推送 医生拒诊开始");
 | 
	
		
			
				|  |  |                 wxTempalteJPush("prescription_pay",outpatientDO,null,"","","","");
 | 
	
		
			
				|  |  |                 //wxTempalteJPush("prescription_pay",outpatientDO,null,"","","","");
 | 
	
		
			
				|  |  |             }else if ("videoOrderRemind".equalsIgnoreCase(titelType)) {
 | 
	
		
			
				|  |  |                 //视频问诊预约提醒
 | 
	
		
			
				|  |  |                 scene = "spwzyytx";
 | 
	
	
		
			
				|  | @ -4480,7 +4491,7 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
 | 
	
		
			
				|  |  |                 //发起微信消息模板推送
 | 
	
		
			
				|  |  |                 newConfig.setUrl(newConfig.getUrl() + "" + consultTeam.getConsult());
 | 
	
		
			
				|  |  |                 logger.info("极光消息推送 医生拒诊开始");
 | 
	
		
			
				|  |  |                 wxTempalteJPush("give_score",outpatientDO,consultTeam,"","","","");
 | 
	
		
			
				|  |  |                 //wxTempalteJPush("give_score",outpatientDO,consultTeam,"","","","");
 | 
	
		
			
				|  |  |                 logger.info("眼科微信消息模板推送 服务评价提醒开始");
 | 
	
		
			
				|  |  |             } else if ("systemCancelRemind".equalsIgnoreCase(titelType)) {
 | 
	
		
			
				|  |  |                 //系统24小时取消复诊提醒
 | 
	
	
		
			
				|  | @ -4677,7 +4688,7 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
 | 
	
		
			
				|  |  |                 wxPushLogDao.save(wxPushLogDO);
 | 
	
		
			
				|  |  |             }
 | 
	
		
			
				|  |  |             //发送极光消息推送
 | 
	
		
			
				|  |  |             wxTempalteJPush("logistics_remind",wlyyOutpatientDO,null,drugName,mailNo,remindMsg,prescriptionId);
 | 
	
		
			
				|  |  |            // wxTempalteJPush("logistics_remind",wlyyOutpatientDO,null,drugName,mailNo,remindMsg,prescriptionId);
 | 
	
		
			
				|  |  |         }else {
 | 
	
		
			
				|  |  |             first = "您好,您的处方订单物流"+remindMsg;
 | 
	
		
			
				|  |  |             contentMsg = "患者"+patienName+"的处方药品订单,"+drugName+"等,当前"+remindMsg+"。物流方:「顺丰快递」,物流单号:"+mailNo+"。";
 | 
	
	
		
			
				|  | @ -8501,6 +8512,14 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
 | 
	
		
			
				|  |  |             wlyyPrescriptionDO.setCheckReason(reason);
 | 
	
		
			
				|  |  |             if ("xm_ykyy_wx".equalsIgnoreCase(wxId)){
 | 
	
		
			
				|  |  |                 wlyyPrescriptionDO.setStatus(10);
 | 
	
		
			
				|  |  |                 List<WlyyPrescriptionInfoDO> list = prescriptionInfoDao.findByPrescriptionId(wlyyPrescriptionDO.getId(),1);
 | 
	
		
			
				|  |  |                 List<WlyyInspectionDO> inspectionDOS = wlyyInspectionDao.findByPrescriptionId(wlyyPrescriptionDO.getId(),1);
 | 
	
		
			
				|  |  |                 if (list!=null&&list.size()>0){
 | 
	
		
			
				|  |  |                     wlyyPrescriptionDO.setStatus(10);
 | 
	
		
			
				|  |  |                     if(inspectionDOS!=null&&inspectionDOS.size()>0){
 | 
	
		
			
				|  |  |                         wlyyPrescriptionDO.setStatus(20);
 | 
	
		
			
				|  |  |                     }
 | 
	
		
			
				|  |  |                 }
 | 
	
		
			
				|  |  |             }else{
 | 
	
		
			
				|  |  |                 wlyyPrescriptionDO.setStatus(11);
 | 
	
		
			
				|  |  |             }
 | 
	
	
		
			
				|  | @ -9346,6 +9365,10 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
 | 
	
		
			
				|  |  |             List<WlyyPrescriptionInfoVO> infoVOS = new ArrayList<>();
 | 
	
		
			
				|  |  |             BeanUtils.copyProperties(infoDOs,infoVOS);
 | 
	
		
			
				|  |  |             singlePre.setInfoVOs(infoVOS);
 | 
	
		
			
				|  |  |             List<WlyyInspectionDO> inspectionDOS = wlyyInspectionDao.findByPrescriptionId(singlePre.getId(),1);
 | 
	
		
			
				|  |  |             List<WlyyInspectionVO> inspectionVOS = new ArrayList<>();
 | 
	
		
			
				|  |  |             BeanUtils.copyProperties(inspectionDOS,inspectionVOS);
 | 
	
		
			
				|  |  |             singlePre.setInspectionVOs(inspectionVOS);
 | 
	
		
			
				|  |  |         }
 | 
	
		
			
				|  |  | //        List<WlyyPrescriptionVO> list = jdbcTemplate.query(sql.toString(), new BeanPropertyRowMapper<>(WlyyPrescriptionVO.class));
 | 
	
		
			
				|  |  |         logger.info("countSql=" + countSql.toString());
 | 
	
	
		
			
				|  | @ -11487,12 +11510,12 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
 | 
	
		
			
				|  |  |         notification.put("ios",ios);
 | 
	
		
			
				|  |  |         jsonObject.put("notification",notification);
 | 
	
		
			
				|  |  |         System.out.println(notification.toString());
 | 
	
		
			
				|  |  |         String url = "https://api.jpush.cn/v3/push";
 | 
	
		
			
				|  |  |         String url = "https://api.jpush.cn/v3/push/";
 | 
	
		
			
				|  |  |         Map<String, Object> headerMap = new HashedMap();
 | 
	
		
			
				|  |  |         headerMap.put("Authorization",auth);
 | 
	
		
			
				|  |  |         headerMap.put("Content-Type","application/json");
 | 
	
		
			
				|  |  |         /*headerMap.put("Content-Length",1024);
 | 
	
		
			
				|  |  |         headerMap.put("Host","127.0.0.1");*/
 | 
	
		
			
				|  |  |         headerMap.put("Content-Length",1024);
 | 
	
		
			
				|  |  |         headerMap.put("Host","127.0.0.1");
 | 
	
		
			
				|  |  |         logger.info("极光推送参数"+jsonObject);
 | 
	
		
			
				|  |  |         String response = httpClientUtil.postBodyHead(url,jsonObject,headerMap);
 | 
	
		
			
				|  |  |         logger.info("极光推送返回日志==="+response);
 |