package com.ots.project.exam.mapper; import com.ots.project.exam.domain.TSubject; import java.util.List; /** * 维度表Mapper接口 * * @author ots * @date 2019-12-09 */ public interface TSubjectMapper { /** * 查询维度表 * * @param id 维度表ID * @return 维度表 */ TSubject selectTSubjectById(Long id); /** * 查询维度表列表 * * @param tSubject 维度表 * @return 维度表集合 */ List selectTSubjectList(TSubject tSubject); List selectTSubjectList(); /** * 新增维度表 * * @param tSubject 维度表 * @return 结果 */ int insertTSubject(TSubject tSubject); /** * 修改维度表 * * @param tSubject 维度表 * @return 结果 */ int updateTSubject(TSubject tSubject); /** * 删除维度表 * * @param id 维度表ID * @return 结果 */ int deleteTSubjectById(Long id); /** * 批量删除维度表 * * @param ids 需要删除的数据ID * @return 结果 */ int deleteTSubjectByIds(String[] ids); TSubject selectTSubjectAndTLeveById(Long id); List selectTSubjectAndTLeveByTemplateId(String questionTemplateId); }