/**
  * 기 등록 된 지식맵(지식유형)링 정보를 수정 한다.
  *
  * @param konTypeNm - 지식맵(지식유형) model
  * @return String - 리턴 Url
  * @param MapMaterialVO
  */
 @RequestMapping(value = "/dam/map/mat/EgovComDamMapMaterialModify.do")
 public String updateMapMaterial(
     @ModelAttribute("loginVO") LoginVO loginVO,
     @ModelAttribute("knoTypeCd") MapMaterial mapMaterial,
     BindingResult bindingResult,
     Map commandMap,
     ModelMap model)
     throws Exception {
   String sCmd = commandMap.get("cmd") == null ? "" : (String) commandMap.get("cmd");
   if (sCmd.equals("")) {
     MapMaterial vo = mapMaterialService.selectMapMaterial(mapMaterial);
     model.addAttribute("mapMaterial", vo);
     return "egovframework/com/dam/map/mat/EgovComDamMapMaterialModify";
   } else if (sCmd.equals("Modify")) {
     beanValidator.validate(mapMaterial, bindingResult);
     if (bindingResult.hasErrors()) {
       MapMaterial vo = mapMaterialService.selectMapMaterial(mapMaterial);
       model.addAttribute("mapMaterial", vo);
       return "egovframework/com/dam/map/mat/EgovComDamMapMaterialModify";
     }
     mapMaterial.setFrstRegisterId(loginVO.getUniqId());
     mapMaterialService.updateMapMaterial(mapMaterial);
     return "forward:/dam/map/mat/EgovComDamMapMaterialList.do";
   } else {
     return "forward:/dam/map/mat/EgovComDamMapMaterialList.do";
   }
 }
 /**
  * 지식맵(지식유형)상세 정보를 조회 한다.
  *
  * @param MapMaterialVO - 지식맵(지식유형) VO
  * @return String - 리턴 Url
  * @param MapMaterialVO
  */
 @RequestMapping(value = "/dam/map/mat/EgovComDamMapMaterial.do")
 public String selectMapMaterial(
     @ModelAttribute("loginVO") LoginVO loginVO, MapMaterial mapMaterial, ModelMap model)
     throws Exception {
   MapMaterial vo = mapMaterialService.selectMapMaterial(mapMaterial);
   model.addAttribute("result", vo);
   return "egovframework/com/dam/map/mat/EgovComDamMapMaterialDetail";
 }