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