|
|
@@ -1,5 +1,6 @@
|
|
|
package com.style24.batch.biz.job.shoplinker;
|
|
|
|
|
|
+import java.io.File;
|
|
|
import java.util.Collection;
|
|
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
@@ -7,6 +8,7 @@ import org.springframework.core.env.Environment;
|
|
|
import org.springframework.stereotype.Component;
|
|
|
|
|
|
import com.gagaframework.web.util.GagaDateUtil;
|
|
|
+import com.gagaframework.web.util.GagaFileUtil;
|
|
|
import com.style24.batch.biz.job.TsbAbstractJob;
|
|
|
import com.style24.core.biz.service.TscShoplinkerService;
|
|
|
import com.style24.persistence.domain.ShoplinkerInvoice;
|
|
|
@@ -46,6 +48,13 @@ public class TsbShoplinkerInvoiceJob extends TsbAbstractJob<Collection<Shoplinke
|
|
|
|
|
|
String toDt = GagaDateUtil.getToday("yyyyMMdd");
|
|
|
|
|
|
+ //하위폴더존재확인(상품등록)
|
|
|
+ String slFolder = GagaFileUtil.getConcatenationPath(env.getProperty("shoplinker.xml.path")+"/invoice/"+toDt);
|
|
|
+ File slPath = new File(slFolder);
|
|
|
+ if (!slPath.exists()) {
|
|
|
+ slPath.mkdir();
|
|
|
+ }
|
|
|
+
|
|
|
ShoplinkerInvoice shoplinkerInvoice = new ShoplinkerInvoice();
|
|
|
shoplinkerInvoice.setXmlPath(env.getProperty("shoplinker.xml.path")+"/invoice/"+toDt);
|
|
|
shoplinkerInvoice.setDomainUrl(env.getProperty("shoplinker.xml.view")+"/invoice/"+toDt);
|