| package com.matrix.system.hive.service.imp; | 
|   | 
|   | 
| import com.matrix.core.pojo.PaginationVO; | 
| import com.matrix.system.hive.bean.ArticleType; | 
| import com.matrix.system.hive.dao.ArticleTypeDao; | 
| import com.matrix.system.hive.service.ArticleTypeService; | 
| import org.springframework.stereotype.Service; | 
| import org.springframework.beans.factory.annotation.Autowired; | 
| import java.util.List; | 
|   | 
| /** | 
|  * | 
|  * @date 2016-07-15 11:19 | 
|  */ | 
| @Service("articleTypeService") | 
| public class  ArticleTypeServiceImpl implements ArticleTypeService { | 
|   | 
|      | 
|     @Autowired | 
|     private ArticleTypeDao articleTypeDao; | 
|      | 
|      | 
|     @Override | 
|     public int add(ArticleType articleType){ | 
|          | 
|         return articleTypeDao.insert(articleType); | 
|          | 
|     } | 
|         | 
|     @Override | 
|     public int modify(ArticleType articleType){ | 
|      | 
|         return articleTypeDao.update(articleType); | 
|      | 
|     } | 
|      | 
|     @Override | 
|     public int remove(List<Long> list){ | 
|      | 
|         return articleTypeDao.deleteByIds(list); | 
|      | 
|     } | 
|   | 
|     @Override | 
|     public int removeById(Long id){ | 
|      | 
|         return articleTypeDao.deleteById(id); | 
|      | 
|     } | 
|      | 
|     @Override | 
|     public List<ArticleType> findInPage(ArticleType articleType,  PaginationVO pageVo){ | 
|      | 
|         return articleTypeDao.selectInPage(articleType , pageVo); | 
|      | 
|     } | 
|      | 
|     @Override | 
|     public List<ArticleType> findByModel(ArticleType articleType){ | 
|      | 
|         return articleTypeDao.selectByModel(articleType); | 
|      | 
|     } | 
|      | 
|     @Override | 
|     public int  findTotal(ArticleType articleType){ | 
|      | 
|         return articleTypeDao.selectTotalRecord(articleType); | 
|      | 
|     } | 
|      | 
|     @Override | 
|     public ArticleType  findById(Long id){ | 
|      | 
|         return articleTypeDao.selectById(id); | 
|      | 
|     } | 
|   | 
|         | 
|      | 
|      | 
| } |