🐛 fix: Fix update file status failed.
This commit is contained in:
parent
d5742a9d93
commit
37f9617d29
1 changed files with 3 additions and 2 deletions
|
|
@ -314,10 +314,11 @@ public class FileRepositoryImpl implements FileRepository {
|
||||||
|
|
||||||
return SqlTemplate
|
return SqlTemplate
|
||||||
.forUpdate(pool, """
|
.forUpdate(pool, """
|
||||||
UPDATE file_record SET local_path = #{localPath},
|
UPDATE file_record SET id = #{fileId},
|
||||||
|
local_path = #{localPath},
|
||||||
download_status = #{downloadStatus},
|
download_status = #{downloadStatus},
|
||||||
completion_date = #{completionDate}
|
completion_date = #{completionDate}
|
||||||
WHERE id = #{fileId} AND unique_id = #{uniqueId}
|
WHERE unique_id = #{uniqueId}
|
||||||
""")
|
""")
|
||||||
.execute(MapUtil.ofEntries(MapUtil.entry("fileId", fileId),
|
.execute(MapUtil.ofEntries(MapUtil.entry("fileId", fileId),
|
||||||
MapUtil.entry("uniqueId", uniqueId),
|
MapUtil.entry("uniqueId", uniqueId),
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue