|
|
@@ -5,6 +5,7 @@ import org.springframework.stereotype.Component;
|
|
|
|
|
|
import com.style24.batch.biz.job.TsbAbstractJob;
|
|
|
import com.style24.batch.biz.service.TsbGoodsService;
|
|
|
+import com.style24.core.biz.thirdparty.SafetyKoreaApi;
|
|
|
import com.style24.persistence.domain.Goods;
|
|
|
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
@@ -22,12 +23,17 @@ public class TsbGoodsTnmJob extends TsbAbstractJob<Goods, Goods, Goods> {
|
|
|
@Autowired
|
|
|
private TsbGoodsService goodsService;
|
|
|
|
|
|
+ @Autowired
|
|
|
+ private SafetyKoreaApi safetyKoreaApi;
|
|
|
+
|
|
|
+
|
|
|
private int succCnt = 0;
|
|
|
private int failCnt = 0;
|
|
|
|
|
|
@Override
|
|
|
public Goods read() throws Exception {
|
|
|
|
|
|
+ log.info(safetyKoreaApi.getKoreaCertifyNo("MNW1BQKP20"));
|
|
|
Goods goods = new Goods();
|
|
|
return goods;
|
|
|
}
|