|
@ -2275,7 +2275,7 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
|
|
|
if ("0".equals(rs)) {
|
|
|
String admNo = jsonObject.getString("@ADM_NO");
|
|
|
String realOrder = jsonObject.getString("@real_order");
|
|
|
|
|
|
String voucherNo = jsonObject.getString("@xtgzh0");
|
|
|
prescription.setAdmNo(admNo);
|
|
|
prescription.setRealOrder(realOrder);
|
|
|
prescriptionDao.save(prescription);
|
|
@ -2283,6 +2283,7 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
|
|
|
outpatientDao.save(outpatientDO);
|
|
|
|
|
|
result.put("code", 1);
|
|
|
result.put("voucherNo",voucherNo);
|
|
|
result.put("mes", "开方提交成功");
|
|
|
|
|
|
return result;
|
|
@ -3190,6 +3191,7 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
|
|
|
BaseOrgDO org = baseOrgDao.findByCode(orgCode);
|
|
|
if (org!=null){
|
|
|
doctorHospitalDO.setWinNo(org.getWinNo());
|
|
|
doctorHospitalDO.setHisId(org.getHisId());
|
|
|
hospitalDOList.add(doctorHospitalDO);
|
|
|
}
|
|
|
}
|
|
@ -6122,6 +6124,7 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
|
|
|
if (doctorHospitalDOS!=null&&doctorHospitalDOS.size()!=0){
|
|
|
applyDepaName = doctorHospitalDOS.get(0).getDeptName();
|
|
|
}
|
|
|
String voucherNo = map.get("voucherNo")+"";
|
|
|
String applyDoctorName = prescriptionDO.getDoctorName();
|
|
|
BasePatientDO patientDO = basePatientDao.findById(patientCode);
|
|
|
String userName = null;
|
|
@ -6140,7 +6143,7 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
|
|
|
cardNo = outpatientDO.getCardNo();
|
|
|
}
|
|
|
logger.info("cardNo:"+cardNo);
|
|
|
ylzPayService.msgPush("01",cardNo,"01",patientDO.getMobile(),"00",userNo,userName,idcard,realerOrder,applyDepaName,applyDoctorName,recipeTime,free,"1");
|
|
|
ylzPayService.msgPush("01",cardNo,"01",patientDO.getMobile(),"00",userNo,userName,idcard,voucherNo,applyDepaName,applyDoctorName,recipeTime,free,"1");
|
|
|
}
|
|
|
//sendHisDiagnosis(jsonData, outpatientDO, wlyyPrescriptionDO);
|
|
|
|
|
@ -6154,6 +6157,7 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
|
|
|
wlyyPrescriptionDO.setCheckReason(reason);
|
|
|
wlyyPrescriptionDO.setStatus(20);
|
|
|
wlyyPrescriptionDO.setPrescribeTime(new Date());
|
|
|
wlyyPrescriptionDO.setId(prescriptionId);
|
|
|
|
|
|
//发送系统消息 处方支付提醒
|
|
|
SystemMessageDO messageDO = new SystemMessageDO();
|
|
@ -6184,6 +6188,7 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
|
|
|
}
|
|
|
|
|
|
}else{
|
|
|
wlyyPrescriptionDO.setId(prescriptionId);
|
|
|
wlyyPrescriptionDO.setCheckStatus(status);
|
|
|
wlyyPrescriptionDO.setCheckReason(reason);
|
|
|
wlyyPrescriptionDO.setStatus(11);
|