示例#1
0
 @ModelAttribute
 public void prepareModel(
     HttpServletRequest request,
     Model model,
     @RequestParam(value = "id", required = false) Long id) {
   super.initPrepareModel(request, model, id);
 }
示例#2
0
 public void prepareCreate() {
   super.prepareCreate();
   String parentId = this.getParameter("parentId");
   if (StringUtils.isNotBlank(parentId) && !"NULL".equalsIgnoreCase(parentId)) {
     bindingEntity.setParent(menuService.findOne(parentId));
   }
   bindingEntity.setCode("M" + RandomStringUtils.randomNumeric(6));
 }
示例#3
0
 @Override
 public void prepareCreate() {
   super.prepareCreate();
   bindingEntity.setCode("RPT_" + RandomStringUtils.randomNumeric(6));
 }