From 1ef2917ea48f8b969e2b03c83ee9713fbfe223fe Mon Sep 17 00:00:00 2001 From: tangfutang Date: Tue, 12 Jan 2021 16:18:49 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=97=A5=E6=9C=9F=E6=A0=BC?= =?UTF-8?q?=E5=BC=8F=E5=8C=96=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/tenwa/app/invoice/servlet/InvoiceDownloadServlet.java | 2 +- .../tenwa/app/invoice/servlet/InvoiceLotDownloadServlet.java | 2 +- src_tenwa/com/tenwa/apzl/discount/AssetsOffCallBack.java | 2 +- .../rentplaninvoice/rentPlanInvoiceDirectManager.java | 2 +- .../invoicemanager/rentplaninvoice/rentPlanInvoiceManager.java | 2 +- .../lease/app/invoicemanager/InvoiceManagerController.java | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src_invoice/com/tenwa/app/invoice/servlet/InvoiceDownloadServlet.java b/src_invoice/com/tenwa/app/invoice/servlet/InvoiceDownloadServlet.java index 03e0cf910..9b3780627 100644 --- a/src_invoice/com/tenwa/app/invoice/servlet/InvoiceDownloadServlet.java +++ b/src_invoice/com/tenwa/app/invoice/servlet/InvoiceDownloadServlet.java @@ -87,7 +87,7 @@ public class InvoiceDownloadServlet extends HttpServlet { File file = new File(localFile); if (!file.exists()) throw new Exception("文件不存在"); - SimpleDateFormat dateFormat = new SimpleDateFormat("YYYYMMddHHmmss"); + SimpleDateFormat dateFormat = new SimpleDateFormat("yyyyMMddHHmmss"); String filename = contract_no+dateFormat.format(new Date()) + ".pdf"; //String filename = contract_no + ".pdf"; response.setContentType(getServletContext().getMimeType(filename)); diff --git a/src_invoice/com/tenwa/app/invoice/servlet/InvoiceLotDownloadServlet.java b/src_invoice/com/tenwa/app/invoice/servlet/InvoiceLotDownloadServlet.java index 318744e76..831393c33 100644 --- a/src_invoice/com/tenwa/app/invoice/servlet/InvoiceLotDownloadServlet.java +++ b/src_invoice/com/tenwa/app/invoice/servlet/InvoiceLotDownloadServlet.java @@ -125,7 +125,7 @@ public class InvoiceLotDownloadServlet extends HttpServlet { ARE.getLog().error("AttachmentView SQL Error:", e); } } - SimpleDateFormat dateFormat = new SimpleDateFormat("YYYYMMddHHmmss"); + SimpleDateFormat dateFormat = new SimpleDateFormat("yyyyMMddHHmmss"); String filename = dateFormat.format(new Date()) + ".zip"; //String zipFilename ="E:/liuzhaoCopyPDF/"+filename; String zipFilename =zipLocalPath+"/"+filename; diff --git a/src_tenwa/com/tenwa/apzl/discount/AssetsOffCallBack.java b/src_tenwa/com/tenwa/apzl/discount/AssetsOffCallBack.java index 84ddd122d..d4f55bf08 100644 --- a/src_tenwa/com/tenwa/apzl/discount/AssetsOffCallBack.java +++ b/src_tenwa/com/tenwa/apzl/discount/AssetsOffCallBack.java @@ -124,7 +124,7 @@ public class AssetsOffCallBack extends BaseImportExcelCallBack{ boolean flag = false; String insertSql=""; Date date = new Date(); - String date1 = new SimpleDateFormat("YYYY/MM/dd HH:mm:ss").format(date); + String date1 = new SimpleDateFormat("yyyy/MM/dd HH:mm:ss").format(date); /** * 校验重复导入 diff --git a/src_tenwa/com/tenwa/apzl/invoicemanager/rentplaninvoice/rentPlanInvoiceDirectManager.java b/src_tenwa/com/tenwa/apzl/invoicemanager/rentplaninvoice/rentPlanInvoiceDirectManager.java index 25cf48f36..bad176cc0 100644 --- a/src_tenwa/com/tenwa/apzl/invoicemanager/rentplaninvoice/rentPlanInvoiceDirectManager.java +++ b/src_tenwa/com/tenwa/apzl/invoicemanager/rentplaninvoice/rentPlanInvoiceDirectManager.java @@ -1128,7 +1128,7 @@ public class rentPlanInvoiceDirectManager extends BaseTable{ pdfurl = responseBase.getBody().getPdfurl(); if (confirmResult == null || "".equals(localF) || localF == null) { - SimpleDateFormat dateFormat = new SimpleDateFormat("YYYYMMdd"); + SimpleDateFormat dateFormat = new SimpleDateFormat("yyyyMMdd"); String ydm = dateFormat.format(new Date()); path = File.separator + ydm.substring(0, 4) diff --git a/src_tenwa/com/tenwa/apzl/invoicemanager/rentplaninvoice/rentPlanInvoiceManager.java b/src_tenwa/com/tenwa/apzl/invoicemanager/rentplaninvoice/rentPlanInvoiceManager.java index 0e843c51b..014dc1cd2 100644 --- a/src_tenwa/com/tenwa/apzl/invoicemanager/rentplaninvoice/rentPlanInvoiceManager.java +++ b/src_tenwa/com/tenwa/apzl/invoicemanager/rentplaninvoice/rentPlanInvoiceManager.java @@ -692,7 +692,7 @@ public class rentPlanInvoiceManager extends BaseTable { if (confirmResult == null || "".equals(localF) || localF == null) { SimpleDateFormat dateFormat = new SimpleDateFormat( - "YYYYMMdd"); + "yyyyMMdd"); String ydm = dateFormat.format(new Date()); path = File.separator + ydm.substring(0, 4) diff --git a/src_tenwa/com/tenwa/lease/app/invoicemanager/InvoiceManagerController.java b/src_tenwa/com/tenwa/lease/app/invoicemanager/InvoiceManagerController.java index 1398646dd..18a6e17a1 100644 --- a/src_tenwa/com/tenwa/lease/app/invoicemanager/InvoiceManagerController.java +++ b/src_tenwa/com/tenwa/lease/app/invoicemanager/InvoiceManagerController.java @@ -816,7 +816,7 @@ public class InvoiceManagerController extends BaseTable{ String path=""; if("0".equals(returncode)){ pdfurl = responseBase.getBody().getPdfurl(); - SimpleDateFormat dateFormat = new SimpleDateFormat("YYYYMMdd"); + SimpleDateFormat dateFormat = new SimpleDateFormat("yyyyMMdd"); String ydm = dateFormat.format(new Date()); path = File.separator + ydm.substring(0, 4)+File.separator + ydm.substring(4, 6)+File.separator + ydm.substring(6, 8);