更新
This commit is contained in:
parent
8b058ad67e
commit
0f8e9254bf
@ -337,7 +337,7 @@ public class InspectionFileServiceImpl extends ServiceImpl<InspectionFileMapper,
|
||||
// 1. 查询所有文件信息,确保只查询必要的字段,并通过索引优化文件名的like查询
|
||||
List<InspectionFile> fileList = this.list(Wrappers.lambdaQuery(InspectionFile.class)
|
||||
.select(InspectionFile::getId, InspectionFile::getFileName, InspectionFile::getFatherId, InspectionFile::getFilePath, InspectionFile::getType) // 仅查询必要字段
|
||||
.like(ObjectUtil.isNotEmpty(inspectionFile.getFileName()), InspectionFile::getFileName, inspectionFile.getFileName())
|
||||
// .like(ObjectUtil.isNotEmpty(inspectionFile.getFileName()), InspectionFile::getFileName, inspectionFile.getFileName())
|
||||
.orderBy(false, false, InspectionFile::getCreateTime));
|
||||
|
||||
Map<Long, InspectionFile> fileCache = fileList.stream()
|
||||
|
Loading…
Reference in New Issue
Block a user