• 新闻发布项目——业务逻辑层(commentServiceImpl)


    package bdqn.newsManageServlet.Service.Impl;
    
    import java.util.List;
    
    import bdqn.newsManageServlet.Dao.commentDao;
    import bdqn.newsManageServlet.Dao.Impl.commentDaoImpl;
    import bdqn.newsManageServlet.Service.commentService;
    import bdqn.newsManageServlet.entity.comment;
    
    public class commentServiceImpl implements commentService {
    	
    	commentDao cDao=new commentDaoImpl();
    	//根据新闻的id删除评论
    	public int delComment(int newsid) {
    		return cDao.delComment(newsid);
    		
    	}
    	//分页查询评论信息(根据新闻的id)
    	public List<comment> getCommentPage(int pagesize, int pageindex, int newsid) {
    		// TODO Auto-generated method stub
    		return cDao.getCommentPage(pagesize, pageindex, newsid);
    	}
    	//查询总记录数(根据新闻id)
    	public int getPageCount(int newsid) {
    		// TODO Auto-generated method stub
    		return cDao.getPageCount(newsid);
    	}
    
    }
    

  • 相关阅读:
    sort
    usaco-3.1-humble-pass
    usaco-3.1-inflate-pass
    usaco-3.1-agrinet-pass
    usaco-2.4-fracdec-pass
    usaco-2.4-comhome-pass
    usaco-2.4-cowtour-pass
    usaco-2.4-maze1-pass
    usaco-2.4-ttwo-pass
    usaco-2.3-concom-pass
  • 原文地址:https://www.cnblogs.com/a1111/p/6540309.html
Copyright © 2020-2023  润新知