Commit 08410493 authored by Quxl's avatar Quxl

x

parent edb1ab1a
package com.egolm.sso.service.impl;
import java.io.IOException;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Date;
import java.util.HashMap;
......@@ -32,6 +31,7 @@ import com.egolm.sso.bean.Z_MT_SD_005_PERFORM_INVOICE.SUMMARY_GENERAL;
import com.egolm.sso.bean.Z_MT_SD_005_PERFORM_INVOICE.Z_DT_SD_005_PERFORM_INVOICE;
import com.egolm.sso.service.CommonService;
import com.egolm.sso.service.ProFormaInvoiceService;
import com.egolm.sso.util.DateUtil;
import com.egolm.sso.util.FileUtil;
import com.egolm.sso.util.SqlUtil;
import com.egolm.sso.util.SqlUtil.Sql;
......@@ -52,7 +52,7 @@ public class ProFormaInvoiceServiceImpl implements ProFormaInvoiceService {
@Transactional
public void execute(String xml) {
Date now = new Date();
String dateString = new SimpleDateFormat("yyyyMMdd").format(now);
String dateString = DateUtil.formatDate(now, DateUtil.FMT_DATE);
Z_MT_SD_005_PERFORM_INVOICE bean = XMLUtil.toBeanByJxab(xml, Z_MT_SD_005_PERFORM_INVOICE.class);
Map<String, Object> headMap = new HashMap<String, Object>();
Z_DT_SD_005_PERFORM_INVOICE Z_DT_SD_005_PERFORM_INVOICE = bean.getZ_DT_SD_005_PERFORM_INVOICE();
......@@ -109,7 +109,7 @@ public class ProFormaInvoiceServiceImpl implements ProFormaInvoiceService {
headMap.put("BATCH", dateString + "-" + common.getNextval("T_PERFORM_INVOICE_HEADER_BATCH_" + dateString));
headMap.put("SEND_STATUS", 'N');
headMap.put("SEND_TIME", now);
headMap.put("TRACE_NO", "sapproformainvoice" + new SimpleDateFormat("yyyyMMddHHmmss").format(now));
headMap.put("TRACE_NO", "sapproformainvoice" + DateUtil.formatDate(now, DateUtil.FMT_DATETIME));
headMap.put("CREATED", now);
headMap.put("CREATEDBY", "system");
headMap.put("UPDATED", null);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment