白名单上传接口修改

master
白美平 9 months ago
parent c16b355e2d
commit c7435d9d28

@ -51,7 +51,7 @@ public class WhiteBatchImportController {
fileName="白名单模板空白";
}
fileName =fileName+".xlsx";
String fileP=com.nmgs.util.PathUtil.webappsPath+"//"+ fileName;
String fileP=com.nmgs.util.PathUtil.webappsPath+File.separator+ fileName;
LogUtil.WriteLog_Info("模板下载地址====="+fileP,"WhiteBatchImportController");
File file = new File(fileP);
// 如果文件名存在,则进行下载
@ -124,7 +124,7 @@ public class WhiteBatchImportController {
//当前项目的目录
SimpleDateFormat sdf=new SimpleDateFormat("yyyyMMdd");
String fileDirName = sdf.format(new Date());
String folderPath = com.nmgs.util.PathUtil.webappsPath + "\\CarNoFile\\"+fileDirName;
String folderPath = com.nmgs.util.PathUtil.webappsPath +File.separator+ "CarNoFile"+File.separator+fileDirName;
//每天创建一个文件目录
SimpleDateFormat sdfs=new SimpleDateFormat("hhmmss");
String afterSuffix = sdfs.format(new Date());

@ -76,7 +76,7 @@ public class WhiteBatchImportSeriveImpl implements IWhiteBatchImportSerive {
//当前项目的目录
SimpleDateFormat sdf=new SimpleDateFormat("yyyyMMdd");
String fileDirName = sdf.format(new Date());
String folderPath = com.nmgs.util.PathUtil.webappsPath + "\\CarNoFile\\"+fileDirName+"\\"+filename;
String folderPath = com.nmgs.util.PathUtil.webappsPath +File.separator+ "CarNoFile"+File.separator+fileDirName+File.separator+filename;
File fileTemp=new File(folderPath);
if (!fileTemp.exists())
{

Loading…
Cancel
Save