You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
45 lines
868 B
45 lines
868 B
|
1 week ago
|
package com.student.dao;
|
||
|
|
|
||
|
|
import com.student.bean.Clazz;
|
||
|
|
import com.student.bean.Department;
|
||
|
|
import com.student.bean.Major;
|
||
|
|
|
||
|
|
import java.util.List;
|
||
|
|
|
||
|
|
public interface OrgDao {
|
||
|
|
|
||
|
|
List<Department> findAllDepts();
|
||
|
|
|
||
|
|
Department findDeptById(int id);
|
||
|
|
|
||
|
|
boolean insertDept(Department dept);
|
||
|
|
|
||
|
|
boolean updateDept(Department dept);
|
||
|
|
|
||
|
|
boolean deleteDept(int id);
|
||
|
|
|
||
|
|
List<Major> findMajorsByDept(int deptId);
|
||
|
|
|
||
|
|
List<Major> findAllMajors();
|
||
|
|
|
||
|
|
Major findMajorById(int id);
|
||
|
|
|
||
|
|
boolean insertMajor(Major major);
|
||
|
|
|
||
|
|
boolean updateMajor(Major major);
|
||
|
|
|
||
|
|
boolean deleteMajor(int id);
|
||
|
|
|
||
|
|
List<Clazz> findClazzByMajor(int majorId);
|
||
|
|
|
||
|
|
List<Clazz> findAllClazz();
|
||
|
|
|
||
|
|
Clazz findClazzById(int id);
|
||
|
|
|
||
|
|
boolean insertClazz(Clazz clazz);
|
||
|
|
|
||
|
|
boolean updateClazz(Clazz clazz);
|
||
|
|
|
||
|
|
boolean deleteClazz(int id);
|
||
|
|
}
|