浏览代码

Merge branch 'bug/7838' into debug

# Conflicts:
#	models/ppt_v2_group_mapping.go
Roc 1 月之前
父节点
当前提交
3a52a9649f
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      models/ppt_v2_group_mapping.go

+ 1 - 1
models/ppt_v2_group_mapping.go

@@ -50,7 +50,7 @@ func GetPptMappingCountByGroupId(groupId int64) (total int64, err error) {
 // GetPptMappingListByGroupId 查询目录下,ppt列表
 func GetPptMappingListByGroupId(groupId int64) (list []*PptV2GroupMapping, err error) {
 	o := global.DbMap[utils.DbNameReport]
-	sql := `select group_ppt_id, group_id, ppt_id, ppt_sort, admin_id, admin_real_name, create_time from ppt_v2_group_mapping where group_id=? order by ppt_sort asc, group_ppt_id asc `
+	sql := `select group_ppt_id, group_id, ppt_id, ppt_sort, admin_id, admin_real_name, create_time from ppt_v2_group_mapping where group_id=? order by ppt_sort asc, group_ppt_id desc `
 	err = o.Raw(sql, groupId).Find(&list).Error
 	return
 }