diff --git a/src/main/resources/mapper/SourceMapper.xml b/src/main/resources/mapper/SourceMapper.xml index ce65a36e..3697dccc 100644 --- a/src/main/resources/mapper/SourceMapper.xml +++ b/src/main/resources/mapper/SourceMapper.xml @@ -244,13 +244,12 @@ select so.id, ms.scenic_id, device_id, thumb_url, url, ms.is_free, so.create_time, so.update_time, ms.is_buy, video_url from member_source ms left join source so on ms.source_id = so.id - - where - ms.member_id = #{memberId} and so.id is not null + and ms.scenic_id = #{scenicId} and ms.is_buy = #{isBuy} and ms.type = #{type} and ms.face_id = #{faceId} + order by ms.is_free desc, so.create_time asc