Exemplo n.º 1
0
 /**
  * 版本添加、修改页面跳转
  *
  * @param icon
  * @param req
  * @return
  */
 @RequestMapping(params = "aouVersion")
 public ModelAndView aouVersion(TSVersion version, HttpServletRequest req) {
   if (StringUtil.isNotEmpty(version.getId())) {
     version = systemService.getEntity(TSVersion.class, version.getId());
     req.setAttribute("version", version);
   }
   return new ModelAndView("system/version/version");
 }
Exemplo n.º 2
0
  /** 删除版本操作 */
  @RequestMapping(params = "delVersion")
  @ResponseBody
  @DeleteAnnotation
  public AjaxJson delVersion(TSVersion version, HttpServletRequest request) {
    AjaxJson j = new AjaxJson();
    version = systemService.getEntity(TSVersion.class, version.getId());
    message = "版本:" + version.getVersionUrl() + "被删除成功";
    systemService.delete(version);
    // systemService.addLog(message, Globals.Log_Type_DEL, Globals.Log_Leavel_INFO);

    return j;
  }