| package com.matrix.system.common.service.impl; | 
|   | 
| import com.matrix.core.pojo.PaginationVO; | 
| import com.matrix.system.common.bean.SystemDictionary; | 
| import com.matrix.system.common.dao.SystemDictionaryDao; | 
| import com.matrix.system.common.service.SystemDictionaryService; | 
| import org.springframework.beans.factory.annotation.Autowired; | 
| import org.springframework.stereotype.Service; | 
|   | 
| import java.util.List; | 
|   | 
|   | 
| /** | 
|  * | 
|  * @date 2016-07-03 20:53 | 
|  */ | 
| @Service("sysDataDictionaryService") | 
| public class SystemDictionaryServiceImpl implements SystemDictionaryService { | 
|   | 
|      | 
|     @Autowired | 
|     private SystemDictionaryDao sysDataDictionaryDao; | 
|      | 
|      | 
|     @Override | 
|     public int add(SystemDictionary sysDataDictionary){ | 
|          | 
|         return sysDataDictionaryDao.insert(sysDataDictionary); | 
|          | 
|     } | 
|         | 
|     @Override | 
|     public int modify(SystemDictionary sysDataDictionary){ | 
|      | 
|         return sysDataDictionaryDao.update(sysDataDictionary); | 
|      | 
|     } | 
|      | 
|     @Override | 
|     public int remove(List<Long> list){ | 
|      | 
|         return sysDataDictionaryDao.deleteByIds(list); | 
|      | 
|     } | 
|   | 
|     @Override | 
|     public int removeById(Long id){ | 
|      | 
|         return sysDataDictionaryDao.deleteById(id); | 
|      | 
|     } | 
|      | 
|     @Override | 
|     public List<SystemDictionary> findInPage(SystemDictionary sysDataDictionary, PaginationVO pageVo){ | 
|      | 
|         return sysDataDictionaryDao.selectInPage(sysDataDictionary , pageVo); | 
|      | 
|     } | 
|      | 
|     @Override | 
|     public List<SystemDictionary> findByModel(SystemDictionary sysDataDictionary){ | 
|      | 
|         return sysDataDictionaryDao.selectByModel(sysDataDictionary); | 
|      | 
|     } | 
|      | 
|     @Override | 
|     public int  findTotal(SystemDictionary sysDataDictionary){ | 
|      | 
|         return sysDataDictionaryDao.selectTotalRecord(sysDataDictionary); | 
|      | 
|     } | 
|      | 
|     @Override | 
|     public SystemDictionary findById(Long id){ | 
|      | 
|         return sysDataDictionaryDao.selectById(id); | 
|      | 
|     } | 
|   | 
|     @Override | 
|     public List<String> getDictionaryType() { | 
|   | 
|         List<String> list=sysDataDictionaryDao.getDictionaryType(); | 
|         return list; | 
|     } | 
|   | 
|      | 
| } |