/// <summary> /// 修改密码 /// </summary> /// <param name="command"></param> public void Execute(ChangePwdCommand command) { SysMember sysMember = memberRepository.GetById(command.Id); sysMember.ChangePwd(command.pwd, command.opwd); memberRepository.SaveChange(sysMember); command.Result = new CommandResult() { Status = true, Msg = "修改密码成功!" }; }