From 2f91f85cdb70cb98b0242af57277cff477f64d1a Mon Sep 17 00:00:00 2001 From: SeoJin Kim Date: Thu, 3 Jun 2021 23:15:11 +0900 Subject: [PATCH] =?UTF-8?q?[Spring][=EC=87=BC=ED=95=91=EB=AA=B0=20?= =?UTF-8?q?=ED=94=84=EB=A1=9C=EC=A0=9D=ED=8A=B8][27]=20=EC=97=85=EB=A1=9C?= =?UTF-8?q?=EB=93=9C=20=EC=9D=B4=EB=AF=B8=EC=A7=80=20=EC=A0=95=EB=B3=B4=20?= =?UTF-8?q?=EB=93=B1=EB=A1=9D=20-=201?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit https://kimvampa.tistory.com/227 --- VamPa/src/main/java/com/vam/model/BookVO.java | 18 ++++++++++++++---- .../webapp/WEB-INF/views/admin/goodsEnroll.jsp | 3 +++ .../maven/com.vam/controller/pom.properties | 2 +- .../src/main/java/com/vam/model/BookVO.java | 15 ++++++++++++++- .../webapp/WEB-INF/views/admin/goodsEnroll.jsp | 3 +++ .../maven/com.vam/controller/pom.properties | 2 +- 6 files changed, 36 insertions(+), 7 deletions(-) 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