| package com.matrix.system.hive.service.imp; | 
|    | 
| import com.matrix.core.pojo.PaginationVO; | 
| import com.matrix.system.hive.dao.SysSupplierTypeDao; | 
| import com.matrix.system.hive.bean.SysSupplierType; | 
|   | 
| import com.matrix.system.hive.service.SysSupplierTypeService; | 
| import org.springframework.stereotype.Service; | 
| import org.springframework.beans.factory.annotation.Autowired; | 
|   | 
| import java.util.List; | 
|   | 
| /** | 
|  * | 
|  * @date 2016-07-18 11:21 | 
|  */ | 
| @Service("sysSupplierTypeService") | 
| public class  SysSupplierTypeServiceImpl implements SysSupplierTypeService { | 
|   | 
|      | 
|     @Autowired | 
|     private SysSupplierTypeDao sysSupplierTypeDao; | 
|      | 
|      | 
|     @Override | 
|     public int add(SysSupplierType sysSupplierType){ | 
|          | 
|         return sysSupplierTypeDao.insert(sysSupplierType); | 
|          | 
|     } | 
|         | 
|     @Override | 
|     public int modify(SysSupplierType sysSupplierType){ | 
|      | 
|         return sysSupplierTypeDao.update(sysSupplierType); | 
|      | 
|     } | 
|      | 
|     @Override | 
|     public int remove(List<Long> list){ | 
|      | 
|         return sysSupplierTypeDao.deleteByIds(list); | 
|      | 
|     } | 
|   | 
|     @Override | 
|     public int removeById(Long iD){ | 
|      | 
|         return sysSupplierTypeDao.deleteById(iD); | 
|      | 
|     } | 
|      | 
|     @Override | 
|     public List<SysSupplierType> findInPage(SysSupplierType sysSupplierType,  PaginationVO pageVo){ | 
|      | 
|         return sysSupplierTypeDao.selectInPage(sysSupplierType , pageVo); | 
|      | 
|     } | 
|      | 
|     @Override | 
|     public List<SysSupplierType> findByModel(SysSupplierType sysSupplierType){ | 
|      | 
|         return sysSupplierTypeDao.selectByModel(sysSupplierType); | 
|      | 
|     } | 
|      | 
|     @Override | 
|     public int  findTotal(SysSupplierType sysSupplierType){ | 
|      | 
|         return sysSupplierTypeDao.selectTotalRecord(sysSupplierType); | 
|      | 
|     } | 
|      | 
|     @Override | 
|     public SysSupplierType  findById(Long iD){ | 
|      | 
|         return sysSupplierTypeDao.selectById(iD); | 
|      | 
|     } | 
|   | 
|         | 
|      | 
|      | 
| } |