|
@ -2638,8 +2638,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());
|
|
@ -4406,7 +4417,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)){
|
|
@ -4443,7 +4454,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";
|
|
@ -4457,7 +4468,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";
|
|
@ -4488,7 +4499,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小时取消复诊提醒
|
|
@ -4685,7 +4696,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+"。";
|
|
@ -8509,6 +8520,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);
|
|
|
}
|
|
@ -9354,6 +9373,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());
|