diff --git a/epmet-module/resi-group/resi-group-server/src/main/resources/mapper/group/ResiGroupDao.xml b/epmet-module/resi-group/resi-group-server/src/main/resources/mapper/group/ResiGroupDao.xml index 74c02e9907..ca009df6bb 100644 --- a/epmet-module/resi-group/resi-group-server/src/main/resources/mapper/group/ResiGroupDao.xml +++ b/epmet-module/resi-group/resi-group-server/src/main/resources/mapper/group/ResiGroupDao.xml @@ -472,9 +472,8 @@ ta.ATTACHMENT_URL AS imgUrl, rt.GROUP_ID AS groupId FROM resi_topic rt - LEFT JOIN resi_topic_attachment ta ON ta.TOPIC_ID = rt.ID + LEFT JOIN resi_topic_attachment ta ON ta.TOPIC_ID = rt.ID AND ta.attachment_type = 'image' WHERE rt.DEL_FLAG = '0' - AND ta.attachment_type = 'image' AND rt.ID = #{topicId}