Ejemplo n.º 1
0
 /**
  * @Title: edit @Description: TODO(编辑页面)
  *
  * @param @param id
  * @param @return
  * @param @throws BussinessException 设定文件
  * @return ModelAndView 返回类型
  * @throws
  */
 @RequestMapping(value = "/{id}", method = RequestMethod.GET)
 public ModelAndView edit(@PathVariable(value = "id") String id) throws BussinessException {
   ModelAndView mv = new ModelAndView("syrkgl/ryRyjlSave");
   RyRyjlxxb entity = ryRyjlxxbService.queryById(id);
   if (entity == null) {
     throw new BussinessException("查询无数据!");
   }
   mv.addObject("entity", entity);
   return mv;
 }