|
|
@@ -1,9 +1,7 @@
|
|
|
package com.style24.batch.biz.service;
|
|
|
|
|
|
import java.io.IOException;
|
|
|
-import java.util.ArrayList;
|
|
|
import java.util.Collection;
|
|
|
-import java.util.List;
|
|
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
@@ -459,34 +457,34 @@ public class TsbGoodsService {
|
|
|
@Transactional("shopTxnManager")
|
|
|
public void createWmsProductSkuHst(String jobdate) {
|
|
|
|
|
|
- // TB_IF_PRODUCTSKU_TEMP 작업
|
|
|
- goodsDao.deleteIfProductSku();
|
|
|
-
|
|
|
- // TB_IF_PRODUCTSKU_TEMP 생성
|
|
|
- Collection<IfProductSku> wmsIfProductSukList = wmsGoodsService.getWmsIfProductSukList();
|
|
|
- String byrow = "N";
|
|
|
- if ("Y".equals(byrow)) {
|
|
|
- for(IfProductSku ifProductSku : wmsIfProductSukList) {
|
|
|
- goodsDao.createIfProductSkuByRow(ifProductSku);
|
|
|
- }
|
|
|
- }else {
|
|
|
-
|
|
|
- List<IfProductSku> productSukList = new ArrayList<IfProductSku>();
|
|
|
-
|
|
|
- GagaMap dataMap = new GagaMap();
|
|
|
- int index = 0;
|
|
|
- for(IfProductSku ifProductSku : wmsIfProductSukList) {
|
|
|
-
|
|
|
- productSukList.add(ifProductSku);
|
|
|
- index++;
|
|
|
- if (index % 200 == 0 || wmsIfProductSukList.size() == index) {
|
|
|
- dataMap.set("productSukList", productSukList);
|
|
|
- goodsDao.createIfProductSku(dataMap);
|
|
|
- productSukList.clear();
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- }
|
|
|
+// // TB_IF_PRODUCTSKU_TEMP 작업
|
|
|
+// goodsDao.deleteIfProductSku();
|
|
|
+//
|
|
|
+// // TB_IF_PRODUCTSKU_TEMP 생성
|
|
|
+// Collection<IfProductSku> wmsIfProductSukList = wmsGoodsService.getWmsIfProductSukList();
|
|
|
+// String byrow = "N";
|
|
|
+// if ("Y".equals(byrow)) {
|
|
|
+// for(IfProductSku ifProductSku : wmsIfProductSukList) {
|
|
|
+// goodsDao.createIfProductSkuByRow(ifProductSku);
|
|
|
+// }
|
|
|
+// }else {
|
|
|
+//
|
|
|
+// List<IfProductSku> productSukList = new ArrayList<IfProductSku>();
|
|
|
+//
|
|
|
+// GagaMap dataMap = new GagaMap();
|
|
|
+// int index = 0;
|
|
|
+// for(IfProductSku ifProductSku : wmsIfProductSukList) {
|
|
|
+//
|
|
|
+// productSukList.add(ifProductSku);
|
|
|
+// index++;
|
|
|
+// if (index % 200 == 0 || wmsIfProductSukList.size() == index) {
|
|
|
+// dataMap.set("productSukList", productSukList);
|
|
|
+// goodsDao.createIfProductSku(dataMap);
|
|
|
+// productSukList.clear();
|
|
|
+// }
|
|
|
+// }
|
|
|
+//
|
|
|
+// }
|
|
|
|
|
|
// TB_IF_PRODUCTSKU_HST 2달 전 데이터 삭제
|
|
|
String delYyyymmdd = GagaDateUtil.getOffsetMonth(-2, "yyyyMMdd") + "000000"; //년월일시분초
|
|
|
@@ -625,7 +623,7 @@ public class TsbGoodsService {
|
|
|
goodsDao.createIfProductSku(dataMap);
|
|
|
}
|
|
|
|
|
|
-
|
|
|
+
|
|
|
/**
|
|
|
* TB_IF_PRODUCTSKU_HST 저장
|
|
|
*
|