|
func GetRecordList(wechatArticleId int) (list []PromoteTrainRecordView, err error) {
|
|
func GetRecordList(wechatArticleId int) (list []PromoteTrainRecordView, err error) {
|
|
- 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
|