2025-07-04 15:10:36 +08:00
<?xml version="1.0" encoding="UTF-8" ?>
< !DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace= "com.fuyuanshen.app.mapper.AppBusinessFileMapper" >
<select id= "queryAppFileList" resultType= "com.fuyuanshen.app.domain.vo.AppFileVo" >
2026-02-02 16:06:11 +08:00
select a.id,a.business_id,a.file_id,a.file_type,b.file_name,b.url fileUrl,a.duration from app_business_file a left join sys_oss b on a.file_id = b.oss_id
2025-07-15 15:59:32 +08:00
where 1=1
2025-07-04 15:10:36 +08:00
<if test= "businessId != null" >
and a.business_id = #{businessId}
</if>
<if test= "fileId != null" >
and a.file_id = #{fileId}
</if>
2025-07-15 15:59:32 +08:00
<if test= "fileType != null" >
and a.file_type = #{fileType}
</if>
2025-07-04 15:10:36 +08:00
<if test= "createBy != null" >
2025-07-15 15:59:32 +08:00
and a.create_by = #{createBy}
2025-07-04 15:10:36 +08:00
</if>
order by a.create_time desc
</select>
</mapper>