/**
  * 펫 정보 수정시 펫 리스트에서 선택된 petName과 session의 petOwnerNo를 이용하여 펫 정보를 반환
  *
  * @param povo
  * @author 강신후, 장형원
  */
 @Override
 public PetOwnerVO findPetByPetName(PetOwnerVO povo) {
   HashMap<String, Object> map = new HashMap<String, Object>();
   System.out.println(povo);
   map.put("petOwnerNo", povo.getPetOwnerNo());
   if (povo.getPetVO() != null) {
     for (int i = 0; i < povo.getPetVO().size(); i++) {
       map.put("petVO", povo.getPetVO().get(i));
     }
   }
   return petOwnerDAO.findPetByPetName(map);
 }
 /**
  * PET_OWNER table에 전화번호가 등록되어 있는 보호자 회원가입
  *
  * @param povo
  * @author 장형원
  */
 @Transactional
 @Override
 public void registerPetOwnerByTel(PetOwnerVO povo) throws Exception {
   petOwnerDAO.registerPetOwnerByTel(povo);
   HashMap<String, Object> pom = new HashMap<String, Object>();
   pom.put("petOwnerNo", petOwnerDAO.loginPetOwner(povo).getPetOwnerNo());
   if (povo.getPetVO() != null) {
     for (int i = 0; i < povo.getPetVO().size(); i++) {
       pom.put("petVO", povo.getPetVO().get(i));
       petOwnerDAO.registerPet(pom);
     }
   }
 }
 /**
  * 펫 등록
  *
  * @param povo
  * @author 강신후, 장형원
  */
 @Transactional
 @Override
 public void registerPet(PetOwnerVO povo) throws Exception {
   HashMap<String, Object> map = new HashMap<String, Object>();
   System.out.println(povo);
   map.put("petOwnerNo", povo.getPetOwnerNo());
   if (povo.getPetVO() != null) {
     for (int i = 0; i < povo.getPetVO().size(); i++) {
       map.put("petVO", povo.getPetVO().get(i));
       petOwnerDAO.registerPet(map);
     }
   }
 }
 @Override
 public String checkPetNameAjax(PetOwnerVO povo) {
   HashMap<String, Object> map = new HashMap<String, Object>();
   map.put("petOwnerNo", povo.getPetOwnerNo());
   map.put("petVO", povo.getPetVO().get(0));
   System.out.println(petOwnerDAO.findPetByPetName(map));
   if (petOwnerDAO.findPetByPetName(map) == null) {
     return "ok";
   } else {
     return "fail";
   }
 }