zoukankan      html  css  js  c++  java
  • 新闻发布项目——业务逻辑层(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);
    	}
    
    }
    

  • 相关阅读:
    sql
    Java 反射
    Java 泛型
    Java 数组小记
    Java 实现二叉树
    Maven的环境配置
    用于解决easui 保存时候,前台传参是空字符串不null
    SpringMVC
    SpringMVC
    解决MySql varchar类型的数字排序
  • 原文地址:https://www.cnblogs.com/a1111/p/6540309.html
Copyright © 2011-2022 走看看