파일 경로 구분자 수정(파트 엑셀 업로드) #68
@@ -1793,7 +1793,9 @@ public class PartMngService extends BaseService {
|
||||
String path = CommonUtils.checkNull(fileMap.get("FILE_PATH"));
|
||||
String fileName = CommonUtils.checkNull(fileMap.get("SAVED_FILE_NAME"));
|
||||
|
||||
FileInputStream fis = new FileInputStream(path+"\\"+fileName);
|
||||
// OS에 관계없이 올바른 경로 생성
|
||||
File excelFile = new File(path, fileName);
|
||||
FileInputStream fis = new FileInputStream(excelFile);
|
||||
XSSFWorkbook workBook = new XSSFWorkbook(fis);
|
||||
XSSFSheet sheet = workBook.getSheetAt(0);
|
||||
HashMap partMap = new HashMap();
|
||||
@@ -2786,7 +2788,10 @@ public class PartMngService extends BaseService {
|
||||
HashMap fileMap = (HashMap)fileList.get(0);
|
||||
String path = CommonUtils.checkNull(fileMap.get("FILE_PATH"));
|
||||
String fileName = CommonUtils.checkNull(fileMap.get("SAVED_FILE_NAME"));
|
||||
FileInputStream fis = new FileInputStream(path+"\\"+fileName);
|
||||
|
||||
// OS에 관계없이 올바른 경로 생성
|
||||
File excelFile = new File(path, fileName);
|
||||
FileInputStream fis = new FileInputStream(excelFile);
|
||||
//XSSFWorkbook workBook = new XSSFWorkbook(fis);
|
||||
//FormulaEvaluator formulaEval = workBook.getCreationHelper().createFormulaEvaluator();
|
||||
//XSSFSheet sheet = workBook.getSheetAt(0);
|
||||
@@ -3807,13 +3812,15 @@ public class PartMngService extends BaseService {
|
||||
System.out.println("projectNo:"+projectNo);
|
||||
if(null != fileList && 1 == fileList.size()){
|
||||
HashMap fileMap = (HashMap)fileList.get(0);
|
||||
|
||||
String path = CommonUtils.checkNull(fileMap.get("FILE_PATH"));
|
||||
String fileName = CommonUtils.checkNull(fileMap.get("SAVED_FILE_NAME"));
|
||||
|
||||
String path = CommonUtils.checkNull(fileMap.get("FILE_PATH"));
|
||||
String fileName = CommonUtils.checkNull(fileMap.get("SAVED_FILE_NAME"));
|
||||
|
||||
//boolean isLoggingBoolean = false;
|
||||
|
||||
FileInputStream fis = new FileInputStream(path+"\\"+fileName);
|
||||
// OS에 관계없이 올바른 경로 생성
|
||||
File excelFile = new File(path, fileName);
|
||||
FileInputStream fis = new FileInputStream(excelFile);
|
||||
//XSSFWorkbook workBook = new XSSFWorkbook(fis);
|
||||
//FormulaEvaluator formulaEval = workBook.getCreationHelper().createFormulaEvaluator();
|
||||
//XSSFSheet sheet = workBook.getSheetAt(0);
|
||||
@@ -4164,7 +4171,9 @@ public class PartMngService extends BaseService {
|
||||
String path = CommonUtils.checkNull(fileMap.get("FILE_PATH"));
|
||||
String fileName = CommonUtils.checkNull(fileMap.get("SAVED_FILE_NAME"));
|
||||
|
||||
FileInputStream fis = new FileInputStream(path+"\\"+fileName);
|
||||
// OS에 관계없이 올바른 경로 생성
|
||||
File excelFile = new File(path, fileName);
|
||||
FileInputStream fis = new FileInputStream(excelFile);
|
||||
|
||||
Workbook workBook = null;
|
||||
if (fileName.endsWith(".xls") || fileName.endsWith(".XLS")) {
|
||||
|
||||
Reference in New Issue
Block a user