| | |
| | | |
| | | import javax.annotation.Resource; |
| | | |
| | | import java.time.LocalDateTime; |
| | | import java.util.Date; |
| | | |
| | | import static cn.lihu.jh.framework.common.exception.util.ServiceExceptionUtil.exception; |
| | | import static cn.lihu.jh.module.ecg.enums.ErrorCodeConstants.*; |
| | | |
| | |
| | | public Integer createAppointment(AppointmentSaveReqVO createReqVO) { |
| | | // 插入 |
| | | AppointmentDO appointment = BeanUtils.toBean(createReqVO, AppointmentDO.class); |
| | | |
| | | appointment.setBookTime( LocalDateTime.now() ); |
| | | appointment.setBookSrc( 0 ); |
| | | |
| | | appointmentMapper.insert(appointment); |
| | | // 返回 |
| | | return appointment.getId(); |
| | |
| | | } |
| | | |
| | | @Override |
| | | public AppointmentDO getAppointmentByPatId(String patId) { |
| | | return appointmentMapper.getByPatId( patId ); |
| | | } |
| | | |
| | | @Override |
| | | public PageResult<AppointmentDO> getAppointmentPage(AppointmentPageReqVO pageReqVO) { |
| | | return appointmentMapper.selectPage(pageReqVO); |
| | | } |