package com.ltkj.hosp.mapper;
|
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
import com.ltkj.hosp.domain.TjReservation;
|
import org.apache.ibatis.annotations.Mapper;
|
import org.apache.ibatis.annotations.Select;
|
|
import java.util.List;
|
|
|
/**
|
* 体检预约Mapper接口
|
*
|
* @author ltkj
|
* @date 2022-11-28
|
*/
|
@Mapper
|
public interface TjReservationMapper extends BaseMapper<TjReservation> {
|
/**
|
* 查询体检预约
|
*
|
* @param id 体检预约主键
|
* @return 体检预约
|
*/
|
public TjReservation selectTjReservationById(Integer id);
|
|
/**
|
* 查询体检预约列表
|
*
|
* @param tjReservation 体检预约
|
* @return 体检预约集合
|
*/
|
public List<TjReservation> selectTjReservationList(TjReservation tjReservation);
|
|
|
|
public List<TjReservation> getTjReservationList(TjReservation tjReservation);
|
|
/**
|
* 新增体检预约
|
*
|
* @param tjReservation 体检预约
|
* @return 结果
|
*/
|
public int insertTjReservation(TjReservation tjReservation);
|
|
/**
|
* 修改体检预约
|
*
|
* @param tjReservation 体检预约
|
* @return 结果
|
*/
|
public int updateTjReservation(TjReservation tjReservation);
|
|
/**
|
* 删除体检预约
|
*
|
* @param id 体检预约主键
|
* @return 结果
|
*/
|
public int deleteTjReservationById(Integer id);
|
|
/**
|
* 批量删除体检预约
|
*
|
* @param ids 需要删除的数据主键集合
|
* @return 结果
|
*/
|
public int deleteTjReservationByIds(Integer[] ids);
|
|
|
|
@Select("SELECT * FROM tj_reservation WHERE deleted = 1")
|
public List<TjReservation> selectTjReservationByDelete();
|
}
|