修改日期格式化问题
This commit is contained in:
parent
9e6b752293
commit
1ef2917ea4
@ -87,7 +87,7 @@ public class InvoiceDownloadServlet extends HttpServlet {
|
|||||||
File file = new File(localFile);
|
File file = new File(localFile);
|
||||||
if (!file.exists())
|
if (!file.exists())
|
||||||
throw new Exception("文件不存在");
|
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+dateFormat.format(new Date()) + ".pdf";
|
||||||
//String filename = contract_no + ".pdf";
|
//String filename = contract_no + ".pdf";
|
||||||
response.setContentType(getServletContext().getMimeType(filename));
|
response.setContentType(getServletContext().getMimeType(filename));
|
||||||
|
|||||||
@ -125,7 +125,7 @@ public class InvoiceLotDownloadServlet extends HttpServlet {
|
|||||||
ARE.getLog().error("AttachmentView SQL Error:", e);
|
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 filename = dateFormat.format(new Date()) + ".zip";
|
||||||
//String zipFilename ="E:/liuzhaoCopyPDF/"+filename;
|
//String zipFilename ="E:/liuzhaoCopyPDF/"+filename;
|
||||||
String zipFilename =zipLocalPath+"/"+filename;
|
String zipFilename =zipLocalPath+"/"+filename;
|
||||||
|
|||||||
@ -124,7 +124,7 @@ public class AssetsOffCallBack extends BaseImportExcelCallBack{
|
|||||||
boolean flag = false;
|
boolean flag = false;
|
||||||
String insertSql="";
|
String insertSql="";
|
||||||
Date date = new Date();
|
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);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 校验重复导入
|
* 校验重复导入
|
||||||
|
|||||||
@ -1128,7 +1128,7 @@ public class rentPlanInvoiceDirectManager extends BaseTable{
|
|||||||
pdfurl = responseBase.getBody().getPdfurl();
|
pdfurl = responseBase.getBody().getPdfurl();
|
||||||
if (confirmResult == null || "".equals(localF)
|
if (confirmResult == null || "".equals(localF)
|
||||||
|| localF == null) {
|
|| localF == null) {
|
||||||
SimpleDateFormat dateFormat = new SimpleDateFormat("YYYYMMdd");
|
SimpleDateFormat dateFormat = new SimpleDateFormat("yyyyMMdd");
|
||||||
String ydm = dateFormat.format(new Date());
|
String ydm = dateFormat.format(new Date());
|
||||||
|
|
||||||
path = File.separator + ydm.substring(0, 4)
|
path = File.separator + ydm.substring(0, 4)
|
||||||
|
|||||||
@ -692,7 +692,7 @@ public class rentPlanInvoiceManager extends BaseTable {
|
|||||||
if (confirmResult == null || "".equals(localF)
|
if (confirmResult == null || "".equals(localF)
|
||||||
|| localF == null) {
|
|| localF == null) {
|
||||||
SimpleDateFormat dateFormat = new SimpleDateFormat(
|
SimpleDateFormat dateFormat = new SimpleDateFormat(
|
||||||
"YYYYMMdd");
|
"yyyyMMdd");
|
||||||
String ydm = dateFormat.format(new Date());
|
String ydm = dateFormat.format(new Date());
|
||||||
|
|
||||||
path = File.separator + ydm.substring(0, 4)
|
path = File.separator + ydm.substring(0, 4)
|
||||||
|
|||||||
@ -816,7 +816,7 @@ public class InvoiceManagerController extends BaseTable{
|
|||||||
String path="";
|
String path="";
|
||||||
if("0".equals(returncode)){
|
if("0".equals(returncode)){
|
||||||
pdfurl = responseBase.getBody().getPdfurl();
|
pdfurl = responseBase.getBody().getPdfurl();
|
||||||
SimpleDateFormat dateFormat = new SimpleDateFormat("YYYYMMdd");
|
SimpleDateFormat dateFormat = new SimpleDateFormat("yyyyMMdd");
|
||||||
String ydm = dateFormat.format(new Date());
|
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);
|
path = File.separator + ydm.substring(0, 4)+File.separator + ydm.substring(4, 6)+File.separator + ydm.substring(6, 8);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user