src/cn/itbaizhan/health/service/impl/ExamServiceImpl.java

(完整代码) 738B

package cn.itbaizhan.health.service.impl;

import java.util.List;

import cn.itbaizhan.health.dao.ExamDAOInter;
import cn.itbaizhan.health.po.Exam;
import cn.itbaizhan.health.po.Teacher;
import cn.itbaizhan.health.service.ExamServiceInter;

public class ExamServiceImpl implements ExamServiceInter {
	private ExamDAOInter examDao;

	public void setExamDao(ExamDAOInter examDao) {
		this.examDao = examDao;
	}

	public List<Exam> find(Teacher teacher) throws Exception {
		List<Exam> list = examDao.find(teacher, 10);
		return list;
	}
	
	public boolean delete(Integer id) throws Exception {
		return examDao.delete(id);
	}

	public boolean save(Exam exam) throws Exception {
		return examDao.save(exam);
	}
}

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。