@Override
  public int add(String userid, String bookId, String price) {
    logger.info("PurchaseServiceImpl : add 진입");

    SimpleDateFormat sdf = new SimpleDateFormat("yyyyMMdd");
    SimpleDateFormat sdf2 = new SimpleDateFormat("HHmmss");
    Calendar c1 = Calendar.getInstance();
    String purToday = sdf.format(c1.getTime());
    String var = "-";
    String strToday2 = sdf2.format(c1.getTime());
    String result = purToday + var + strToday2;

    logger.info("넘어온 책 아이디 : " + bookId);
    logger.info("넘어온 유저 아이디 : " + userid);
    logger.info("넘어온 책 가격 : " + price);
    logger.info("생성된 주문번호 : " + result);
    int price_int = TypeChange(price);
    logger.info("형 변환된 책 가격 : " + price_int);
    purchase.setPurNum(result);
    purchase.setSum(price_int);
    purchase.setAccNum(purToday);
    purchase.setUserid(userid);
    purchase.setBookid(bookId);

    PurchaseMapper mapper = sqlSession.getMapper(PurchaseMapper.class);
    return mapper.add(purchase);
  }
 @Override
 public List<PurchaseVO> getList() {
   logger.info("PurchaseServiceImpl : getList 진입");
   PurchaseMapper mapper = sqlSession.getMapper(PurchaseMapper.class);
   List<PurchaseVO> list = mapper.getList();
   logger.info("getList 리턴값 : {}", list);
   return list;
 }
 @Override
 public int change(PurchaseVO o) {
   logger.info("PurchaseServiceImpl : change 진입");
   PurchaseMapper mapper = sqlSession.getMapper(PurchaseMapper.class);
   return mapper.change(o);
 }
 @Override
 public List<PurchaseVO> searchByAccNum(String accountNum) {
   logger.info("PurchaseServiceImpl : searchByAccNum 진입");
   PurchaseMapper mapper = sqlSession.getMapper(PurchaseMapper.class);
   return mapper.searchByAccNum(accountNum);
 }
 @Override
 public PurchaseVO searchBypurNum(String purNum) {
   logger.info("PurchaseServiceImpl : searchBypurNum 진입");
   PurchaseMapper mapper = sqlSession.getMapper(PurchaseMapper.class);
   return mapper.searchBypurNum(purNum);
 }
 @Override
 public int remove(String purNum) {
   logger.info("PurchaseServiceImpl : remove 진입");
   PurchaseMapper mapper = sqlSession.getMapper(PurchaseMapper.class);
   return mapper.remove(purNum);
 }