diff --git a/front/src/main/resources/mappers/notice/GetNoticesMapper.xml b/front/src/main/resources/mappers/notice/GetNoticesMapper.xml index 589b4707..e532eff7 100644 --- a/front/src/main/resources/mappers/notice/GetNoticesMapper.xml +++ b/front/src/main/resources/mappers/notice/GetNoticesMapper.xml @@ -79,16 +79,15 @@ resultType="app.module.front.usecase.info.notice.getNotices.ports.application.domain.GetNoticeFiles"> /* getUploadFiles : 게시물 리스트의 대표 이미지 */ SELECT - awuf.notice_id, + uf.mapping_id as notice_id, uf.id, uf.type, uf.path, uf.name, uf.origin_name, uf.file_length - FROM notice_has_upload_file awuf - INNER JOIN upload_file uf ON awuf.upload_files_id = uf.id - WHERE awuf.notice_id IN + FROM upload_file uf + WHERE uf.mapping_id IN #{id}