작업 면적 0체크 추가
This commit is contained in:
@@ -25,7 +25,11 @@ public class SaveDailyWorkValidator implements Validator {
|
|||||||
"workLandArea", CommonConstants.VALID_CODE_NOTBLANK,
|
"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())) {
|
if (vo.getWorkLandArea() != null && StringUtils.isBlank(vo.getAreaUnitCode())) {
|
||||||
errors.rejectValue(
|
errors.rejectValue(
|
||||||
"areaUnitCode", CommonConstants.VALID_CODE_NOTBLANK,
|
"areaUnitCode", CommonConstants.VALID_CODE_NOTBLANK,
|
||||||
|
|||||||
Reference in New Issue
Block a user