| package com.matrix.system.hive.service.imp; | 
|   | 
| import com.matrix.core.pojo.PaginationVO; | 
|   | 
|   | 
| import com.matrix.system.hive.bean.ArticleRecord; | 
| import com.matrix.system.hive.dao.ArticleRecordDao; | 
| import com.matrix.system.hive.service.ArticleRecordService; | 
| import org.springframework.stereotype.Service; | 
| import org.springframework.beans.factory.annotation.Autowired; | 
|   | 
| import java.util.List; | 
|   | 
| /** | 
|  * | 
|  * @date 2016-12-20 14:02 | 
|  */ | 
| @Service("articleRecordService") | 
| public class  ArticleRecordServiceImpl implements ArticleRecordService { | 
|   | 
|      | 
|     @Autowired | 
|     private ArticleRecordDao articleRecordDao; | 
|      | 
|      | 
|     @Override | 
|     public int add(ArticleRecord articleRecord){ | 
|          | 
|         return articleRecordDao.insert(articleRecord); | 
|          | 
|     } | 
|         | 
|     @Override | 
|     public int modify(ArticleRecord articleRecord){ | 
|      | 
|         return articleRecordDao.update(articleRecord); | 
|      | 
|     } | 
|      | 
|     @Override | 
|     public int remove(List<Long> list){ | 
|      | 
|         return articleRecordDao.deleteByIds(list); | 
|      | 
|     } | 
|   | 
|     @Override | 
|     public int removeById(Long id){ | 
|      | 
|         return articleRecordDao.deleteById(id); | 
|      | 
|     } | 
|      | 
|     @Override | 
|     public int removeByModel(ArticleRecord articleRecord){ | 
|      | 
|         return articleRecordDao.deleteByModel(articleRecord); | 
|      | 
|     } | 
|      | 
|      | 
|     @Override | 
|     public List<ArticleRecord> findInPage(ArticleRecord articleRecord,  PaginationVO pageVo){ | 
|      | 
|         return articleRecordDao.selectInPage(articleRecord , pageVo); | 
|      | 
|     } | 
|      | 
|     @Override | 
|     public List<ArticleRecord> findByModel(ArticleRecord articleRecord){ | 
|      | 
|         return articleRecordDao.selectByModel(articleRecord); | 
|      | 
|     } | 
|      | 
|     @Override | 
|     public int  findTotal(ArticleRecord articleRecord){ | 
|      | 
|         return articleRecordDao.selectTotalRecord(articleRecord); | 
|      | 
|     } | 
|      | 
|     @Override | 
|     public ArticleRecord  findById(Long id){ | 
|      | 
|         return articleRecordDao.selectById(id); | 
|      | 
|     } | 
|   | 
|         | 
|      | 
|      | 
| } |