|
|
@@ -41,11 +41,8 @@ public class TsbShoplinkerStockJob extends TsbAbstractJob<Collection<ShoplinkerG
|
|
|
@Override
|
|
|
public Collection<ShoplinkerGoods> read() throws Exception {
|
|
|
|
|
|
- String toDt = GagaDateUtil.getToday("yyyyMMdd");
|
|
|
- if( !toDt.equals("20210901")) { // 0901은 수동배치
|
|
|
- // 재고 변경정보 수정
|
|
|
- shoplinkerService.updateSyncStock();
|
|
|
- }
|
|
|
+ // 재고 변경정보 수정
|
|
|
+ shoplinkerService.updateSyncStock();
|
|
|
|
|
|
// 재고 변경 목록
|
|
|
return shoplinkerService.getSyncStockList();
|
|
|
@@ -180,14 +177,14 @@ public class TsbShoplinkerStockJob extends TsbAbstractJob<Collection<ShoplinkerG
|
|
|
|
|
|
} catch (Exception e) {
|
|
|
log.error("callGoodsRegApi error", e);
|
|
|
-
|
|
|
+
|
|
|
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));
|