| | |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | import org.apache.ibatis.annotations.Param; |
| | | import org.apache.ibatis.annotations.Select; |
| | | import org.apache.ibatis.annotations.Update; |
| | | |
| | | import java.time.LocalDate; |
| | | import java.util.List; |
| | |
| | | .eqIfPresent(AppointmentDO::getBookCheckType, reqVO.getBookCheckType()) |
| | | .eqIfPresent(AppointmentDO::getBookSrc, reqVO.getBookSrc()) |
| | | .eqIfPresent(AppointmentDO::getPaid, reqVO.getPaid()) |
| | | .eqIfPresent(AppointmentDO::getStatus, reqVO.getStatus()) |
| | | .orderByDesc(AppointmentDO::getId)); |
| | | } |
| | | |
| | |
| | | @Select("select * from lihu.appointment where pat_id = #{patId} and book_check_type = #{checkType} and to_days(book_date) = to_days(Now()) limit 1") |
| | | AppointmentDO getByPatAndCheckTypeAndBookDate(@Param("patId") String patId, @Param("checkType") Integer checkType); |
| | | |
| | | @Update("update lihu.appointment set status = #{status} where apply_no = #{applyNo};") |
| | | Integer updateStatusByApplyNo(@Param("applyNo") String applyNo, @Param("status") String status); |
| | | |
| | | @Select("select * from lihu.appointment where episode_id = #{episodeId} and apply_no = #{applyNo} limit 1") |
| | | AppointmentDO getByEpisodeIdAndApplyNo(@Param("episodeId") String episodeId, @Param("applyNo") String applyNo); |
| | | |