diff --git a/VamPa/src/main/resources/com/vam/mapper/BookMapper.xml b/VamPa/src/main/resources/com/vam/mapper/BookMapper.xml index e5f128b..8791671 100644 --- a/VamPa/src/main/resources/com/vam/mapper/BookMapper.xml +++ b/VamPa/src/main/resources/com/vam/mapper/BookMapper.xml @@ -41,7 +41,7 @@ select * from( select /*+INDEX_DESC(vam_book SYS_C008227)*/ rownum as rn, bookId, bookName, (select authorName from vam_author where vam_book.authorId = vam_author.authorId) authorName, authorId, - (select cateName from vam_bcate where vam_book.cateCode = vam_bcate.cateCode) cateName,cateCode, publisher, publeYear, bookPrice + (select cateName from vam_bcate where vam_book.cateCode = vam_bcate.cateCode) cateName,cateCode, publisher, publeYear, bookPrice,bookDiscount from vam_book where ]]> diff --git a/VamPa/src/main/webapp/WEB-INF/views/search.jsp b/VamPa/src/main/webapp/WEB-INF/views/search.jsp index ebbfccd..91dd1c3 100644 --- a/VamPa/src/main/webapp/WEB-INF/views/search.jsp +++ b/VamPa/src/main/webapp/WEB-INF/views/search.jsp @@ -59,7 +59,7 @@ 책 제목 작가 - + "> 검 색 @@ -90,6 +90,91 @@ + + + + + + + + + + + + + + + + + [${list.cateName}] + + + ${list.bookName} + + + + ${list.authorName} 지음 | ${list.publisher} | + + + + + 평점(추후 추가) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 이전 + + + + + + + ${num} + + + + + + + 다음 + + + + + + + + + + + + @@ -157,6 +242,32 @@ }); // ajax }); + + /* 페이지 이동 버튼 */ + + const moveForm = $('#moveForm'); + + $(".pageMaker_btn a").on("click", function(e){ + + e.preventDefault(); + + moveForm.find("input[name='pageNum']").val($(this).attr("href")); + + moveForm.submit(); + + }); + + + $(document).ready(function(){ + // 검색 타입 selected + const selectedType = ''; + if(selectedType != ""){ + $("select[name='type']").val(selectedType).attr("selected", "selected"); + } + + }); + +