Package com.ketayao.ketacustom.entity.main

Examples of com.ketayao.ketacustom.entity.main.Dictionary


  }
 
  @ModelAttribute("preloadDictionary")
  public Dictionary preload(@RequestParam(value = "id", required = false) Long id) {
    if (id != null) {
      Dictionary dictionary = dictionaryService.get(id);
      return dictionary;
    }
    return null;
  }
View Full Code Here


  }
 
  @RequiresPermissions("Dictionary:edit")
  @RequestMapping(value="/update/{id}", method=RequestMethod.GET)
  public String preUpdate(@PathVariable Long id, Map<String, Object> map) {
    Dictionary dictionary = dictionaryService.get(id);
    map.put("dictionary", dictionary);
    return UPDATE;
  }
View Full Code Here

  @Log(message="批量删除了id={0}数据字典。")
  @RequiresPermissions("Dictionary:delete")
  @RequestMapping(value="/delete", method=RequestMethod.POST)
  public @ResponseBody String deleteMany(Long[] ids) {
    for (int i = 0; i < ids.length; i++) {
      Dictionary dictionary = dictionaryService.get(ids[i]);
      dictionaryService.delete(dictionary.getId());
    }
   
    LogUitls.putArgs(LogMessageObject.newWrite().setObjects(new Object[]{Arrays.toString(ids)}));
    return AjaxObject.newOk("数据字典删除成功!").setCallbackType("").toString();
  }
View Full Code Here

TOP

Related Classes of com.ketayao.ketacustom.entity.main.Dictionary

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.