@@ -32,7 +32,6 @@ public void artWorkImageSaveAll(List<ArtWorkImage> imgList) {
3232 artWorkImageBatchInsert (bowl );
3333 }
3434 }
35-
3635 //배치 사이즈(500)를 못채우고 나오거나, 총데이터가 505개라 5개가 남으면 남은것 인서트
3736 if (!bowl .isEmpty ()) {
3837 artWorkImageBatchInsert (bowl );
@@ -53,9 +52,6 @@ public void postImageSaveAll(List<PostImage> imgList) {
5352 postImageBatchInsert (bowl );
5453 }
5554 }
56-
57-
58-
5955 public void postTagImageSaveAll (List <PostTag > tagList ) {
6056 List <PostTag > bowl = new ArrayList <>();
6157 for (int i = 0 ; i < tagList .size (); i ++) {
@@ -75,7 +71,6 @@ public void postTagImageSaveAll(List<PostTag> tagList) {
7571 private void postTagBatchInsert (List <PostTag > bowl ) {
7672 jdbcTemplate .batchUpdate ("insert into post_tag(`hash_tag`, `post_id`) VALUES (?, ?)" ,
7773 new BatchPreparedStatementSetter () {
78- // TODO 직접 insert 하기 때문에 재설정 필요
7974 @ Override
8075 public void setValues (PreparedStatement ps , int i ) throws SQLException {
8176 ps .setString (1 , bowl .get (i ).getHashTag ());
@@ -92,7 +87,7 @@ public int getBatchSize() {
9287 private void postImageBatchInsert (List <PostImage > bowl ) {
9388 jdbcTemplate .batchUpdate ("insert into post_image(`post_img`, `post_id`) VALUES (?, ?)" ,
9489 new BatchPreparedStatementSetter () {
95- // TODO 직접 insert 하기 때문에 재설정 필요
90+
9691 @ Override
9792 public void setValues (PreparedStatement ps , int i ) throws SQLException {
9893 ps .setString (1 , bowl .get (i ).getPostImg ());
@@ -108,7 +103,7 @@ public int getBatchSize() {
108103 private void artWorkImageBatchInsert (List <ArtWorkImage > bowl ) {
109104 jdbcTemplate .batchUpdate ("insert into art_work_image(`artwork_img`, `artwork_id`) VALUES (?, ?)" ,
110105 new BatchPreparedStatementSetter () {
111- // TODO 직접 insert 하기 때문에 재설정 필요
106+
112107 @ Override
113108 public void setValues (PreparedStatement ps , int i ) throws SQLException {
114109 ps .setString (1 , bowl .get (i ).getArtworkImg ());
0 commit comments