필요없는 파일 삭제 및 TODO 삭제
This commit is contained in:
@@ -81,8 +81,6 @@ public class AdminURIInterceptor implements HandlerInterceptor {
|
||||
return;
|
||||
}
|
||||
|
||||
// 활성 프로파일 가져오기 TODO 2차 오픈시 삭제 예정
|
||||
modelAndView.addObject("activeProfile", activeProfiles);
|
||||
|
||||
String roleId = AdminUtil.getLoginUserRole();
|
||||
if (!CommonUtil.isAjaxRequest(request)) {
|
||||
|
||||
@@ -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)) {
|
||||
|
||||
@@ -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');
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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");
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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(),
|
||||
|
||||
@@ -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';
|
||||
},
|
||||
};
|
||||
@@ -36,14 +36,6 @@
|
||||
<span class="btn-txt">이전 정보 불러오기</span>
|
||||
</button>
|
||||
|
||||
<!-- TODO(ks) : "이번달 등록내용 없음" 삭제 확정 시 주석 지우기 -->
|
||||
<!-- <div class="component-input align-center" id="forestProductStatusDiv">-->
|
||||
<!-- <label class="checkbox-inner">-->
|
||||
<!-- <input type="checkbox" id="forestProductStatus" name="forestProductStatus"-->
|
||||
<!-- th:value="${MonthStatus.NOTHING}" onchange="formControl.handleNoDataToggle()">-->
|
||||
<!-- <span class="checkbox-item"><span class="checkbox-txt">이번달 등록내용 없음</span></span>-->
|
||||
<!-- </label>-->
|
||||
<!-- </div>-->
|
||||
|
||||
</section>
|
||||
|
||||
@@ -195,9 +187,6 @@
|
||||
//이전 데이터 취득 버튼
|
||||
const callPastInfoBtn = document.getElementById("callPastInfoBtn");
|
||||
|
||||
//데이터 없음 버튼
|
||||
<!-- TODO(ks) : "이번달 등록내용 없음" 삭제 확정 시 주석 지우기 -->
|
||||
// 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();
|
||||
}
|
||||
<!-- TODO(ks) : "이번달 등록내용 없음" 삭제 확정 시 주석 지우기 -->
|
||||
// }
|
||||
// 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() {
|
||||
|
||||
<!-- TODO(ks) : "이번달 등록내용 없음" 삭제 확정 시 주석 지우기 -->
|
||||
// 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;
|
||||
|
||||
<!-- TODO(ks) : "이번달 등록내용 없음" 삭제 확정 시 주석 지우기 -->
|
||||
// btn.disabled = isData;
|
||||
// icon.classList.toggle("ico-add", !isData);
|
||||
// icon.classList.toggle("ico-add-disabled", isData);
|
||||
if (isData) {
|
||||
next.disabled = !isData;
|
||||
} else {
|
||||
|
||||
@@ -36,15 +36,6 @@
|
||||
<span class="btn-txt">이전 정보 불러오기</span>
|
||||
</button>
|
||||
|
||||
<!-- TODO(ks) : "이번달 등록내용 없음" 삭제 확정 시 주석 지우기 -->
|
||||
<!-- <div class="component-input align-center" id="forestProductStatusDiv">-->
|
||||
<!-- <label class="checkbox-inner">-->
|
||||
<!-- <input type="checkbox" id="forestProductStatus" name="forestProductStatus"-->
|
||||
<!-- th:value="${MonthStatus.NOTHING}" onchange="formControl.handleNoDataToggle()">-->
|
||||
<!-- <span class="checkbox-item"><span class="checkbox-txt">이번달 등록내용 없음</span></span>-->
|
||||
<!-- </label>-->
|
||||
<!-- </div>-->
|
||||
|
||||
</section>
|
||||
|
||||
</div>
|
||||
@@ -194,10 +185,6 @@
|
||||
//이전 데이터 취득 버튼
|
||||
const callPastInfoBtn = document.getElementById("callPastInfoBtn");
|
||||
|
||||
//데이터 없음 버튼
|
||||
<!-- TODO(ks) : "이번달 등록내용 없음" 삭제 확정 시 주석 지우기 -->
|
||||
// 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();
|
||||
}
|
||||
<!-- TODO(ks) : "이번달 등록내용 없음" 삭제 확정 시 주석 지우기 -->
|
||||
// } 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() {
|
||||
|
||||
|
||||
<!-- TODO(ks) : "이번달 등록내용 없음" 삭제 확정 시 주석 지우기 -->
|
||||
// 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;
|
||||
|
||||
<!-- TODO(ks) : "이번달 등록내용 없음" 삭제 확정 시 주석 지우기 -->
|
||||
// btn.disabled = isData;
|
||||
// icon.classList.toggle("ico-add", !isData);
|
||||
// icon.classList.toggle("ico-add-disabled", isData);
|
||||
if (isData) {
|
||||
next.disabled = !isData;
|
||||
} else {
|
||||
|
||||
@@ -36,7 +36,7 @@
|
||||
<div class="inner">
|
||||
<dl class="info-card">
|
||||
<dt class="name" th:text="${userInfo?.ownerName}"></dt>
|
||||
<dd class="location" th:text="${userInfo?.address}"></dd><!-- TODO 임가 주소 위치 임시로 . 처리함. -->
|
||||
<dd class="location" th:text="${userInfo?.address}"></dd>
|
||||
<dd class="date" th:if="${not #strings.isEmpty(dailyLatest)}">
|
||||
최근등록 : <span th:text="${dailyLatest}"></span></dd>
|
||||
<dd class="date" th:if="${#strings.isEmpty(dailyLatest)}">등록된 일계부가 없습니다.</dd>
|
||||
|
||||
@@ -20,13 +20,6 @@
|
||||
<span class="tag" th:text="${item.forestProductStatus.desc}"></span>
|
||||
</a>
|
||||
</li>
|
||||
<!--/* TODO : 등록없음 추가 */-->
|
||||
<!--/* <li class="complete-nodata">
|
||||
<a href="">
|
||||
<p class="list-tit">2025년 5월</p>
|
||||
<span class="tag">등록없음</span>
|
||||
</a>
|
||||
</li> */-->
|
||||
</ul>
|
||||
</div>
|
||||
</main>
|
||||
|
||||
@@ -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') {
|
||||
|
||||
@@ -108,8 +108,7 @@
|
||||
},
|
||||
|
||||
/**
|
||||
* TODO 검색할때 각 페이지에 함수 구현 필요.
|
||||
* TODO 일단 뒤로가기에 대한 부분 정의가 없기에 페이지 이동으로 처리해둠...
|
||||
* 검색할때 각 페이지에 함수 구현 필요.
|
||||
*/
|
||||
goSearch() {
|
||||
const f = document.reqForm;
|
||||
|
||||
@@ -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')) {
|
||||
|
||||
Reference in New Issue
Block a user