[FO] 일계부 권고메세지 재정의
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
package app.module.core.config.application.util;
|
||||
|
||||
import app.module.core.config.constants.DailyRecordConstants;
|
||||
import app.module.core.usecase.uicode.list.ports.application.domain.UICodeElement;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
@@ -84,13 +85,13 @@ public class DailyUtil {
|
||||
|
||||
/**
|
||||
* 데이터 수정 가능 여부
|
||||
* [정책] 15일전까지 데이터 수정 가능(등록도 불가)
|
||||
* @param startDate
|
||||
* @param endDate
|
||||
*
|
||||
* @param startDate 시작일
|
||||
* @param endDate 종료일
|
||||
* @return true=수정 가능, false=수정 불가
|
||||
*/
|
||||
public boolean isModifiable(LocalDate startDate, LocalDate endDate) {
|
||||
LocalDate limitStart = LocalDate.now().minusDays(15);
|
||||
LocalDate limitStart = LocalDate.now().minusDays(DailyRecordConstants.MODIFIY_LIMIT_DAY);
|
||||
log.debug("isModifiable @@limitStart: {}, startDate: {}, endDate: {}", limitStart, startDate, endDate);
|
||||
|
||||
return (limitStart.isBefore(startDate) || limitStart.isEqual(startDate) || limitStart.isEqual(endDate));
|
||||
@@ -98,12 +99,13 @@ public class DailyUtil {
|
||||
|
||||
/**
|
||||
* 데이터 등록 가능 여부
|
||||
* @param startDate
|
||||
* @param endDate
|
||||
* @return
|
||||
*
|
||||
* @param startDate 시작일
|
||||
* @param endDate 종료일
|
||||
* @return true=등록 가능, false=등록 불가
|
||||
*/
|
||||
public boolean isRegisterPossible(LocalDate startDate, LocalDate endDate) {
|
||||
LocalDate limitStart = LocalDate.now().minusDays(15);
|
||||
LocalDate limitStart = LocalDate.now().minusDays(DailyRecordConstants.REGISTER_LIMIT_DAY);
|
||||
log.debug("isRegisterPossible @@limitStart: {}, startDate: {}, endDate: {}", limitStart, startDate, endDate);
|
||||
|
||||
return (limitStart.isBefore(startDate) || limitStart.isEqual(startDate));
|
||||
|
||||
@@ -34,4 +34,16 @@ public class DailyRecordConstants {
|
||||
* [정책] 81011 고정
|
||||
*/
|
||||
public static final String FORESTRY_EXPENSE_MARK = "81011";
|
||||
|
||||
/**
|
||||
* 일계부 등록 가능 일
|
||||
* [정책] 15일전까지 데이터 등록 가능
|
||||
*/
|
||||
public static final int REGISTER_LIMIT_DAY = 15;
|
||||
|
||||
/**
|
||||
* 일계부 수정 가능 일
|
||||
* [정책] 15일전까지 데이터 수정 가능
|
||||
*/
|
||||
public static final int MODIFIY_LIMIT_DAY = 15;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user