|
|
@@ -1,52 +1,53 @@
|
|
|
-package com.style24.batch.biz.job.goods;
|
|
|
-
|
|
|
-import org.springframework.beans.factory.annotation.Autowired;
|
|
|
-import org.springframework.stereotype.Component;
|
|
|
-
|
|
|
-import com.style24.batch.biz.job.TsbAbstractJob;
|
|
|
-import com.style24.batch.biz.service.TsbGoodsService;
|
|
|
-import com.style24.persistence.domain.Goods;
|
|
|
-
|
|
|
-import lombok.extern.slf4j.Slf4j;
|
|
|
-
|
|
|
-/**
|
|
|
- * 전시상품 통계정보 작업 - 일배치
|
|
|
- *
|
|
|
- * @author eskim
|
|
|
- * @since 2020. 12. 04
|
|
|
- */
|
|
|
-@Component
|
|
|
-@Slf4j
|
|
|
-public class TsbGoodsSummaryJob extends TsbAbstractJob<Goods, Goods, Goods> {
|
|
|
-
|
|
|
- @Autowired
|
|
|
- private TsbGoodsService goodsService;
|
|
|
-
|
|
|
- private int succCnt = 0;
|
|
|
- private int failCnt = 0;
|
|
|
-
|
|
|
- @Override
|
|
|
- public Goods read() throws Exception {
|
|
|
-
|
|
|
- Goods goods = new Goods();
|
|
|
- return goods;
|
|
|
- }
|
|
|
-
|
|
|
- @Override
|
|
|
- public Goods process(Goods goods) throws Exception {
|
|
|
- return goods;
|
|
|
- }
|
|
|
-
|
|
|
- @Override
|
|
|
- public Goods write(Goods goods) throws Exception {
|
|
|
-
|
|
|
- goodsService.createGoodsSummary();
|
|
|
- return goods;
|
|
|
- }
|
|
|
-
|
|
|
- @Override
|
|
|
- public void notify(Goods goods) throws Exception {
|
|
|
- super.printResult(succCnt, failCnt);
|
|
|
- }
|
|
|
-
|
|
|
-}
|
|
|
+package com.style24.batch.biz.job.goods;
|
|
|
+
|
|
|
+import org.springframework.beans.factory.annotation.Autowired;
|
|
|
+import org.springframework.stereotype.Component;
|
|
|
+
|
|
|
+import com.style24.batch.biz.job.TsbAbstractJob;
|
|
|
+import com.style24.batch.biz.service.TsbGoodsService;
|
|
|
+import com.style24.persistence.domain.Goods;
|
|
|
+
|
|
|
+import lombok.extern.slf4j.Slf4j;
|
|
|
+
|
|
|
+/**
|
|
|
+ * 전시상품 통계정보 작업 - 일배치
|
|
|
+ *
|
|
|
+ * @author eskim
|
|
|
+ * @since 2020. 12. 04
|
|
|
+ */
|
|
|
+@Component
|
|
|
+@Slf4j
|
|
|
+public class TsbGoodsSummaryJob extends TsbAbstractJob<Goods, Goods, Goods> {
|
|
|
+
|
|
|
+ @Autowired
|
|
|
+ private TsbGoodsService goodsService;
|
|
|
+
|
|
|
+ private int succCnt = 0;
|
|
|
+ private int failCnt = 0;
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public Goods read() throws Exception {
|
|
|
+
|
|
|
+ Goods goods = new Goods();
|
|
|
+ return goods;
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public Goods process(Goods goods) throws Exception {
|
|
|
+ return goods;
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public Goods write(Goods goods) throws Exception {
|
|
|
+
|
|
|
+ goodsService.createGoodsSummary();
|
|
|
+ goodsService.updateBrandDisplayYn();
|
|
|
+ return goods;
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public void notify(Goods goods) throws Exception {
|
|
|
+ super.printResult(succCnt, failCnt);
|
|
|
+ }
|
|
|
+
|
|
|
+}
|