package com.ltkj.hosp.mapper;
|
|
import java.util.List;
|
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
import com.ltkj.hosp.domain.TjConsumables;
|
import org.apache.ibatis.annotations.Select;
|
|
/**
|
* 体检耗材Mapper接口
|
*
|
* @author ltkj_赵佳豪&李格
|
* @date 2022-12-29
|
*/
|
public interface TjConsumablesMapper extends BaseMapper<TjConsumables> {
|
/**
|
* 查询体检耗材
|
*
|
* @param id 体检耗材主键
|
* @return 体检耗材
|
*/
|
public TjConsumables selectTjConsumablesById(Long id);
|
|
/**
|
* 查询体检耗材列表
|
*
|
* @param tjConsumables 体检耗材
|
* @return 体检耗材集合
|
*/
|
public List<TjConsumables> selectTjConsumablesList(TjConsumables tjConsumables);
|
|
/**
|
* 新增体检耗材
|
*
|
* @param tjConsumables 体检耗材
|
* @return 结果
|
*/
|
public int insertTjConsumables(TjConsumables tjConsumables);
|
|
/**
|
* 修改体检耗材
|
*
|
* @param tjConsumables 体检耗材
|
* @return 结果
|
*/
|
public int updateTjConsumables(TjConsumables tjConsumables);
|
|
/**
|
* 删除体检耗材
|
*
|
* @param id 体检耗材主键
|
* @return 结果
|
*/
|
public int deleteTjConsumablesById(Long id);
|
|
/**
|
* 批量删除体检耗材
|
*
|
* @param ids 需要删除的数据主键集合
|
* @return 结果
|
*/
|
public int deleteTjConsumablesByIds(Long[] ids);
|
|
@Select("SELECT b.* FROM tj_pro_consumables a LEFT JOIN tj_consumables b ON a.consumables_id =b.id WHERE a.pro_id=#{proId} AND b.deleted=0")
|
List<TjConsumables>getTjConsumablesList(String proId);
|
}
|