| | |
| | | List<AppointmentProjectDeviceNo> apdnList = new ArrayList<>(); |
| | | List<DeviceNoSchedule> dnsList = AppointmentV2Util.handleDeviceTime(dto.getDeviceTimeJson(), apdnList); |
| | | //获取出医生的治疗时间记录 |
| | | List<DoctorTime> doctorTimeList = AppointmentV2Util.getDoctorZlTime(dto.getZlTimeJson(), dto.getShopId(), dto.getDoctorId(), dayStr, dayStr.substring(0, 6)); |
| | | |
| | | List<DoctorTime> doctorTimeList = null; |
| | | //后台预约时,zlTimeJson没有对应的开始结束时间,所以要特殊处理 |
| | | if(dto.getAddMode() == Appointment.ADD_MODE_BACKSTAGE_V2_3){ |
| | | List<Integer> doctorZlTime = new ArrayList<>(); |
| | | doctorZlTime.add(0); |
| | | net.sf.json.JSONArray newZlTimeJson = new net.sf.json.JSONArray(); |
| | | //治疗开始时间 |
| | | ca.setTime(st); |
| | | ca.add(Calendar.MINUTE, duration - dto.getZlTime()); |
| | | Date treatSt = ca.getTime(); |
| | | doctorTimeList = AppointmentV2Util.getDoctorZlTime(dto.getZlTimeJson(), treatSt |
| | | , dto.getDoctorId(), dto.getShopId(), dayStr , appointment.getMonthStr(), doctorZlTime |
| | | , newZlTimeJson, dnsList); |
| | | appointment.setDoctorZlDuration(doctorZlTime.get(0)); |
| | | }else{ |
| | | doctorTimeList = AppointmentV2Util.getDoctorZlTime(dto.getZlTimeJson(), dto.getShopId(), dto.getDoctorId(), dayStr, dayStr.substring(0, 6)); |
| | | } |
| | | |
| | | // if(isChangeTime == 1 || dto.getIsProjectChange() == 1) { |
| | | // String [] projectIdsArr = StringUtils.isEmpty(dto.getProjectIds()) ? new String[0] : dto.getProjectIds().split(","); |