From 9d78336ed41c20e323c08f9a7a8cabbc35889863 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=A3=BC=EC=88=98=ED=98=84?= Date: Tue, 15 Jul 2025 10:51:38 +0900 Subject: [PATCH] =?UTF-8?q?=EA=B3=B5=EC=A7=80=EC=82=AC=ED=95=AD=20?= =?UTF-8?q?=EC=B2=A8=EB=B6=80=ED=8C=8C=EC=9D=BC=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/resources/mappers/notice/GetNoticeMapper.xml | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/front/src/main/resources/mappers/notice/GetNoticeMapper.xml b/front/src/main/resources/mappers/notice/GetNoticeMapper.xml index 205eb61d..1bb11861 100644 --- a/front/src/main/resources/mappers/notice/GetNoticeMapper.xml +++ b/front/src/main/resources/mappers/notice/GetNoticeMapper.xml @@ -39,8 +39,7 @@ resultType="app.module.front.usecase.info.notice.getNotice.ports.application.domain.GetNoticeUploadFile"> /* getUploadFiles 상세 게시글 조회 시, 첨부파일 조회 */ SELECT - awuf.notice_id AS noticeId, - awuf.upload_files_id AS uploadfileId, + uf.mapping_id AS noticeId, uf.id AS id, uf.created_at AS createdAt, uf.created_by AS createdBy, @@ -51,9 +50,7 @@ uf.origin_name AS originName, uf.path AS path, uf.type AS type - FROM notice_has_upload_file awuf - INNER JOIN upload_file uf - ON awuf.upload_files_id = uf.id - WHERE awuf.notice_id = #{id} + FROM upload_file uf + WHERE uf.mapping_id = #{id} and uf.is_deleted = false and uf.type='NOTICE' \ No newline at end of file