Ver código fonte

Merge remote-tracking branch 'origin/develop' into jsh77b

jsh77b 4 anos atrás
pai
commit
5ffdd0072d

+ 13 - 3
src/main/java/com/style24/batch/biz/job/shoplinker/TsbShoplinkerStockJob.java

@@ -137,6 +137,8 @@ public class TsbShoplinkerStockJob extends TsbAbstractJob<Collection<ShoplinkerG
 	private int callGoodsRegApi(ShoplinkerGoods map, StringBuilder sbRequest, String fileNm) throws IOException {
 
 		int succCnt = 0;
+		String xmlPath = "";
+		String xmlUrl = "";
 		String responseXmlData = "";
 		StringBuilder xmlFileName = new StringBuilder();
 		com.gagaframework.shoplinker.domain.goods.result.Shoplinker shoplinkerResult;
@@ -148,9 +150,9 @@ public class TsbShoplinkerStockJob extends TsbAbstractJob<Collection<ShoplinkerG
 			// XML 파일 생성
 			xmlFileName = new StringBuilder();
 			xmlFileName.append("stock_"+fileNm).append(".xml");
-			String xmlPath = GagaFileUtil.getConcatenationPath(map.getXmlPath(), xmlFileName.toString());
+			xmlPath = GagaFileUtil.getConcatenationPath(map.getXmlPath(), xmlFileName.toString());
 			shoplinkerUtil.makeRequestXmlFile(sbRequest.toString(), xmlPath);
-			String xmlUrl = GagaFileUtil.getConcatenationPath(map.getDomainUrl(), xmlFileName.toString());
+			xmlUrl = GagaFileUtil.getConcatenationPath(map.getDomainUrl(), xmlFileName.toString());
 
 			// API 호출URL
 			String apiUrl = GagaShoplinkerConstants.API_DOMAIN + map.getApiSubUrl() + URLEncoder.encode(xmlUrl);
@@ -175,7 +177,15 @@ public class TsbShoplinkerStockJob extends TsbAbstractJob<Collection<ShoplinkerG
 
 		} catch (Exception e) {
 			log.error("callGoodsRegApi error", e);
-			map.setXmlTxt(sbRequest.toString());
+			
+			java.io.File file = new java.io.File(xmlUrl);
+			String errStr = "[파일존재여부] : "+file.exists();
+			errStr += "\n[xmlPath] : "+xmlPath;
+			errStr += "\n[xmlUrl] : "+xmlUrl;
+			errStr += "\n\n[responseXmlData] : "+responseXmlData;
+			errStr += "\n\n[xml] : "+sbRequest.toString();
+			
+			map.setXmlTxt(errStr);
 			map.setApiResult(TscConstants.ShoplinkerApiStat.S_ERROR.value());
 			map.setApiMessage("API 오류 " +StringUtils.abbreviate(responseXmlData, 0 , 120));
 

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

@@ -4172,7 +4172,7 @@
 	</delete>
 
 	<!-- 최근등록된 상품 100개 생성 -->
-	<insert id="createRecentlyRegisterGoods" timeout="300">
+	<insert id="createRecentlyRegisterGoods" timeout="600">
 		/* TsbDisplay.createRecentlyRegisterGoods */
 		INSERT INTO TB_RECENT_REG_GOODS (
 		       MAIN_GB

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

@@ -281,7 +281,7 @@
 	</update>
 
 	<!-- 상품타이틀 변경 -->
-	<update id="updateGoodsTnm">
+	<update id="updateGoodsTnm" timeout="600">
 		/* TsbGoods.updateGoodsTnm */
 		WITH TAB AS (
 		    SELECT RS.GOODS_CD

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

@@ -349,7 +349,7 @@
 	</insert>
 	
 	<!-- EP네이버 현재 데이터 생성 -->
-	<insert id="createCurrentEpNaver" parameterType="GoodsEp" timeout="360">
+	<insert id="createCurrentEpNaver" parameterType="GoodsEp" timeout="1000">
 		/* TsbGoodsEp.createCurrentEpNaver */
 		INSERT INTO TB_EP_NAVER (
 		       GB

+ 1 - 1
src/main/resources/config/application-brdg.yml

@@ -161,7 +161,7 @@ cron:
     shoplinker:
         #stock.send10: 0 0 10 * * *          #재고 10시 (1일 1회)
         stock.send10: 2 22 2 29 2 ?          #재고 10시 (1일 1회)
-        stock.send15: 0 50 * * * *           #재고 15시 (1일 1회)
+        stock.send15: 0 0/20 * * * *           #재고 15시 (1일 1회)
         #order.receive: 0 5 5-15 * * MON-FRI #주문 (평일 5시 ~ 15시 5분에 실행)
         order.receive: 2 22 2 29 2 ?         #주문 (평일 5시 ~ 15시 5분에 실행)
         #invoice.send: 0 16 * * * *          #송장 (1시간 1회)