This commit is contained in:
2026-08-21 14:39:57 +08:00
parent 7747493c91
commit 7276c27573
@@ -165,7 +165,7 @@ func (l *AuthorityEditLogic) getData(adminInfo utils.UserInfo, in *admin.Authori
return edit, utils.SetError(utils.ErrorMissingParams, "权限名称已存在")
}
check = l.check(edit.Id, map[string]string{
check = l.check(in.Id, map[string]string{
"service_id": strconv.FormatInt(edit.ServiceId, utils.NumberTen),
"identification": edit.Identification,
})
@@ -261,7 +261,7 @@ func (l *AuthorityEditLogic) getSort(pid, serviceId int64) uint8 {
w := modelbase.Params{
Eq: map[string]string{
"parent_id": strconv.FormatInt(pid, utils.NumberTen),
"project_id": strconv.FormatInt(serviceId, utils.NumberTen)},
"service_id": strconv.FormatInt(serviceId, utils.NumberTen)},
Order: "sort DESC",
}
info := dao.Authority{}