// 获得指定类型,传Map
 @Transactional(readOnly = true)
 public Map<String, String> getDictionaryItems(String type) throws Exception {
   List<Dictionary> dictionaryItems = this.getListByType(type);
   Map<String, String> map = Maps.newHashMap();
   map.put("", "");
   if (!dictionaryItems.isEmpty()) {
     for (Dictionary o : dictionaryItems) {
       map.put(o.getId(), o.getName());
     }
   }
   return map;
 }
 public void save(Dictionary dictionary) throws Exception {
   dictionary.setCreateBy(SpringSecurityUtils.getCurrentUserName());
   dictionaryDao.save(dictionary);
 }