首页>代码>java servlet+bootstrap+ajax实现的教师年度工作填报系统>/report_servlet/src/com/mocha/report/article/service/impl/ArticleSerImpl.java
package com.mocha.report.article.service.impl; import java.sql.SQLException; import java.util.List; import java.util.Map; import com.mocha.report.article.dao.ArticleDao; import com.mocha.report.article.dao.impl.ArticleDaoImpl; import com.mocha.report.article.service.ArticleSer; import com.mocha.report.entites.Article; public class ArticleSerImpl implements ArticleSer{ private ArticleDao articleDao = new ArticleDaoImpl(); @Override public List<Article> findByUsercode(String usercode, int page, int perPage) { return articleDao.findByUsercode(usercode, page, perPage); } @Override public int getMaxPage(int perPage, String usercode) throws SQLException { return articleDao.getMaxPage(perPage, usercode); } @Override public Article findByAid(int aid) { return articleDao.findByAid(aid); } @Override public void delete(int aid) { articleDao.delete(aid); } @Override public void save(Article article) { articleDao.save(article); } @Override public void update(Article article) { articleDao.update(article); } @Override public List<Article> findByCondition(Article article, int page, int perPage) { return articleDao.findByCondition(article, page, perPage); } @Override public int getMaxPage(int perPage, Article article) throws SQLException { return articleDao.getMaxPage(perPage, article); } @Override public List<Map<String, String>> findTotal() { // TODO Auto-generated method stub return articleDao.findTotal(); } }