courseleaderservice.java
来自「数据库系统教材中附录的课程设计accomodation宿舍管理系统源码」· Java 代码 · 共 35 行
JAVA
35 行
package cn.kmp.accommodation.service;
import com.littleQworks.commons.dao.ibatis.spring.CommonDaoGenericImpl;
import cn.kmp.accommodation.domain.*;
public class CourseLeaderService {
private CommonDaoGenericImpl commonDao;
public CommonDaoGenericImpl getCommonDao() {
return commonDao;
}
public void setCommonDao(CommonDaoGenericImpl commonDao) {
this.commonDao = commonDao;
}
//根据课程负责人号获得课程负责人的信息
public CourseLeader getCourseLeaderByCourseLeaderNum(int courseLeaderNum){
return commonDao.getByParamter(courseLeaderNum, "getCourseLeaderByCourseLeaderNum");
}
//获得相应课程号的课程负责人
public CourseLeader getCourseLeaderByCourseNum(int courseNum){
return commonDao.getByParamter(courseNum, "getCourseLeaderByCourseNum");
}
//更新课程负责人
public boolean updateCourseLeaderByCourseLeaderNum(CourseLeader courseLeader){
return commonDao.updateByParameter(courseLeader, "updateCourseLeaderByCouseLeaderNum");
}
//添加课程负责人
public boolean insertCourseLeader(CourseLeader courseLeader){
return commonDao.insertByParameter(courseLeader, "insertCourseLeader");
}
//删除课程负责人
public boolean deleteCourseLeaderByCourseLeaderNum(int courseLeaderNum){
return commonDao.deleteByParameter(courseLeaderNum, "deleteCourseLeaderByCourseLeaderNum");
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?