| package com.matrix.system.hive.service.imp; | 
|   | 
| import java.util.List; | 
|   | 
| import com.matrix.core.pojo.PaginationVO; | 
| import com.matrix.system.hive.bean.SysVipLevel; | 
| import com.matrix.system.hive.dao.SysVipLevelDao; | 
| import com.matrix.system.hive.service.SysVipLevelService; | 
| import org.springframework.beans.factory.annotation.Autowired; | 
| import org.springframework.stereotype.Service; | 
|   | 
|   | 
| /** | 
|  * | 
|  * @date 2016-07-03 20:53 | 
|  */ | 
| @Service("sysVipLevelService") | 
| public class  SysVipLevelServiceImpl implements SysVipLevelService { | 
|   | 
|      | 
|     @Autowired | 
|     private SysVipLevelDao sysVipLevelDao; | 
|      | 
|      | 
|     @Override | 
|     public int add(SysVipLevel sysVipLevel){ | 
|          | 
|         return sysVipLevelDao.insert(sysVipLevel); | 
|          | 
|     } | 
|         | 
|     @Override | 
|     public int modify(SysVipLevel sysVipLevel){ | 
|      | 
|         return sysVipLevelDao.update(sysVipLevel); | 
|      | 
|     } | 
|      | 
|     @Override | 
|     public int remove(List<Long> list){ | 
|      | 
|         return sysVipLevelDao.deleteByIds(list); | 
|      | 
|     } | 
|   | 
|     @Override | 
|     public int removeById(Long id){ | 
|      | 
|         return sysVipLevelDao.deleteById(id); | 
|      | 
|     } | 
|      | 
|     @Override | 
|     public List<SysVipLevel> findInPage(SysVipLevel sysVipLevel,  PaginationVO pageVo){ | 
|      | 
|         return sysVipLevelDao.selectInPage(sysVipLevel , pageVo); | 
|      | 
|     } | 
|      | 
|     @Override | 
|     public List<SysVipLevel> findByModel(SysVipLevel sysVipLevel){ | 
|      | 
|         return sysVipLevelDao.selectByModel(sysVipLevel); | 
|      | 
|     } | 
|      | 
|     @Override | 
|     public int  findTotal(SysVipLevel sysVipLevel){ | 
|      | 
|         return sysVipLevelDao.selectTotalRecord(sysVipLevel); | 
|      | 
|     } | 
|      | 
|     @Override | 
|     public SysVipLevel  findById(Long id){ | 
|      | 
|         return sysVipLevelDao.selectById(id); | 
|      | 
|     } | 
|   | 
|         | 
|      | 
|      | 
| } |