package com.matrix.system.hive.service.imp;
|
|
import com.matrix.core.pojo.PaginationVO;
|
|
|
import com.matrix.system.hive.bean.ArticleComment;
|
import com.matrix.system.hive.dao.ArticleCommentDao;
|
import com.matrix.system.hive.service.ArticleCommentService;
|
import org.springframework.stereotype.Service;
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import java.util.List;
|
|
/**
|
*
|
* @date 2016-12-12 11:26
|
*/
|
@Service("articleCommentService")
|
public class ArticleCommentServiceImpl implements ArticleCommentService {
|
|
|
@Autowired
|
private ArticleCommentDao articleCommentDao;
|
|
|
@Override
|
public int add(ArticleComment articleComment){
|
|
return articleCommentDao.insert(articleComment);
|
|
}
|
|
@Override
|
public int modify(ArticleComment articleComment){
|
|
return articleCommentDao.update(articleComment);
|
|
}
|
|
@Override
|
public int remove(List<Long> list){
|
|
return articleCommentDao.deleteByIds(list);
|
|
}
|
|
@Override
|
public int removeById(Long id){
|
|
return articleCommentDao.deleteById(id);
|
|
}
|
|
@Override
|
public int removeByModel(ArticleComment articleComment){
|
|
return articleCommentDao.deleteByModel(articleComment);
|
|
}
|
|
|
@Override
|
public List<ArticleComment> findInPage(ArticleComment articleComment, PaginationVO pageVo){
|
|
return articleCommentDao.selectInPage(articleComment , pageVo);
|
|
}
|
|
@Override
|
public List<ArticleComment> findByModel(ArticleComment articleComment){
|
|
return articleCommentDao.selectByModel(articleComment);
|
|
}
|
|
@Override
|
public int findTotal(ArticleComment articleComment){
|
|
return articleCommentDao.selectTotalRecord(articleComment);
|
|
}
|
|
@Override
|
public ArticleComment findById(Long id){
|
|
return articleCommentDao.selectById(id);
|
|
}
|
|
|
|
|
}
|