This commit is contained in:
2025-01-08 16:58:34 +08:00
parent 0ab4b18420
commit 708bafa24c
2 changed files with 5 additions and 6 deletions

View File

@ -155,11 +155,10 @@
where member_id = #{memberId} and source_id = #{sourceId} and type = #{type}
</select>
<select id="listVideoByFaceRelation" resultType="com.ycwl.basic.model.pc.source.entity.SourceEntity">
select *
from source
where source.id in (
select source_id from member_source where face_id = #{faceId} and type = 1
)
select s.*
from member_source ms
left join source s on ms.source_id = s.id
where ms.face_id = #{faceId} and ms.type = 1
order by create_time desc
</select>
</mapper>