공지사항 첨부파일 수정
This commit is contained in:
@@ -39,8 +39,7 @@
|
|||||||
resultType="app.module.front.usecase.info.notice.getNotice.ports.application.domain.GetNoticeUploadFile">
|
resultType="app.module.front.usecase.info.notice.getNotice.ports.application.domain.GetNoticeUploadFile">
|
||||||
/* getUploadFiles 상세 게시글 조회 시, 첨부파일 조회 */
|
/* getUploadFiles 상세 게시글 조회 시, 첨부파일 조회 */
|
||||||
SELECT
|
SELECT
|
||||||
awuf.notice_id AS noticeId,
|
uf.mapping_id AS noticeId,
|
||||||
awuf.upload_files_id AS uploadfileId,
|
|
||||||
uf.id AS id,
|
uf.id AS id,
|
||||||
uf.created_at AS createdAt,
|
uf.created_at AS createdAt,
|
||||||
uf.created_by AS createdBy,
|
uf.created_by AS createdBy,
|
||||||
@@ -51,9 +50,7 @@
|
|||||||
uf.origin_name AS originName,
|
uf.origin_name AS originName,
|
||||||
uf.path AS path,
|
uf.path AS path,
|
||||||
uf.type AS type
|
uf.type AS type
|
||||||
FROM notice_has_upload_file awuf
|
FROM upload_file uf
|
||||||
INNER JOIN upload_file uf
|
WHERE uf.mapping_id = #{id} and uf.is_deleted = false and uf.type='NOTICE'
|
||||||
ON awuf.upload_files_id = uf.id
|
|
||||||
WHERE awuf.notice_id = #{id}
|
|
||||||
</select>
|
</select>
|
||||||
</mapper>
|
</mapper>
|
||||||
Reference in New Issue
Block a user