Jelajahi Sumber

Merge branch 'bzq/knowledge_Bi' of eta_gn_server/eta_api into debug

baoziqiang 3 bulan lalu
induk
melakukan
676b0f220c
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      models/knowledge/knowledge_resource.go

+ 1 - 1
models/knowledge/knowledge_resource.go

@@ -127,7 +127,7 @@ func GetKnowledgeResourceByIds(ids []int) (items []*KnowledgeResource, err error
 	if len(ids) == 0 {
 		return
 	}
-	sql := `SELECT * FROM knowledge_resource WHERE knowledge_resource_id in (?) ORDER BY modify_time`
+	sql := `SELECT * FROM knowledge_resource WHERE knowledge_resource_id in (?) ORDER BY start_time DESC`
 
 	err = global.DmSQL["rddp"].Raw(sql, ids).Find(&items).Error
 	return