forked from dyf/fys-Multi-tenant
22 lines
791 B
XML
22 lines
791 B
XML
|
<?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">
|
||
|
select a.business_id id,a.file_id,b.file_name,b.url fileUrl from app_business_file a left join sys_oss b on a.file_id = b.oss_id
|
||
|
where
|
||
|
<if test="businessId != null">
|
||
|
and a.business_id = #{businessId}
|
||
|
</if>
|
||
|
<if test="fileId != null">
|
||
|
and a.file_id = #{fileId}
|
||
|
</if>
|
||
|
<if test="createBy != null">
|
||
|
a.create_by = #{createBy}
|
||
|
</if>
|
||
|
order by a.create_time desc
|
||
|
</select>
|
||
|
</mapper>
|