压缩下载

This commit is contained in:
cwchen 2025-04-08 18:02:39 +08:00
parent a4835dcda7
commit 82b584c88a
3 changed files with 6 additions and 6 deletions

View File

@ -74,11 +74,11 @@
insert into tb_download_task
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="taskId != null and taskId != ''">task_id,</if>
<if test="tempPath != null and tempPath != ''">temp_file_path,</if>
<if test="tempFilePath != null and tempFilePath != ''">temp_file_path,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="taskId != null and taskId != ''">#{taskId},</if>
<if test="tempPath != null and filePath != ''">#{tempPath},</if>
<if test="tempFilePath != null and tempFilePath != ''">#{tempFilePath},</if>
</trim>
</insert>
<delete id="deleteComprehensiveQuery">
@ -544,6 +544,6 @@
</update>
<!--更新下载任务-->
<update id="updateTaskDownload">
UPDATE tb_download_task SET file_path = #{params.filePath},failure_time = #{nowTime} WHERE id = #{id}
UPDATE tb_download_task SET file_path = #{params.filePath},failure_time = #{nowTime} WHERE id = #{params.id}
</update>
</mapper>

View File

@ -23,6 +23,6 @@
task_id AS taskId,
temp_file_path AS filePath
FROM tb_download_task
WHERE is_delete = '1' AND TIMESTAMPDIFF(HOUR, create_time, NOW()) > 6
WHERE is_delete = '1' AND TIMESTAMPDIFF(HOUR, create_time, NOW()) > 6 AND failure_time IS NULL
</select>
</mapper>

View File

@ -54,7 +54,7 @@
}
.notification {
position: fixed;
bottom: 70%;
bottom: 66%;
right: 55%;
padding: 15px;
background-color: #4CAF50;
@ -69,7 +69,7 @@
<h2><span style="color: red;">提示:请勿关闭浏览器和浏览器窗口!!!</span></h2>
<h3 id="title"></h3>
<p>点击下方按钮下载所有照</p>
<p>点击下方按钮下载所有照</p>
<button id="downloadBtn">下载照片压缩包</button>