| | |
| | | return appointmentMapper.selectById(id); |
| | | } |
| | | |
| | | // TODO 尚不支持, 一位患者当天两种检查项目的情况 |
| | | @Override |
| | | public AppointmentDO getCurAppointmentByPatId(String patId) { |
| | | List<AppointmentDO> appointmentDOList = appointmentMapper.getCurrentPatId( patId ); |
| | | return 0 == appointmentDOList.size() ? null : appointmentDOList.get(0); |
| | | public AppointmentDO getCurAppointmentByPatIdAndCheckType(String patId, Integer checkType) { |
| | | AppointmentDO appointmentDO = appointmentMapper.getByPatAndCheckTypeAndBookDate( patId, checkType, LocalDate.now() ); |
| | | return appointmentDO; |
| | | } |
| | | |
| | | /** |