| | |
| | | import com.mindskip.xzs.domain.Subject; |
| | | import com.mindskip.xzs.viewmodel.admin.education.SubjectPageRequestVM; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import java.util.List; |
| | | |
| | |
| | | |
| | | List<Subject> getSubjectByLevel(Integer level); |
| | | |
| | | List<Subject> allSubject(); |
| | | List<Subject> allSubject(@Param("deptIds") List<Integer> deptIds, @Param("admin") Boolean admin); |
| | | |
| | | List<Subject> page(SubjectPageRequestVM requestVM); |
| | | |
| | | Subject getName(String name); |
| | | |
| | | List<Subject> getNames(@Param("names") String[] names); |
| | | |
| | | List<Subject> selectByIds(@Param("ids") Integer[] ids); |
| | | |
| | | List<String> selectSubjectName(@Param("ids") List<Integer> ids); |
| | | |
| | | String selectSubjectNameById(Integer id); |
| | | |
| | | /** |
| | | * 部门id查询课目 |
| | | * |
| | | * @param deptId |
| | | * @return |
| | | */ |
| | | List<Subject> listByDeptId(@Param("deptId") Integer deptId); |
| | | |
| | | /** |
| | | * 名称搜索 |
| | | * |
| | | * @param name |
| | | * @return |
| | | */ |
| | | Subject selectByName(@Param("id") Integer id, @Param("name") String name); |
| | | |
| | | |
| | | /** |
| | | * 名称查询是否存在 |
| | | * |
| | | * @param name |
| | | * @return |
| | | */ |
| | | Subject getByName(@Param("name") String name); |
| | | } |