示例#1
0
  @RequestMapping(value = "/family/{id}", method = RequestMethod.GET)
  public String initEmpFamily(
      Locale locale,
      @ModelAttribute(value = "family") Family family,
      ModelMap model,
      @PathVariable("id") Integer id,
      @ModelAttribute FamilyDto familyDto) {

    // init page for display page

    logger.info("Welcome to employee family(list) locale: " + locale);

    Employee employee = employeeService.findById(id);

    List<MasRelationType> masRelationTypeList = masRelationService.findAll();
    model.addAttribute("family", family);
    model.addAttribute("masRelationTypeList", masRelationTypeList);
    model.addAttribute("appId", employee.getApplicant().getId());
    familyDto.setEmployeeId(id);
    model.addAttribute("id", familyDto.getEmployeeId());

    return "/family/familychange";
  }