Merge branch 'develop' of git.ailuowan.com:zzw/lone-services into develop
CI / changes (push) Successful in 5s
CI / docker-bff (push) Successful in 23s
CI / docker-product (push) Successful in 2s
CI / docker-admin (push) Successful in 3m50s
CI / docker-user (push) Successful in 20s
CI / docker-ad (push) Successful in 3m38s

This commit is contained in:
zzw
2026-08-21 14:59:14 +08:00
@@ -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{}