style(代码优化): userId由Long类型改为String类型

This commit is contained in:
MAC 2023-02-01 20:59:29 +08:00
parent e487a58097
commit 18131df388

View File

@ -47,7 +47,7 @@
where (filePath = #{filePath} or filePath like concat(#{filePath},'/%')) and userId = #{userId} and deleteFlag = 0 where (filePath = #{filePath} or filePath like concat(#{filePath},'/%')) and userId = #{userId} and deleteFlag = 0
</select> </select>
<select id="selectStorageSizeByUserId" resultType="java.lang.Long" parameterType="java.lang.Long"> <select id="selectStorageSizeByUserId" resultType="java.lang.Long" parameterType="java.lang.String">
SELECT SUM(fileSize) FROM userfile SELECT SUM(fileSize) FROM userfile
LEFT JOIN file ON file.fileId = userfile.fileId LEFT JOIN file ON file.fileId = userfile.fileId
WHERE userfile.userId = #{userId} WHERE userfile.userId = #{userId}