package com.fh.service.api.impl; import java.util.List; import javax.annotation.Resource; import org.springframework.stereotype.Service; import com.fh.dao.DaoSupport; import com.fh.service.api.V1Manager; import com.fh.util.PageData; @Service("v1Service") public class V1Service implements V1Manager { @Resource(name = "daoSupport") private DaoSupport dao; @Override public List getTeacherClassInfo(PageData pd) throws Exception { return (List)dao.findForList("V1Mapper.getTeacherClassInfo", pd); } @Override public List getTeacherSubjectInfo(PageData pd) throws Exception { return (List)dao.findForList("V1Mapper.getTeacherSubjectInfo", pd); } @Override public List getClassStudent(PageData pd) throws Exception { return (List)dao.findForList("V1Mapper.getClassStudent", pd); } @Override public List getTestPaperInfo(PageData pd) throws Exception { return (List)dao.findForList("V1Mapper.getTestPaperInfo", pd); } @Override public List getQuestionsByPID(PageData pd) throws Exception { return (List)dao.findForList("V1Mapper.getQuestionsByPID", pd); } @Override public List getTeacherInfoGrade(PageData pd) throws Exception { return (List)dao.findForList("V1Mapper.getTeacherInfoGrade", pd); } @Override public PageData getTeacherInfo(PageData pd) throws Exception { return (PageData)dao.findForObject("V1Mapper.getTeacherInfo", pd); } @Override public PageData getAdminInfo(PageData pd) throws Exception { return (PageData)dao.findForObject("V1Mapper.getAdminInfo", pd); } @Override public List getQuestionWrongInfo(PageData pd) throws Exception { return (List)dao.findForList("V1Mapper.getQuestionWrongInfo", pd); } @Override public List getLastWrongQuestionInfo(PageData pd) throws Exception { return (List)dao.findForList("V1Mapper.getLastWrongQuestionInfo", pd); } @Override public List getClassBySchoolAndGradle(PageData pd) throws Exception { return (List)dao.findForList("V1Mapper.getClassBySchoolAndGradle", pd); } @Override public List classReport(PageData pd) throws Exception { return (List)dao.findForList("V1Mapper.classReport", pd); } }