mirror of
https://gitee.com/bookshelfplus/bookshelfplus
synced 2025-09-16 23:22:20 +08:00
通过书本ID获取所有文件对象信息;前端书籍详情页面直链下载功能完成;后端COS部分功能完善;下载文件设置"Content-Disposition"为"attachment; filename="
This commit is contained in:
@@ -228,4 +228,11 @@
|
||||
from file_object_info
|
||||
where file_path = #{filePath}
|
||||
</select>
|
||||
<select id="selectFileObjectByBookId" parameterType="java.lang.Integer" resultMap="BaseResultMap">
|
||||
SELECT
|
||||
<include refid="Base_Column_List" />
|
||||
FROM `file_object_info`
|
||||
WHERE file_id IN (SELECT id AS file_id FROM `file_info` WHERE book_id = 1)
|
||||
AND upload_status = 'SUCCESS'
|
||||
</select>
|
||||
</mapper>
|
Reference in New Issue
Block a user