260723_01_ENH: 업로드 파일 못찾는 경우 경고 메시지 수정

This commit is contained in:
2026-07-24 14:02:03 +09:00
parent bba8990682
commit effeeaa1f6
2 changed files with 3 additions and 3 deletions

View File

@@ -272,13 +272,13 @@ public class ListDownloadService {
.findById(TListItemFileEntityId.create(prjctIdx, sid, listHderId))
.orElseThrow(() -> BusinessException.notFound(
"LIST_ITEM_FILE_NOT_FOUND",
"리스트 파일을 찾을 수 없습니다."
"리스트에 업로드 된 파일이 없습니다."
).with("prjctIdx", prjctIdx).with("sid", sid).with("listHderId", listHderId));
if (fileEntity.getFileNm() == null || fileEntity.getFileNm().isBlank()) {
throw BusinessException.notFound(
"LIST_ITEM_FILE_NOT_FOUND",
"리스트 파일을 찾을 수 없습니다."
"리스트에 업로드 된 파일이 없습니다."
).with("prjctIdx", prjctIdx).with("sid", sid).with("listHderId", listHderId);
}

View File

@@ -29,7 +29,7 @@ public class ListItemFileService extends AbstractFileService {
throw BusinessException.badRequest("WRONG_FILE_PATH", "잘못된 파일 경로입니다.");
}
if (!Files.exists(target) || !Files.isRegularFile(target)) {
throw BusinessException.notFound("LIST_ITEM_FILE_NOT_FOUND", "리스트 파일을 찾을 수 없습니다.");
throw BusinessException.notFound("LIST_ITEM_FILE_NOT_FOUND", "리스트에 업로드 된 파일이 없습니다.");
}
try {