资料加上搜索功能

This commit is contained in:
xiaofajia 2024-12-14 16:00:19 +08:00
parent d92d517650
commit 7cc778776e

View File

@ -168,6 +168,9 @@ public class InspectionFileServiceImpl extends ServiceImpl<InspectionFileMapper,
}
queryWrapper.orderByAsc(InspectionFile::getType);
queryWrapper.orderByDesc(InspectionFile::getCreateTime);
if (ObjectUtil.isNotEmpty(inspectionFile.getFileName())){
queryWrapper.like(InspectionFile::getFileName, inspectionFile.getFileName());
}
// 直接调用 MyBatis-Plus page 方法进行分页查询
return this.page(page, queryWrapper); // 返回符合条件的分页查询结果
}