| package com.matrix.system.hive.service.imp; | 
|   | 
| import com.matrix.core.pojo.PaginationVO; | 
|   | 
|   | 
| import com.matrix.system.hive.bean.SysOutStoreItem; | 
| import com.matrix.system.hive.dao.SysOutStoreItemDao; | 
| import com.matrix.system.hive.service.SysOutStoreItemService; | 
| import org.springframework.stereotype.Service; | 
| import org.springframework.beans.factory.annotation.Autowired; | 
|   | 
| import java.util.List; | 
|   | 
| /** | 
|  * | 
|  * @date 2016-07-25 12:43 | 
|  */ | 
| @Service("sysOutStoreItemService") | 
| public class  SysOutStoreItemServiceImpl implements SysOutStoreItemService { | 
|   | 
|      | 
|     @Autowired | 
|     private SysOutStoreItemDao sysOutStoreItemDao; | 
|      | 
|      | 
|     @Override | 
|     public int add(SysOutStoreItem sysOutStoreItem){ | 
|          | 
|         return sysOutStoreItemDao.insert(sysOutStoreItem); | 
|          | 
|     } | 
|         | 
|     @Override | 
|     public int modify(SysOutStoreItem sysOutStoreItem){ | 
|      | 
|         return sysOutStoreItemDao.update(sysOutStoreItem); | 
|      | 
|     } | 
|      | 
|     @Override | 
|     public int remove(List<Long> list){ | 
|      | 
|         return sysOutStoreItemDao.deleteByIds(list); | 
|      | 
|     } | 
|   | 
|     @Override | 
|     public int removeById(Long id){ | 
|      | 
|         return sysOutStoreItemDao.deleteById(id); | 
|      | 
|     } | 
|      | 
|     @Override | 
|     public List<SysOutStoreItem> findInPage(SysOutStoreItem sysOutStoreItem,  PaginationVO pageVo){ | 
|      | 
|         return sysOutStoreItemDao.selectInPage(sysOutStoreItem , pageVo); | 
|      | 
|     } | 
|      | 
|     @Override | 
|     public List<SysOutStoreItem> findByModel(SysOutStoreItem sysOutStoreItem){ | 
|      | 
|         return sysOutStoreItemDao.selectByModel(sysOutStoreItem); | 
|      | 
|     } | 
|      | 
|     @Override | 
|     public int  findTotal(SysOutStoreItem sysOutStoreItem){ | 
|      | 
|         return sysOutStoreItemDao.selectTotalRecord(sysOutStoreItem); | 
|      | 
|     } | 
|      | 
|     @Override | 
|     public SysOutStoreItem  findById(Long id){ | 
|      | 
|         return sysOutStoreItemDao.selectById(id); | 
|      | 
|     } | 
|   | 
|         | 
|      | 
|      | 
| } |