공지사항 첨부파일 수정
This commit is contained in:
@@ -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'
|
||||
</select>
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user