Explorar o código

안전인증 배치 수정

eskim %!s(int64=5) %!d(string=hai) anos
pai
achega
a84851b7ba

+ 1 - 1
style24.batch/src/main/java/com/style24/batch/biz/dao/TsbGoodsDao.java

@@ -237,7 +237,7 @@ public interface TsbGoodsDao {
 	 * @author eskim
 	 * @since 2020. 12. 04
 	 */
-	void saveGoodsSafeNo();
+	void saveGoodsSafeNo(GoodsSafeNo goodsSafeNo);
 
 
 }

+ 1 - 1
style24.batch/src/main/java/com/style24/batch/biz/service/TsbGoodsService.java

@@ -303,7 +303,7 @@ public class TsbGoodsService {
 					goodsSafeNo.setCertNum(result.get("certNum").toString());
 					goodsSafeNo.setRegNo(TsbConstants.REG_NO);
 					goodsSafeNo.setUpdNo(TsbConstants.REG_NO);
-					goodsDao.saveGoodsSafeNo();
+					goodsDao.saveGoodsSafeNo(goodsSafeNo);
 				}
 			} catch (Exception e) {
 				// do nothing

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

@@ -148,7 +148,7 @@ public class TsbGoodsTask {
 	 * @throws Exception
 	 */
 	@Scheduled(cron = "${cron.goods.infants.safe}")
-	//@Scheduled(fixedDelay = 3500000)
+	@Scheduled(fixedDelay = 3500000)
 	@Async
 	public void tsbGoodsInfantsSafeNoJob() throws Exception {
 		goodsInfantsSafeNoJob.run("cron.goods.infants.safe");

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

@@ -1002,7 +1002,7 @@
 	</insert>
 	
 	<!--  안전인증대상 상품 조회 -->
-	<select id="getGoodsSafeNoList" >
+	<select id="getGoodsSafeNoList"   resultType="GoodsSafeNo">
 		/* TsbGoods.getGoodsSafeNoList */
 		SELECT B.GOODS_CD
 		     , B.GOODS_NUM

+ 1 - 0
style24.batch/src/main/resources/config/application-locd.yml

@@ -48,6 +48,7 @@ cron:
         benefit.price: 2 22 2 29 2 ?
         relate.score: 2 22 2 29 2 ?
         summary: 2 22 2 29 2 ?
+        infants.safe: 2 22 2 29 2 ?
     
     #통계
     statistics:

+ 1 - 1
style24.core/src/main/java/com/style24/core/biz/thirdparty/SafetyKoreaApi.java

@@ -111,7 +111,7 @@ public class SafetyKoreaApi {
 
 		if (kcNo.getResultCode() != null && kcNo.getResultCode().equals("2000")) { // 성공
 			result.set("certNum", kcNo.getResultData().iterator().next().getCertNum());
-			result.set("certDt", kcNo.getResultData().iterator().next().getCertChgDate() );
+			result.set("certDt", kcNo.getResultData().iterator().next().getCertDate() );
 			return result;
 		}