|
@@ -264,6 +264,21 @@ public class ScFileDownloadService {
|
|
outputWriter.flush();
|
|
outputWriter.flush();
|
|
csvWriter.close();
|
|
csvWriter.close();
|
|
outputWriter.close();
|
|
outputWriter.close();
|
|
|
|
+
|
|
|
|
+// FileWriter writer = new FileWriter("ixrMngm.csv", Charset.forName("MS949"));
|
|
|
|
+// StatefulBeanToCsv<TbScIxrMngm> beanToCsv = new StatefulBeanToCsvBuilder<TbScIxrMngm>(writer)
|
|
|
|
+// .withSeparator(CSVWriter.DEFAULT_SEPARATOR)
|
|
|
|
+// .withQuotechar(CSVWriter.NO_QUOTE_CHARACTER)
|
|
|
|
+// .withEscapechar(CSVWriter.DEFAULT_ESCAPE_CHARACTER)
|
|
|
|
+// .withLineEnd(CSVWriter.DEFAULT_LINE_END)
|
|
|
|
+// .build();
|
|
|
|
+// try {
|
|
|
|
+// beanToCsv.write(dataList);
|
|
|
|
+// } catch (CsvDataTypeMismatchException e) {
|
|
|
|
+// throw new RuntimeException(e);
|
|
|
|
+// } catch (CsvRequiredFieldEmptyException e) {
|
|
|
|
+// throw new RuntimeException(e);
|
|
|
|
+// }
|
|
} catch (IOException e) {
|
|
} catch (IOException e) {
|
|
throw new RuntimeException("파일 저장 중 오류가 발생했습니다.");
|
|
throw new RuntimeException("파일 저장 중 오류가 발생했습니다.");
|
|
}
|
|
}
|