master
wubin 5 years ago
parent 6d607a7e68
commit d1715356ae

@ -74,7 +74,7 @@ func AddRoleAppReleation(ms models.TBaseRoleApp) (int64, error) {
//删除角色与系统的关联关系
func DeleteRoleAppRepleation(roleId string) {
sql := `update t_base_role_app set b_use=-2 where rold_id=? and b_use=1`
sql := `update t_base_role_app set b_use=-2 where role_id=? and b_use=1`
db.SQL(sql, roleId).Execute()
}

@ -143,6 +143,10 @@ func (s *Rpc) UpdateBaseRole(ctx context.Context, in *BaseRoleProto.ModelArg) (*
model.RoleId = in.RoleId
model.IdentityId = in.IdentityId
model.BUse = in.BUse
model.RoleName = in.RoleName
model.RoleCode = in.RoleCode
model.RoleLevel = in.RoleLevel
model.SortId = in.SortId
_, err := BaseRoleDao.UpdateBaseRole(*model, in.ForceUpdateFields)
//错误处理
if err != nil {

Loading…
Cancel
Save