diff --git a/admin/src/main/java/app/module/admin/config/adapters/web/interceptor/AdminURIInterceptor.java b/admin/src/main/java/app/module/admin/config/adapters/web/interceptor/AdminURIInterceptor.java index e74dab9a..955a2041 100644 --- a/admin/src/main/java/app/module/admin/config/adapters/web/interceptor/AdminURIInterceptor.java +++ b/admin/src/main/java/app/module/admin/config/adapters/web/interceptor/AdminURIInterceptor.java @@ -81,8 +81,6 @@ public class AdminURIInterceptor implements HandlerInterceptor { return; } - // 활성 프로파일 가져오기 TODO 2차 오픈시 삭제 예정 - modelAndView.addObject("activeProfile", activeProfiles); String roleId = AdminUtil.getLoginUserRole(); if (!CommonUtil.isAjaxRequest(request)) { diff --git a/admin/src/main/java/app/module/admin/usecase/household/createHousehold/adapters/web/validator/CreateHouseholdValidator.java b/admin/src/main/java/app/module/admin/usecase/household/createHousehold/adapters/web/validator/CreateHouseholdValidator.java index 163eea2e..6e7e161d 100644 --- a/admin/src/main/java/app/module/admin/usecase/household/createHousehold/adapters/web/validator/CreateHouseholdValidator.java +++ b/admin/src/main/java/app/module/admin/usecase/household/createHousehold/adapters/web/validator/CreateHouseholdValidator.java @@ -48,16 +48,6 @@ public class CreateHouseholdValidator implements Validator { return; } - // 4. 가구 연락처 - // TODO : 필수입력값 맞는지 체크 -// if (!StringUtils.hasText(vo.getTel1()) || !StringUtils.hasText(vo.getTel2()) || !StringUtils.hasText(vo.getTel3())) { -// errors.reject("tel", "가구 연락처를 모두 입력해주세요."); -// return; -// } -// if (vo.getTel2().length() > 4 || vo.getTel3().length() > 4) { -// errors.reject("tel", "가구 연락처는 각 4자리까지 입력 가능합니다."); -// return; -// } if (StringUtils.hasText(vo.getTel2()) || StringUtils.hasText(vo.getTel3())) { if ((vo.getTel2() != null && vo.getTel2().length() > 4) || (vo.getTel3() != null && vo.getTel3().length() > 4)) { diff --git a/admin/src/main/resources/static/scripts/ajaxUtils.js b/admin/src/main/resources/static/scripts/ajaxUtils.js index f23864a7..0ace25d8 100644 --- a/admin/src/main/resources/static/scripts/ajaxUtils.js +++ b/admin/src/main/resources/static/scripts/ajaxUtils.js @@ -136,7 +136,6 @@ var ajaxUtil = { if (options.handle422Type === 'field' || !options.handle422Type) { $(rstData.responseJSON).each((idx, oj) => { - // TODO : form id? or body let target = $('body').find('[name=' + oj.field + ']'); target.addClass('is-invalid'); diff --git a/admin/src/main/resources/templates/households/tab/forest-product.html b/admin/src/main/resources/templates/households/tab/forest-product.html index 799922c9..dd81419a 100644 --- a/admin/src/main/resources/templates/households/tab/forest-product.html +++ b/admin/src/main/resources/templates/households/tab/forest-product.html @@ -81,7 +81,6 @@ const tbody = $('.tab-content.forest-product tbody'); tbody.empty(); - // TODO(ks) : monthlyStatus 없을 경우 처리 추가... 일단 .. 이렇게 처리 하지만.. 또 다른 방안이 있을지... if (!response.monthlyStatus || !response.monthlyStatus.forestStatus) { noDataMonthly(tbody, null, 15); return; diff --git a/core/src/main/java/app/module/core/config/constants/DailyRecordConstants.java b/core/src/main/java/app/module/core/config/constants/DailyRecordConstants.java index 321a3d00..06b0e938 100644 --- a/core/src/main/java/app/module/core/config/constants/DailyRecordConstants.java +++ b/core/src/main/java/app/module/core/config/constants/DailyRecordConstants.java @@ -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; diff --git a/core/src/main/java/app/module/core/usecase/excel/createCell/ports/application/CreateCellService.java b/core/src/main/java/app/module/core/usecase/excel/createCell/ports/application/CreateCellService.java index 90e1a49c..7700d6d5 100644 --- a/core/src/main/java/app/module/core/usecase/excel/createCell/ports/application/CreateCellService.java +++ b/core/src/main/java/app/module/core/usecase/excel/createCell/ports/application/CreateCellService.java @@ -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; } diff --git a/core/src/main/java/app/module/core/usecase/getAttachment/adapters/web/GetAttachmentController.java b/core/src/main/java/app/module/core/usecase/getAttachment/adapters/web/GetAttachmentController.java index 7eda247d..ca22f3c8 100644 --- a/core/src/main/java/app/module/core/usecase/getAttachment/adapters/web/GetAttachmentController.java +++ b/core/src/main/java/app/module/core/usecase/getAttachment/adapters/web/GetAttachmentController.java @@ -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"); diff --git a/front/src/main/java/app/module/front/usecase/info/bankUI/getBankInputUI/adapters/web/CreateBankInputController.java b/front/src/main/java/app/module/front/usecase/info/bankUI/getBankInputUI/adapters/web/CreateBankInputController.java index 525d8650..b9caf574 100644 --- a/front/src/main/java/app/module/front/usecase/info/bankUI/getBankInputUI/adapters/web/CreateBankInputController.java +++ b/front/src/main/java/app/module/front/usecase/info/bankUI/getBankInputUI/adapters/web/CreateBankInputController.java @@ -54,11 +54,10 @@ class CreateBankInputController { if(currentMonthlyInfo!=null) { - //TODO 트렌젝션 고려 + // 트렌젝션 고려 removeBanksPortIn.operate(new RemoveBanksCmd(currentMonthlyInfo.getId(), AuthUtil.getUserSeq(), reqVO.getTransferType())); -// if (!reqVO.getStatus() && reqVO.getBankList() != null && !reqVO.getBankList().isEmpty()) { // 등록없음 처리가 아님. - if (reqVO.getBankList() != null && !reqVO.getBankList().isEmpty()) { // 등록없음 처리가 아님. + if (reqVO.getBankList() != null && !reqVO.getBankList().isEmpty()) { for (CreateBankInputProductReqVO item : reqVO.getBankList()) { UICodeView code = uiCodeViewPortIn.connect(item.getTransferCategoryCode()).orElse(null); diff --git a/front/src/main/java/app/module/front/usecase/info/monthlyUI/createMonthlyUI/adapters/web/CreateMonthlyController.java b/front/src/main/java/app/module/front/usecase/info/monthlyUI/createMonthlyUI/adapters/web/CreateMonthlyController.java index 36c31beb..60f50f92 100644 --- a/front/src/main/java/app/module/front/usecase/info/monthlyUI/createMonthlyUI/adapters/web/CreateMonthlyController.java +++ b/front/src/main/java/app/module/front/usecase/info/monthlyUI/createMonthlyUI/adapters/web/CreateMonthlyController.java @@ -47,10 +47,10 @@ class CreateMonthlyController { if(currentMonthlyInfo!=null) { - //TODO 트렌젝션 고려 + // 트렌젝션 고려 removeMonthForestProductsPortIn.operate(new RemoveMonthForestProductsCmd(currentMonthlyInfo.getId(), AuthUtil.getUserSeq())); - if (!reqVO.getStatus() && reqVO.getProductList() != null && !reqVO.getProductList().isEmpty()) { // 등록없음 처리가 아님. + if (!reqVO.getStatus() && reqVO.getProductList() != null && !reqVO.getProductList().isEmpty()) { for (CreateMonthlyProductReqVO item : reqVO.getProductList()) { createForestProductPortIn.operate(new CreateForestProductCmd( AuthUtil.getUserSeq(), diff --git a/front/src/main/resources/static/ui/ajaxUtil.js b/front/src/main/resources/static/ui/ajaxUtil.js index 3357967f..d5978fa7 100644 --- a/front/src/main/resources/static/ui/ajaxUtil.js +++ b/front/src/main/resources/static/ui/ajaxUtil.js @@ -164,11 +164,6 @@ var ajaxUtil = { }, 422:function(rstData, status) { console.log('422', rstData) - /** - * TODO - * 폼이 너무 여러가지 형식이 있는데 서버에러를 가지고 처리하는게 맞는지 검토 필요 - * 코드 정리는 나중에 하려고 그냥 만듬.... 정리 필요. - */ let isResetDone = false; @@ -322,13 +317,13 @@ var ajaxUtil = { _hideWaiting:function(){ if (ajaxUtil.loadingStatus) { ajaxUtil.loadingStatus = false; - // TODO : 로딩바 숨김 + // 로딩바 숨김 document.querySelector('#loadingBar').style.display = 'none'; } }, _showWaiting:function(){ ajaxUtil.loadingStatus = true; - // TODO : 로딩바 활성화 + // 로딩바 활성화 document.querySelector('#loadingBar').style.display = 'block'; }, }; \ No newline at end of file diff --git a/front/src/main/resources/templates/info/bank/input.html b/front/src/main/resources/templates/info/bank/input.html index e35a4c02..9cbbe96d 100644 --- a/front/src/main/resources/templates/info/bank/input.html +++ b/front/src/main/resources/templates/info/bank/input.html @@ -36,14 +36,6 @@ 이전 정보 불러오기 - - - - - - - - @@ -195,9 +187,6 @@ //이전 데이터 취득 버튼 const callPastInfoBtn = document.getElementById("callPastInfoBtn"); - //데이터 없음 버튼 - - // const forestProductStatus = document.getElementById("forestProductStatus"); //등록 완료 버튼 const next = document.getElementById('complateBtn'); @@ -247,17 +236,6 @@ if (ENV.data.pastStatus && ENV.data.pastStatus == "REGISTERED" && ENV.data.pastBankList.length > 0) { this.checkUsePastData(); } - - // } - // else if (ENV.data.currentStatus == "NOTHING") { - // - // - // addItemBtn.disabled = true; - // icon.classList.toggle("ico-add", false); - // icon.classList.toggle("ico-add-disabled", true); - // callPastInfoBtn.disabled = true; - // forestProductStatus.checked = true; - // next.disabled = true; } else if (ENV.data.currentStatus == "REGISTERED") { if (ENV.data.bankList.length > 0) { @@ -364,12 +342,6 @@ }, updateLayout() { - - // const btn = document.getElementById("addItemBtn"); - // const isChecked = ENV.elementRefs.noDataCheckbox.checked; - // const icon = btn.querySelector("i"); - // const status = document.getElementById('forestProductStatusDiv'); - const callPastInfoBtn = document.getElementById("callPastInfoBtn"); const next = document.getElementById('complateBtn'); @@ -385,10 +357,6 @@ count.textContent = total; totalItems.textContent = total; - - // btn.disabled = isData; - // icon.classList.toggle("ico-add", !isData); - // icon.classList.toggle("ico-add-disabled", isData); if (isData) { next.disabled = !isData; } else { diff --git a/front/src/main/resources/templates/info/bank/output.html b/front/src/main/resources/templates/info/bank/output.html index 3d19b7b5..5126d66e 100644 --- a/front/src/main/resources/templates/info/bank/output.html +++ b/front/src/main/resources/templates/info/bank/output.html @@ -36,15 +36,6 @@ 이전 정보 불러오기 - - - - - - - - - @@ -194,10 +185,6 @@ //이전 데이터 취득 버튼 const callPastInfoBtn = document.getElementById("callPastInfoBtn"); - //데이터 없음 버튼 - - // const forestProductStatus = document.getElementById("forestProductStatus"); - //등록 완료 버튼 const next = document.getElementById('complateBtn'); @@ -246,16 +233,6 @@ if (ENV.data.pastStatus && ENV.data.pastStatus == "REGISTERED" && ENV.data.pastBankList.length > 0) { this.checkUsePastData(); } - - // } else if (ENV.data.currentStatus == "NOTHING") { - // - // - // addItemBtn.disabled = true; - // icon.classList.toggle("ico-add", false); - // icon.classList.toggle("ico-add-disabled", true); - // callPastInfoBtn.disabled = true; - // forestProductStatus.checked = true; - // next.disabled = true; } else if (ENV.data.currentStatus == "REGISTERED") { if (ENV.data.bankList.length > 0) { @@ -354,12 +331,6 @@ }, updateLayout() { - - - // const isChecked = ENV.elementRefs.noDataCheckbox.checked; - // const btn = document.getElementById("addItemBtn"); - // const icon = btn.querySelector("i"); - // const status = document.getElementById('forestProductStatusDiv'); const callPastInfoBtn = document.getElementById("callPastInfoBtn"); const next = document.getElementById('complateBtn'); @@ -376,10 +347,6 @@ count.textContent = total; totalItems.textContent = total; - - // btn.disabled = isData; - // icon.classList.toggle("ico-add", !isData); - // icon.classList.toggle("ico-add-disabled", isData); if (isData) { next.disabled = !isData; } else { diff --git a/front/src/main/resources/templates/info/main.html b/front/src/main/resources/templates/info/main.html index f403b3fd..38b724a4 100644 --- a/front/src/main/resources/templates/info/main.html +++ b/front/src/main/resources/templates/info/main.html @@ -36,7 +36,7 @@
-
+
최근등록 :
등록된 일계부가 없습니다.
diff --git a/front/src/main/resources/templates/info/monthly/monthlys.html b/front/src/main/resources/templates/info/monthly/monthlys.html index 82c1c293..4e0864c5 100644 --- a/front/src/main/resources/templates/info/monthly/monthlys.html +++ b/front/src/main/resources/templates/info/monthly/monthlys.html @@ -20,13 +20,6 @@ - -
diff --git a/front/src/main/resources/templates/info/monthly/{id}.html b/front/src/main/resources/templates/info/monthly/{id}.html index a6f8a0c5..10186700 100644 --- a/front/src/main/resources/templates/info/monthly/{id}.html +++ b/front/src/main/resources/templates/info/monthly/{id}.html @@ -533,7 +533,6 @@ document.getElementById('listBody').innerHTML = ''; formControl.updateLayout(); - // TODO(ks): 선택 삭제 시 전체 count 미반영 중. 일단 전체 초기화에서만 count 갱신. document.getElementById('totalItems').textContent = ENV.data.productList.length; }, }); @@ -569,11 +568,6 @@ function (rstData, status) { if (rstData.code === 'SUCCESS') { ajaxUtil._alert('등록이 완료되었습니다.', null, function () { - /** - * TODO - * 내정보에서만 들어온다는 가정하에서 back을 하게함 SB에는 내정보로 이동하게 되어 있음. - */ - // history.back() location.href = '/info/monthly'; }); } else if (rstData.code === 'ERROR') { diff --git a/front/src/main/resources/templates/info/notice/notices.html b/front/src/main/resources/templates/info/notice/notices.html index 0bf5ee93..af7c2807 100644 --- a/front/src/main/resources/templates/info/notice/notices.html +++ b/front/src/main/resources/templates/info/notice/notices.html @@ -108,8 +108,7 @@ }, /** - * TODO 검색할때 각 페이지에 함수 구현 필요. - * TODO 일단 뒤로가기에 대한 부분 정의가 없기에 페이지 이동으로 처리해둠... + * 검색할때 각 페이지에 함수 구현 필요. */ goSearch() { const f = document.reqForm; diff --git a/front/src/main/resources/templates/info/notice/{id}.html b/front/src/main/resources/templates/info/notice/{id}.html index 674e3593..3668e9d3 100644 --- a/front/src/main/resources/templates/info/notice/{id}.html +++ b/front/src/main/resources/templates/info/notice/{id}.html @@ -57,10 +57,7 @@ root: /*[[|#{uri.front.info.user.path}/password|]]*/'rootUrl', }, goList() { - /** - * TODO 외부 유입에 따라 history.back과 location.href 가 적절하게 사용되어야함... - * 전체적인 수정 필요.(이전 페이지 - */ + const previousUrl = document.referrer; /* if (previousUrl.includes('/info/notice')) {