src/main/java/com/mindskip/xzs/repository/ExamPaperDepartmentMapper.java
@@ -2,6 +2,7 @@ import com.mindskip.xzs.domain.ExamPaperDepartment; import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Param; import java.util.List; @@ -35,4 +36,13 @@ * @return */ Integer removeByExamPaperId(Integer id); Integer removeByExamPaperIds(@Param("ids") Integer[] ids); /** * 根据用户id获取部门名称 * @param userId 用户 * @return 所在部门 */ String selectByUserId(Integer userId); }