|
@@ -834,7 +834,7 @@ func MoveGroupPpt(groupId, groupPptId, prevGroupPptId, nextGroupPptId int64, adm
|
|
err = errors.New("获取最小排序失败:" + tmpErr.Error())
|
|
err = errors.New("获取最小排序失败:" + tmpErr.Error())
|
|
return
|
|
return
|
|
}
|
|
}
|
|
- pptSort, _ = decimal.NewFromFloat(maxSort).Add(decimal.NewFromInt(1)).Float64()
|
|
|
|
|
|
+ pptSort, _ = decimal.NewFromFloat(maxSort).Sub(decimal.NewFromInt(1)).Float64()
|
|
} else if nextGroupPpt != nil && nextGroupPpt.PptId > 0 {
|
|
} else if nextGroupPpt != nil && nextGroupPpt.PptId > 0 {
|
|
// 最上面
|
|
// 最上面
|
|
minSort, tmpErr := models.GetMaxSortByGroupId(nextGroupPpt.GroupId)
|
|
minSort, tmpErr := models.GetMaxSortByGroupId(nextGroupPpt.GroupId)
|
|
@@ -842,7 +842,7 @@ func MoveGroupPpt(groupId, groupPptId, prevGroupPptId, nextGroupPptId int64, adm
|
|
err = errors.New("获取最小排序失败:" + tmpErr.Error())
|
|
err = errors.New("获取最小排序失败:" + tmpErr.Error())
|
|
return
|
|
return
|
|
}
|
|
}
|
|
- pptSort, _ = decimal.NewFromFloat(minSort).Sub(decimal.NewFromInt(1)).Float64()
|
|
|
|
|
|
+ pptSort, _ = decimal.NewFromFloat(minSort).Add(decimal.NewFromInt(1)).Float64()
|
|
}
|
|
}
|
|
|
|
|
|
groupPpt.PptSort = pptSort
|
|
groupPpt.PptSort = pptSort
|