qixiaoning
2025-07-25 94f3085afd10d76fa6e0640b5eed1d615b11ecea
修复标题
1个文件已修改
6 ■■■■ 已修改文件
camera-common/models/Record.go 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
camera-common/models/Record.go
@@ -154,9 +154,9 @@
// 知识库
type KnowledgeDocumentOption struct {
    Id      string `db:"id" json:"id"`
    Title   string `db:"file_name" json:"title"`
    Title   string `db:"title" json:"title"`
    KnowId  int64  `db:"know_id" json:"know_id"`
    FileUrl string `db:"file_name" json:"file_url"`
    FileUrl string `db:"title" json:"file_url"`
}
// Pagination 分页信息
@@ -488,7 +488,7 @@
        placeholders[i] = "?"
        args[i] = id
    }
    sqlStr := `SELECT id, know_id, file_name FROM mal_knowledge_document where id in (` + strings.Join(placeholders, ",") + `)`
    sqlStr := `SELECT id, know_id, file_name as title FROM mal_knowledge_document where id in (` + strings.Join(placeholders, ",") + `)`
    if err := db.Raw(sqlStr, args...).Scan(&items).Error; err != nil {
        return nil, err
    }