public async Task SubmitApproval(Leave leave) { var approver = _personDomainService.FindNextApprover( leave.Approver.PersonId, leave.LeaderMaxLevel); await _leaveDomainService.SubmitApproval(leave, Approver.FromPerson(approver)); }
public void SubmitApproval(Domain.Leave.Entity.Leave leave) { //获取下一个批准人 var approver = _personDomainService.FindNextApprover(leave.Approver.PersonId, leave.MaxLeaderLevel); //获取批准人级别 leave.CurrentApprovalInfo.ApproverLevel = _personDomainService.FindById(leave.Approver.PersonId).RoleLevel; _leaveDomainService.SubmitApproval(leave, Approver.FromPerson(approver)); }