Просмотр исходного кода

Merge branch 'develop' of http://112.172.147.34:4936/style24/style24.batch.git into develop

eskim 4 лет назад
Родитель
Сommit
219135516e

+ 5 - 2
src/main/java/com/style24/batch/biz/job/shoplinker/TsbShoplinkerInvoiceJob.java

@@ -6,6 +6,7 @@ import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.core.env.Environment;
 import org.springframework.stereotype.Component;
 
+import com.gagaframework.web.util.GagaDateUtil;
 import com.style24.batch.biz.job.TsbAbstractJob;
 import com.style24.core.biz.service.TscShoplinkerService;
 import com.style24.persistence.domain.ShoplinkerInvoice;
@@ -43,9 +44,11 @@ public class TsbShoplinkerInvoiceJob extends TsbAbstractJob<Collection<Shoplinke
 	@Override
 	public String write(Collection<ShoplinkerInvoice> list) throws Exception {
 
+		String toDt = GagaDateUtil.getToday("yyyyMMdd");
+		
 		ShoplinkerInvoice shoplinkerInvoice = new ShoplinkerInvoice();
-		shoplinkerInvoice.setXmlPath(env.getProperty("shoplinker.xml.path")+"/invoice");
-		shoplinkerInvoice.setDomainUrl(env.getProperty("shoplinker.xml.view")+"/invoice");
+		shoplinkerInvoice.setXmlPath(env.getProperty("shoplinker.xml.path")+"/invoice/"+toDt);
+		shoplinkerInvoice.setDomainUrl(env.getProperty("shoplinker.xml.view")+"/invoice/"+toDt);
 		shoplinkerInvoice.setCustomerId(env.getProperty("shoplinker.customer_id"));
 
 		shoplinkerService.createShoplinkerInvoiceXml(shoplinkerInvoice, list);

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

@@ -199,7 +199,7 @@ public class TsbShoplinkerStockJob extends TsbAbstractJob<Collection<ShoplinkerG
 		shoplinkerService.insertShoplinerApiHst(map);
 
 		// 생성 파일삭제
-		GagaFileUtil.deleteFile(GagaFileUtil.getConcatenationPath(map.getXmlPath(), xmlFileName.toString()));
+		//GagaFileUtil.deleteFile(GagaFileUtil.getConcatenationPath(map.getXmlPath(), xmlFileName.toString()));
 
 		return succCnt;
 	}