|
|
@@ -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);
|