修改:知识库文件修改,历史生效数据查询优化
This commit is contained in:
@@ -28,6 +28,8 @@ public class ModifyFileApproveStrategy implements ApproveStrategy {
|
||||
// 最新的历史版本为
|
||||
FileMetadataInfo historyMetaData = service.lambdaQuery()
|
||||
.eq(FileMetadataInfo::getFileGroupId, metadata.getFileGroupId())
|
||||
// 当前老的还在生效的数据
|
||||
.eq(FileMetadataInfo::getIsLatest, true)
|
||||
.orderByDesc(FileMetadataInfo::getUpdateTime)
|
||||
.last("limit 1")
|
||||
.one();
|
||||
|
||||
Reference in New Issue
Block a user