fix:数据查询文件,优化多级节点无关联查询

This commit is contained in:
2026-02-28 10:03:27 +08:00
parent 90d6e3ab40
commit 3db2a38938
4 changed files with 109 additions and 31 deletions

View File

@@ -209,6 +209,9 @@
</if>
</where>
GROUP BY file_storage.fileName, file_storage.fileId, file_storage.userGroupId, file_storage.userId, file_storage.fileSuffix
<if test="queryBigFileReq.dirIds != null and queryBigFileReq.dirIds.size() > 0">
HAVING COUNT(DISTINCT file_storage.dirId) = #{queryBigFileReq.dirIdsCount}
</if>
order by MAX(file_storage.updateTime) desc
</select>
</mapper>