|
@ -100,8 +100,8 @@ public class GuahaoXMService implements IGuahaoService {
|
|
|
reservation.setPhone(patientPhone);
|
|
|
reservation.setSectionType(sectionType);
|
|
|
reservation.setSsc(clinicCard);
|
|
|
reservation.setStartTime(startTime);
|
|
|
reservation.setEndTime(endTime);
|
|
|
reservation.setStartTime(DateUtil.strToDate(startTime,DateUtil.YYYY_M_D_HH_MM_SS));
|
|
|
reservation.setEndTime(DateUtil.strToDate(endTime,DateUtil.YYYY_M_D_HH_MM_SS));
|
|
|
reservation.setStatus(1);
|
|
|
if (StringUtils.isNotEmpty(dcode)) {
|
|
|
SignFamily signFamily = signFamilyDao.findByjiatingPatient(patient);
|
|
@ -868,7 +868,7 @@ public class GuahaoXMService implements IGuahaoService {
|
|
|
/**
|
|
|
* 根据患者医保卡获取近三个月的预约记录
|
|
|
*/
|
|
|
public List<PatientReservation> GetRegList(String patientCode, String strStart, String strEnd,String strStartTime,String strEndTime) throws Exception {
|
|
|
public List<PatientReservation> GetRegList(String patientCode, String strStart, String strEnd,Date strStartTime,Date strEndTime) throws Exception {
|
|
|
Patient patient = patientService.findByCode(patientCode);
|
|
|
if (patient == null) {
|
|
|
throw new Exception("不存在该用户!");
|
|
@ -947,8 +947,8 @@ public class GuahaoXMService implements IGuahaoService {
|
|
|
patientReservation.setDeptName(dept);
|
|
|
patientReservation.setDoctorCode(DoctorCode);
|
|
|
patientReservation.setDoctorName(doctor);
|
|
|
patientReservation.setStartTime(regBegin);
|
|
|
patientReservation.setEndTime(regEnd);
|
|
|
patientReservation.setStartTime(DateUtil.strToDate(regBegin,DateUtil.YYYY_M_D_HH_MM_SS));
|
|
|
patientReservation.setEndTime(DateUtil.strToDate(regEnd,DateUtil.YYYY_M_D_HH_MM_SS));
|
|
|
patientReservation.setOrgCode(OrgCode);
|
|
|
patientReservation.setOrgName(org);
|
|
|
patientReservation.setType("1");
|
|
@ -982,9 +982,17 @@ public class GuahaoXMService implements IGuahaoService {
|
|
|
}
|
|
|
|
|
|
//根据患者医保卡获取近三个月的已取消的预约记录
|
|
|
List<PatientReservation> list = patientReservationDao.findByPatientAndStartTime(patientCode,strStart,strEnd,strStartTime,strEndTime);
|
|
|
List<PatientReservation> list = patientReservationDao.findByPatientAndStartTime(patientCode,strStartTime,strEndTime);
|
|
|
if(list.size()>0){
|
|
|
patientRegList.addAll(list);
|
|
|
|
|
|
patientRegList.sort(new Comparator<PatientReservation>() {
|
|
|
public int compare(PatientReservation o1, PatientReservation o2) {
|
|
|
Date startTime1 = o1.getStartTime();
|
|
|
Date startTime2 = o2.getStartTime();
|
|
|
return startTime2.compareTo(startTime1);
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
|
|
|
//保存http日志
|
|
@ -1072,8 +1080,8 @@ public class GuahaoXMService implements IGuahaoService {
|
|
|
patientReservation.setDeptName(dept);
|
|
|
patientReservation.setDoctorCode(DoctorCode);
|
|
|
patientReservation.setDoctorName(doctor);
|
|
|
patientReservation.setStartTime(regBegin);
|
|
|
patientReservation.setEndTime(regEnd);
|
|
|
patientReservation.setStartTime(DateUtil.strToDate(regBegin,DateUtil.YYYY_M_D_HH_MM_SS));
|
|
|
patientReservation.setEndTime(DateUtil.strToDate(regEnd,DateUtil.YYYY_M_D_HH_MM_SS));
|
|
|
patientReservation.setOrgCode(OrgCode);
|
|
|
patientReservation.setOrgName(org);
|
|
|
patientReservation.setType("1");
|