소스 검색

네이버 EP 전체 페이징 추가

jsshin 4 년 전
부모
커밋
99e17a2cb1

+ 0 - 16
src/main/java/com/style24/batch/biz/job/goods/TsbNaverAllEp.java

@@ -53,22 +53,6 @@ public class TsbNaverAllEp extends TsbAbstractJob<String, String, String> {
 
 	@Override
 	public String write(String goodsEpList) throws Exception {
-//		if (goodsEpList != null && !goodsEpList.isEmpty()) {
-//			StringBuilder sb = new StringBuilder();
-//			this.setEpTitle(sb);
-//
-//			for (GoodsEp goodsEp : goodsEpList) {
-//				this.setEpInfo(sb, goodsEp);
-//			}
-//
-//			String uploadPath = GagaFileUtil.getConcatenationPath(env.getProperty("ep.file.path"), "iStyle24ProductFeed_NaverEp_new.txt");
-//			log.info("네이버 전체EP 파일 경로: {}", uploadPath);
-//
-//			BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(new File(uploadPath)), "UTF-8"));
-//			bw.write(sb.toString());
-//			bw.flush();
-//			bw.close();
-//		}
 
 			int totalCount = naverEpService.getNaverEpListCount();
 			if (totalCount < 1 ) {

+ 1 - 2
src/main/java/com/style24/batch/biz/task/TsbGoodsTask.java

@@ -274,8 +274,7 @@ public class TsbGoodsTask {
 	 * 네이버 전체EP 생성
 	 * @throws Exception
 	 */
-	//@Scheduled(cron = "${cron.goods.ep.naver.all.goods.create}")
-	@Scheduled(fixedDelay = 350000000)
+	@Scheduled(cron = "${cron.goods.ep.naver.all.goods.create}")
 	@Async
 	public void naverAllEpCreateJob() throws Exception {
 		naverAllEp.runById("cron.goods.ep.naver.all.goods.create");

+ 1 - 1
src/main/java/com/style24/persistence/mybatis/shop/TsbGoodsEp.xml

@@ -910,7 +910,7 @@
 		     , UPDATE_TIME
 		FROM   TB_EP_NAVER
 		WHERE  GB = 'LAST'
-		ORDER BY 1
+		ORDER BY ID
 		<include refid="selectForPagingFooter"/>
 	</select>