-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weโll occasionally send you account related emails.
Already on GitHub? Sign in to your account
๐ :: (#275) Excel ์ถ๊ฐ #276
Conversation
Codecov Report
@@ Coverage Diff @@
## main #276 +/- ##
============================================
- Coverage 35.51% 34.62% -0.90%
Complexity 256 256
============================================
Files 229 233 +4
Lines 2044 2097 +53
Branches 34 38 +4
============================================
Hits 726 726
- Misses 1307 1360 +53
Partials 11 11
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
...astructure/src/main/java/kr/hs/entrydsm/yapaghetti/domain/teacher/excel/CreateExcelImpl.java
Outdated
Show resolved
Hide resolved
...astructure/src/main/java/kr/hs/entrydsm/yapaghetti/domain/teacher/excel/CreateExcelImpl.java
Outdated
Show resolved
Hide resolved
...astructure/src/main/java/kr/hs/entrydsm/yapaghetti/domain/teacher/excel/CreateExcelImpl.java
Outdated
Show resolved
Hide resolved
...e/src/main/java/kr/hs/entrydsm/yapaghetti/domain/teacher/excel/exception/ExcelErrorCode.java
Outdated
Show resolved
Hide resolved
...cture/src/main/java/kr/hs/entrydsm/yapaghetti/domain/teacher/excel/CreateExcelInterface.java
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
์ ๋ฐ์ ์ผ๋ก ๋ณ์๋ช ๊ด๋ฆฌ๊ฐ ํ์ํ ๊ฒ ๊ฐ์์.
.../src/main/java/kr/hs/entrydsm/yapaghetti/domain/teacher/excel/exception/ExcelOException.java
Outdated
Show resolved
Hide resolved
.../src/main/java/kr/hs/entrydsm/yapaghetti/domain/teacher/excel/exception/ExcelOException.java
Outdated
Show resolved
Hide resolved
...astructure/src/main/java/kr/hs/entrydsm/yapaghetti/domain/teacher/excel/CreateExcelImpl.java
Outdated
Show resolved
Hide resolved
...astructure/src/main/java/kr/hs/entrydsm/yapaghetti/domain/teacher/excel/CreateExcelImpl.java
Outdated
Show resolved
Hide resolved
...astructure/src/main/java/kr/hs/entrydsm/yapaghetti/domain/teacher/excel/CreateExcelImpl.java
Outdated
Show resolved
Hide resolved
...astructure/src/main/java/kr/hs/entrydsm/yapaghetti/domain/teacher/excel/CreateExcelImpl.java
Outdated
Show resolved
Hide resolved
for (StudentElementByGradeClassNum element : excelElement) { | ||
Row row = sheet.createRow(rowNum++); | ||
row.createCell(0).setCellValue(element.getGcn()); | ||
row.createCell(1).setCellValue(element.getName()); | ||
row.createCell(2).setCellValue(element.isFeedbackStatus() ? "O" : null); | ||
row.createCell(3).setCellValue(element.isSubmitted() ? "O" : null); | ||
row.createCell(4).setCellValue(element.isPublicStatus() ? "O" : null); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
p5;
excelElement.stream()
.forEach(element -> {
...
})
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
์๊ณ ํ์ จ์ต๋๋ค ๐๐๐
} | ||
|
||
try { | ||
String time = LocalDateTime.now() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
p3; ํ์์กด ๊ด๋ฆฌ๋ ๋ฐ๋ก ํ์ ์์๊น์?
...astructure/src/main/java/kr/hs/entrydsm/yapaghetti/domain/teacher/excel/CreateExcelImpl.java
Outdated
Show resolved
Hide resolved
...astructure/src/main/java/kr/hs/entrydsm/yapaghetti/domain/teacher/excel/CreateExcelImpl.java
Outdated
Show resolved
Hide resolved
...astructure/src/main/java/kr/hs/entrydsm/yapaghetti/domain/teacher/excel/CreateExcelImpl.java
Outdated
Show resolved
Hide resolved
@GetMapping("/excel") | ||
public void getExcel(HttpServletResponse response) { | ||
createExcelInterface.execute(response); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
p5; ๋ ์ข์ ๋ค๋ฅธ ๋ฐฉ๋ฒ์ด ์์ ๊ฒ ๊ฐ์์...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OutputStream์ ๊ทธ๋๋ก return ํ๋ฉด ์ด๋ป๊ฒ ๋๋ ค๋?
์์ ์ ๋น์ทํ๊ฒ ํ๋๊ฑฐ ๊ฐ์๋, ํจ ์ฝ์ง ํด๋ด๋ฐ
https://github.com/EntryDSM/Husky/blob/master/src/main/java/kr/hs/entrydsm/husky/domain/pdf/controller/PDFExportController.java
...astructure/src/main/java/kr/hs/entrydsm/yapaghetti/domain/teacher/excel/CreateExcelImpl.java
Outdated
Show resolved
Hide resolved
...e/src/main/java/kr/hs/entrydsm/yapaghetti/domain/teacher/excel/exception/ExcelErrorCode.java
Outdated
Show resolved
Hide resolved
์์ฐ๊ณ์ ์ผ๋ก ๋๊ธ์ ๋จ๊ฑฐ์ผ ์๋๋ฉด ์์ฐ๊ฐ ์ด์ค์ธ๊ฒฉ์ด๋๊ฑฐ์ผ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
์ ์ง๋ด๋
@GetMapping("/excel") | ||
public void getExcel(HttpServletResponse response) { | ||
createExcelInterface.execute(response); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OutputStream์ ๊ทธ๋๋ก return ํ๋ฉด ์ด๋ป๊ฒ ๋๋ ค๋?
์์ ์ ๋น์ทํ๊ฒ ํ๋๊ฑฐ ๊ฐ์๋, ํจ ์ฝ์ง ํด๋ด๋ฐ
https://github.com/EntryDSM/Husky/blob/master/src/main/java/kr/hs/entrydsm/husky/domain/pdf/controller/PDFExportController.java
...astructure/src/main/java/kr/hs/entrydsm/yapaghetti/domain/teacher/excel/CreateExcelImpl.java
Outdated
Show resolved
Hide resolved
...astructure/src/main/java/kr/hs/entrydsm/yapaghetti/domain/teacher/excel/CreateExcelImpl.java
Outdated
Show resolved
Hide resolved
queryDSL ํจ์๋ช ์ ์ ์, ๋ค๋ฅธ ๋ถ๋ถ์์๋ ์ฌ์ฉํจ์ผ๋ก, #277 ํตํด ์์ ํ๊ฒ ์ต๋๋ค.P. S |
close #275
ํ์ฌ ํ์๋ค์ ์ ๋ณด( ํ๋ฒ, ์ด๋ฆ, ๋๊ธฐ ๋ฌธ์ ์ฌ๋ถ, ๊ณต๊ฐ ๋ฌธ์ ์ฌ๋ถ, ํผ๋๋ฐฑ ์ํ)๋ฅผ ํฌํจํ ์์ ์ ๋ค์ด๋ก๋ ๋ฐ๋ API์ ๋๋ค.