작업 면적 0체크 추가

This commit is contained in:
주수현
2025-07-28 14:49:49 +09:00
parent 20038c07d6
commit 8279ccec55

View File

@@ -25,7 +25,11 @@ public class SaveDailyWorkValidator implements Validator {
"workLandArea", CommonConstants.VALID_CODE_NOTBLANK,
"작업 면적을 입력해 주세요.");
}
if (vo.getWorkLandArea() != null && vo.getWorkLandArea() == 0) {
errors.rejectValue(
"workLandArea", CommonConstants.VALID_CODE_INVALID_ZERO,
"작업 면적은 0 이상 입력해 주세요.");
}
if (vo.getWorkLandArea() != null && StringUtils.isBlank(vo.getAreaUnitCode())) {
errors.rejectValue(
"areaUnitCode", CommonConstants.VALID_CODE_NOTBLANK,