필요없는 파일 삭제 및 TODO 삭제
This commit is contained in:
@@ -46,7 +46,7 @@ public final class DailyRecordConstants {
|
||||
* 일계부 등록 가능 일
|
||||
* [정책] 해당월 15일까지는 이전달 데이터 등록 가능
|
||||
* 날짜 기준 정책
|
||||
* TODO 15로 변경
|
||||
* 임시로 31일로 설정해둠 15일로 변경해야됨.
|
||||
*/
|
||||
public static final int REGISTER_LIMIT_DAY = 31;
|
||||
|
||||
@@ -61,7 +61,7 @@ public final class DailyRecordConstants {
|
||||
* 일계부 수정 가능 일
|
||||
* [정책] 해당월 15일까지는 이전달 데이터 수정 가능
|
||||
* 날짜 기준 정책
|
||||
* TODO : 15로 변경
|
||||
* 임시로 31일로 설정해둠 15일로 변경해야됨.
|
||||
*/
|
||||
public static final int MODIFY_LIMIT_DAY = 31;
|
||||
|
||||
|
||||
@@ -45,7 +45,6 @@ public class CreateCellService implements CreateCellPortIn {
|
||||
cell.setCellValue(Double.parseDouble(String.valueOf(cellValue)));
|
||||
} catch (NumberFormatException e) {
|
||||
cell.setCellValue(String.valueOf(cellValue)); // 숫자로 변환 불가 시 문자열로 처리
|
||||
// TODO: 로깅 또는 예외 처리
|
||||
}
|
||||
}
|
||||
break;
|
||||
@@ -83,10 +82,6 @@ public class CreateCellService implements CreateCellPortIn {
|
||||
// 셀 스타일 적용 (null 체크)
|
||||
if (cellConfig.getCellStyle() != null) {
|
||||
cell.setCellStyle(cellConfig.getCellStyle());
|
||||
//} else {
|
||||
// TODO: cellConfig.getCellStyle()이 null인 경우, 워크북에서 새로운 스타일을 생성하거나 기본 스타일을 적용하는 로직 고려
|
||||
// XSSFWorkbook workbook = (XSSFWorkbook) sheet.getWorkbook();
|
||||
// cell.setCellStyle(workbook.createCellStyle());
|
||||
}
|
||||
|
||||
// MERGE 병합
|
||||
@@ -108,7 +103,7 @@ public class CreateCellService implements CreateCellPortIn {
|
||||
private void setMergedRegionBorderStyle(
|
||||
XSSFCellStyle style, CellRangeAddress cellRangeAddress, Sheet sheet) {
|
||||
if (style == null) {
|
||||
// TODO: 스타일이 제공되지 않으면 경고 로깅 또는 기본 스타일 적용 고려
|
||||
// 스타일이 제공되지 않으면 경고 로깅 또는 기본 스타일 적용 고려
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
@@ -54,22 +54,6 @@ class GetAttachmentController {
|
||||
.body("파일을 찾을 수 없습니다: " + e.getMessage());
|
||||
}
|
||||
|
||||
// TODO - private 업로드 기능을 일단 mute
|
||||
|
||||
// boolean isPrivate = !getFile.getType().isPubic();
|
||||
//
|
||||
// if (isPrivate) {
|
||||
// Authentication auth = SecurityContextHolder.getContext().getAuthentication();
|
||||
// auth.getAuthorities().stream()
|
||||
// .filter(
|
||||
// grantedAuthority ->
|
||||
// grantedAuthority.getAuthority().equals("ROLE_SUPER")
|
||||
// || grantedAuthority.getAuthority().equals("PRIVATE_DOWNLOAD"))
|
||||
// .findFirst()
|
||||
// .orElseThrow(
|
||||
// () -> new AccessDeniedException("[AccessDenied] Private 파일 리소스 접근 권한이 없습니다."));
|
||||
// }
|
||||
|
||||
// HTTP 헤더 설정
|
||||
String encodedFileName = URLEncoder.encode(getFile.getOriginName(), StandardCharsets.UTF_8)
|
||||
.replace("+", "%20");
|
||||
|
||||
Reference in New Issue
Block a user