| package com.matrix.system.hive.service.imp; | 
|   | 
| import com.matrix.core.pojo.PaginationVO; | 
|   | 
|   | 
| import com.matrix.system.hive.bean.SysInstoreDetail; | 
| import com.matrix.system.hive.dao.SysInstoreDetailDao; | 
| import com.matrix.system.hive.service.SysInstoreDetailService; | 
| import org.springframework.stereotype.Service; | 
| import org.springframework.beans.factory.annotation.Autowired; | 
|   | 
| import java.util.List; | 
|   | 
| /** | 
|  * | 
|  * @date 2016-07-15 13:10 | 
|  */ | 
| @Service("sysInstoreDetailService") | 
| public class  SysInstoreDetailServiceImpl implements SysInstoreDetailService { | 
|   | 
|      | 
|     @Autowired | 
|     private SysInstoreDetailDao sysInstoreDetailDao; | 
|      | 
|      | 
|     @Override | 
|     public int add(SysInstoreDetail sysInstoreDetail){ | 
|          | 
|         return sysInstoreDetailDao.insert(sysInstoreDetail); | 
|          | 
|     } | 
|         | 
|     @Override | 
|     public int modify(SysInstoreDetail sysInstoreDetail){ | 
|      | 
|         return sysInstoreDetailDao.update(sysInstoreDetail); | 
|      | 
|     } | 
|      | 
|     @Override | 
|     public int remove(List<Long> list){ | 
|      | 
|         return sysInstoreDetailDao.deleteByIds(list); | 
|      | 
|     } | 
|   | 
|     @Override | 
|     public int removeById(Long id){ | 
|      | 
|         return sysInstoreDetailDao.deleteById(id); | 
|      | 
|     }  | 
|      | 
|     @Override | 
|     public List<SysInstoreDetail> findInPage(SysInstoreDetail sysInstoreDetail,  PaginationVO pageVo){ | 
|      | 
|         return sysInstoreDetailDao.selectInPage(sysInstoreDetail , pageVo); | 
|      | 
|     } | 
|      | 
|     @Override | 
|     public List<SysInstoreDetail> findByModel(SysInstoreDetail sysInstoreDetail){ | 
|      | 
|         return sysInstoreDetailDao.selectByModel(sysInstoreDetail); | 
|      | 
|     } | 
|      | 
|     @Override | 
|     public int  findTotal(SysInstoreDetail sysInstoreDetail){ | 
|      | 
|         return sysInstoreDetailDao.selectTotalRecord(sysInstoreDetail); | 
|      | 
|     } | 
|      | 
|     @Override | 
|     public SysInstoreDetail  findById(Long id){ | 
|      | 
|         return sysInstoreDetailDao.selectById(id); | 
|      | 
|     } | 
|   | 
|      | 
|      | 
| } |