浏览代码

Merge branch 'feature/deepseek_rag_2.0' into debug

kobe6258 2 周之前
父节点
当前提交
4da9d14b7c
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      models/rag/promote_train_record.go

+ 1 - 1
models/rag/promote_train_record.go

@@ -54,7 +54,7 @@ func DeleteContent(id int) error {
 
 func GetRecordList(wechatArticleId int) (list []PromoteTrainRecordView, err error) {
 	var ormList []PromoteTrainRecord
-	err = global.DbMap[utils.DbNameAI].Model(&PromoteTrainRecord{}).Where("wechat_article_id = ? and is_deleted=?", wechatArticleId, false).Find(&ormList).Error
+	err = global.DbMap[utils.DbNameAI].Model(&PromoteTrainRecord{}).Where("wechat_article_id = ? and is_deleted=?", wechatArticleId, false).Order(`created_time DESC`).Find(&ormList).Error
 	if err!=nil{
 		return
 	}