fix: 修复文件管理搜索不生效的问题

This commit is contained in:
Kerwin
2025-08-19 09:09:44 +08:00
parent cbf673126e
commit da3fc11b2e
6 changed files with 20 additions and 30 deletions

View File

@@ -104,7 +104,7 @@ func (r *FileRepositoryImpl) SearchFiles(search string, fileType, status string,
// 添加搜索条件
if search != "" {
query = query.Where("original_name LIKE ?", "%"+search+"%")
utils.Info("添加搜索条件: original_name LIKE '%%%s%%'", search)
utils.Info("添加搜索条件: file_name LIKE '%%%s%%'", search)
}
if fileType != "" {