|
@ -395,7 +395,7 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
|
|
|
,String provinceCode,String provinceName,String cityCode,String cityName,String townCode,String townName
|
|
|
,String streetCode,String streetName){
|
|
|
|
|
|
WlyyPrescriptionExpressageDO expressageDO = prescriptionExpressageDao.getOne(id);
|
|
|
WlyyPrescriptionExpressageDO expressageDO = prescriptionExpressageDao.findById(id).orElse(null);
|
|
|
expressageDO.setOneselfPickupFlg(oneselfPickupFlg);
|
|
|
if(oneselfPickupFlg == 0){
|
|
|
//自取
|
|
@ -468,7 +468,7 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
|
|
|
*/
|
|
|
public List<WlyyPrescriptionVO> findOriginPrescriptionList(String registerSn, String patient, String realOrder, String admNo, boolean demoFlag) throws Exception {
|
|
|
/*String patNo = patientMappingService.findHisPatNoByPatient(patient);*/
|
|
|
BasePatientDO patientDO = basePatientDao.getOne(patient);
|
|
|
BasePatientDO patientDO = basePatientDao.findById(patient).orElse(null);
|
|
|
if (patientDO==null){
|
|
|
return null;
|
|
|
}
|
|
@ -4214,7 +4214,7 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
|
|
|
* @return
|
|
|
*/
|
|
|
public List<Map<String, Object>> findWorkTimeInfo(String id) {
|
|
|
WlyyDoctorWorkTimeDO timeDO = doctorWorkTimeDao.getOne(id);
|
|
|
WlyyDoctorWorkTimeDO timeDO = doctorWorkTimeDao.findById(id).orElse(null);
|
|
|
|
|
|
Long ss = timeDO.getEndTime().getTime() - timeDO.getStartTime().getTime();
|
|
|
Long s = ss / timeDO.getSourceNumber();
|
|
@ -4275,7 +4275,7 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
|
|
|
* @return
|
|
|
*/
|
|
|
public Integer findWorkTimeInfoCout(String id) {
|
|
|
WlyyDoctorWorkTimeDO timeDO = doctorWorkTimeDao.getOne(id);
|
|
|
WlyyDoctorWorkTimeDO timeDO = doctorWorkTimeDao.findById(id).orElse(null);
|
|
|
|
|
|
if (timeDO.getSourceNumber() == null || timeDO.getStartTime() == null || timeDO.getEndTime() == null) {
|
|
|
return 0;
|
|
@ -4335,7 +4335,7 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
|
|
|
|
|
|
@Deprecated
|
|
|
public List<Map<String, Object>> findWorkTimeInfoOld(String id) {
|
|
|
WlyyDoctorWorkTimeDO timeDO = doctorWorkTimeDao.getOne(id);
|
|
|
WlyyDoctorWorkTimeDO timeDO = doctorWorkTimeDao.findById(id).orElse(null);
|
|
|
Calendar sc = Calendar.getInstance();
|
|
|
sc.setTime(timeDO.getStartTime());
|
|
|
|
|
@ -4382,7 +4382,7 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
|
|
|
}
|
|
|
|
|
|
public Integer findWorkTimeCount(String id) {
|
|
|
WlyyDoctorWorkTimeDO timeDO = doctorWorkTimeDao.getOne(id);
|
|
|
WlyyDoctorWorkTimeDO timeDO = doctorWorkTimeDao.findById(id).orElse(null);
|
|
|
Calendar sc = Calendar.getInstance();
|
|
|
sc.setTime(timeDO.getStartTime());
|
|
|
|
|
@ -6541,7 +6541,7 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
|
|
|
}
|
|
|
|
|
|
public WlyyDoctorClinicRoomDO findClinicRoomStatus(String id) {
|
|
|
return wlyyDoctorClinicRoomDao.getOne(id);
|
|
|
return wlyyDoctorClinicRoomDao.findById(id).orElse(null);
|
|
|
}
|
|
|
|
|
|
/**
|
|
@ -11323,7 +11323,7 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
|
|
|
throw new Exception("微信配置不存在!");
|
|
|
}
|
|
|
|
|
|
BaseNatAppointmentDO natAppointmentDO = baseNatAppointmentDao.getOne(id);
|
|
|
BaseNatAppointmentDO natAppointmentDO = baseNatAppointmentDao.findById(id).orElse(null);
|
|
|
BasePatientDO patientDO = basePatientDao.getOne(natAppointmentDO.getPatientId());
|
|
|
List<BasePatientWechatDo> patientWechatDos = patientWechatDao.findByWechatIdAndPatientId(wxId, natAppointmentDO.getPatientId());
|
|
|
if (patientWechatDos == null || patientWechatDos.size() == 0) {
|
|
@ -11541,7 +11541,7 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
|
|
|
}
|
|
|
//删除处方
|
|
|
public WlyyPrescriptionDO deletePrescription(String id){
|
|
|
WlyyPrescriptionDO wlyyPrescriptionDO = prescriptionDao.getOne(id);
|
|
|
WlyyPrescriptionDO wlyyPrescriptionDO = prescriptionDao.findById(id).orElse(null);
|
|
|
if (null!=wlyyPrescriptionDO){
|
|
|
wlyyPrescriptionDO.setCheckStatus(4);
|
|
|
wlyyPrescriptionDO.setStatus(-1);
|
|
@ -13131,7 +13131,7 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
|
|
|
}
|
|
|
|
|
|
public String sendMessage(Integer id,String pushChannel,String pushFlag) throws Exception {
|
|
|
BaseNatAppointmentDO baseNatAppointmentDO = baseNatAppointmentDao.getOne(id);
|
|
|
BaseNatAppointmentDO baseNatAppointmentDO = baseNatAppointmentDao.findById(id).orElse(null);
|
|
|
if (baseNatAppointmentDO==null){
|
|
|
throw new Exception("预约记录不存在");
|
|
|
}
|
|
@ -13242,7 +13242,7 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
|
|
|
return "发送成功!";
|
|
|
}
|
|
|
public String sendYktemplateMessage(Integer id,boolean isPayed) {
|
|
|
BaseNatAppointmentDO baseNatAppointmentDO = baseNatAppointmentDao.getOne(id);
|
|
|
BaseNatAppointmentDO baseNatAppointmentDO = baseNatAppointmentDao.findById(id).orElse(null);
|
|
|
if (baseNatAppointmentDO==null){
|
|
|
return "核酸项目不存在,发送失败";
|
|
|
}
|
|
@ -13477,7 +13477,7 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
|
|
|
String res = "";
|
|
|
if (patientDO!=null){
|
|
|
try {
|
|
|
BaseNatAppointmentDO baseNatAppointmentDO = baseNatAppointmentDao.getOne(id);
|
|
|
BaseNatAppointmentDO baseNatAppointmentDO = baseNatAppointmentDao.findById(id).orElse(null);
|
|
|
if (null!=baseNatAppointmentDO){
|
|
|
if ("xm_zsyy_wx".equalsIgnoreCase(wechatId)){
|
|
|
WlyyHospitalSysDictDO hospitalSysDictDO = hospitalSysDictDao.getOne("natTimeConfig");
|
|
@ -13660,7 +13660,7 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
|
|
|
jsonObject.put("keyword2","申请人:"+patientDO.getName()+"\n" +
|
|
|
"预约时间:"+reserverTime+"\n" +
|
|
|
"发票流水号:"+realorder+"");
|
|
|
BaseNatAppointmentDO baseNatAppointmentDO = baseNatAppointmentDao.getOne(id);
|
|
|
BaseNatAppointmentDO baseNatAppointmentDO = baseNatAppointmentDao.findById(id).orElse(null);
|
|
|
WlyyHospitalSysDictDO hospitalSysDictDO1 = wlyyHospitalSysDictDao.getOne("natConfigTestNew");
|
|
|
String addres = "我院五号楼北侧(急诊部后侧)";
|
|
|
String timeDes = "6-8小时";
|