Browse Source

Merge branch 'bug/7838' into debug

# Conflicts:
#	models/ppt_v2_group_mapping.go
Roc 1 month ago
parent
commit
3a52a9649f
1 changed files with 1 additions and 1 deletions
  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
 }