/**
  * 添加界面
  *
  * @return
  */
 @RequestMapping(value = "/add", method = RequestMethod.GET)
 public String add(Model model) {
   Maintance maintance = new Maintance();
   maintance.setMaintanceId(CommonUtil.getCurrentTime() + CommonUtil.genID(4));
   model.addAttribute("maintance", maintance); //  默认m
   return "maintance/add";
 }
 /**
  * 显示单个id
  *
  * @param id
  * @param model
  * @return
  */
 @RequestMapping(value = "/{id}/show", method = RequestMethod.GET)
 public String getById(@PathVariable String id, Model model) throws Exception {
   Maintance MaintanceEntity = maintanceService.getBeanById(id);
   System.out.println(MaintanceEntity.toString());
   if (MaintanceEntity != null) {
     model.addAttribute("MaintanceEntity", MaintanceEntity);
   }
   return "maintance/view";
 }