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