@@ -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