diff --git a/VamPa/src/main/java/com/vam/model/BookVO.java b/VamPa/src/main/java/com/vam/model/BookVO.java index bca0cbe..31f7d40 100644 --- a/VamPa/src/main/java/com/vam/model/BookVO.java +++ b/VamPa/src/main/java/com/vam/model/BookVO.java @@ -1,6 +1,7 @@ package com.vam.model; import java.util.Date; +import java.util.List; public class BookVO { @@ -48,6 +49,9 @@ public class BookVO { /* 수정 날짜 */ private Date updateDate; + + /* 이미지 정보 */ + private List imageList; public int getBookId() { return bookId; @@ -169,15 +173,21 @@ public class BookVO { this.updateDate = updateDate; } + public List getImageList() { + return imageList; + } + + public void setImageList(List imageList) { + this.imageList = imageList; + } + @Override public String toString() { return "BookVO [bookId=" + bookId + ", bookName=" + bookName + ", authorId=" + authorId + ", authorName=" + authorName + ", publeYear=" + publeYear + ", publisher=" + publisher + ", cateCode=" + cateCode + ", cateName=" + cateName + ", bookPrice=" + bookPrice + ", bookStock=" + bookStock + ", bookDiscount=" + bookDiscount + ", bookIntro=" + bookIntro + ", bookContents=" + bookContents + ", regDate=" + regDate - + ", updateDate=" + updateDate + "]"; + + ", updateDate=" + updateDate + ", imageList=" + imageList + "]"; } - - - + } diff --git a/VamPa/src/main/webapp/WEB-INF/views/admin/goodsEnroll.jsp b/VamPa/src/main/webapp/WEB-INF/views/admin/goodsEnroll.jsp index 69fa890..6427a73 100644 --- a/VamPa/src/main/webapp/WEB-INF/views/admin/goodsEnroll.jsp +++ b/VamPa/src/main/webapp/WEB-INF/views/admin/goodsEnroll.jsp @@ -596,6 +596,9 @@ $("#enrollBtn").on("click",function(e){ str += "
"; str += ""; str += "
x
"; + str += ""; + str += ""; + str += ""; str += "
"; uploadResult.append(str); diff --git a/VamPa/target/m2e-wtp/web-resources/META-INF/maven/com.vam/controller/pom.properties b/VamPa/target/m2e-wtp/web-resources/META-INF/maven/com.vam/controller/pom.properties index d7193cf..2c5300d 100644 --- a/VamPa/target/m2e-wtp/web-resources/META-INF/maven/com.vam/controller/pom.properties +++ b/VamPa/target/m2e-wtp/web-resources/META-INF/maven/com.vam/controller/pom.properties @@ -1,5 +1,5 @@ #Generated by Maven Integration for Eclipse -#Wed Jun 02 01:27:11 KST 2021 +#Thu Jun 03 20:56:13 KST 2021 m2e.projectLocation=C\:\\Users\\sjinj\\git\\Blog_Project2\\VamPa m2e.projectName=VamPa groupId=com.vam diff --git a/VamPa_MySQL/src/main/java/com/vam/model/BookVO.java b/VamPa_MySQL/src/main/java/com/vam/model/BookVO.java index 978a63d..4de7853 100644 --- a/VamPa_MySQL/src/main/java/com/vam/model/BookVO.java +++ b/VamPa_MySQL/src/main/java/com/vam/model/BookVO.java @@ -1,6 +1,7 @@ package com.vam.model; import java.util.Date; +import java.util.List; public class BookVO { @@ -48,6 +49,9 @@ public class BookVO { /* 수정 날짜 */ private Date updateDate; + + /* 이미지 정보 */ + private List imageList; public int getBookId() { return bookId; @@ -169,12 +173,21 @@ public class BookVO { this.updateDate = updateDate; } + public List getImageList() { + return imageList; + } + + public void setImageList(List imageList) { + this.imageList = imageList; + } + @Override public String toString() { return "BookVO [bookId=" + bookId + ", bookName=" + bookName + ", authorId=" + authorId + ", authorName=" + authorName + ", publeYear=" + publeYear + ", publisher=" + publisher + ", cateCode=" + cateCode + ", cateName=" + cateName + ", bookPrice=" + bookPrice + ", bookStock=" + bookStock + ", bookDiscount=" + bookDiscount + ", bookIntro=" + bookIntro + ", bookContents=" + bookContents + ", regDate=" + regDate - + ", updateDate=" + updateDate + "]"; + + ", updateDate=" + updateDate + ", imageList=" + imageList + "]"; } + } diff --git a/VamPa_MySQL/src/main/webapp/WEB-INF/views/admin/goodsEnroll.jsp b/VamPa_MySQL/src/main/webapp/WEB-INF/views/admin/goodsEnroll.jsp index a44485b..1d85292 100644 --- a/VamPa_MySQL/src/main/webapp/WEB-INF/views/admin/goodsEnroll.jsp +++ b/VamPa_MySQL/src/main/webapp/WEB-INF/views/admin/goodsEnroll.jsp @@ -539,6 +539,9 @@ $("#enrollBtn").on("click",function(e){ str += "
"; str += ""; str += "
x
"; + str += ""; + str += ""; + str += ""; str += "
"; uploadResult.append(str); diff --git a/VamPa_MySQL/target/m2e-wtp/web-resources/META-INF/maven/com.vam/controller/pom.properties b/VamPa_MySQL/target/m2e-wtp/web-resources/META-INF/maven/com.vam/controller/pom.properties index a9b4394..a05647d 100644 --- a/VamPa_MySQL/target/m2e-wtp/web-resources/META-INF/maven/com.vam/controller/pom.properties +++ b/VamPa_MySQL/target/m2e-wtp/web-resources/META-INF/maven/com.vam/controller/pom.properties @@ -1,5 +1,5 @@ #Generated by Maven Integration for Eclipse -#Wed Jun 02 01:27:11 KST 2021 +#Thu Jun 03 20:56:14 KST 2021 m2e.projectLocation=C\:\\Users\\sjinj\\git\\Blog_Project2\\VamPa_MySQL m2e.projectName=VamPa_MySQL groupId=com.vam