package com.mindskip.xzs.repository; import com.mindskip.xzs.domain.ExamPaperDepartment; import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Param; import java.util.List; @Mapper public interface ExamPaperDepartmentMapper extends BaseMapper{ /** * 批量添加 * @param list * @return */ Integer saves(List list); /** * 批量删除 * @param ids * @return */ Integer removes(Integer[] ids); /** * 根据exam_paper_id查询 * @param id * @return */ List getByExamPaperId(Integer id); /** * 根据exam_paper_id删除 * @param id * @return */ Integer removeByExamPaperId(Integer id); Integer removeByExamPaperIds(@Param("ids") Integer[] ids); /** * 根据用户id获取部门名称 * @param userId 用户 * @return 所在部门 */ String selectByUserId(Integer userId); }