public override void ChangeDataDeleteKey(Menu entity, string sOperator)
 {
     //删除用户树菜单
     RedisMethod.DeleteUserTreeMenu();
     RedisMethod.DeleteUserMenu();
     base.ChangeDataDeleteKey(entity, sOperator);
 }
示例#2
0
        public override void ChangeDataDeleteKey(RoleMenu entity, string sOperator)
        {
            List <UserRole> lstUserRole = _userRoleRepository.SelectALL(new UserRole()
            {
                IroleId = entity.IroleId
            });

            if (lstUserRole?.Count > 0)
            {
                foreach (UserRole entityUserRole in lstUserRole)
                {
                    UserInfo entityUserInfo = _userInfoRepository.Select(entityUserRole.IuserId);
                    RedisMethod.DeleteUserTreeMenu(entityUserInfo.Id);
                    RedisMethod.DeleteUserMenu(entityUserInfo.Id);
                }
            }
            base.ChangeDataDeleteKey(entity, sOperator);
        }
示例#3
0
 public override void ChangeDataDeleteKey(UserRole entity, string sOperator)
 {
     RedisMethod.DeleteUserTreeMenu(entity.IuserId);
     RedisMethod.DeleteUserMenu(entity.IuserId);
     base.ChangeDataDeleteKey(entity, sOperator);
 }