/// <summary> /// 创建一张交接单 /// </summary> public async Task <HandOverBillOutput> CreateHandOverBill() { var currentUser = await this.GetCurrentUserAsync(); var currentDepartment = await this.GetCurrentUserOrganizationUnitAsync(); HandOverBill handOverBill = await this._handOverBillFactory.CreateHandOverBill(currentUser, currentDepartment); await this._handOverBillRepository.InsertAndGetIdAsync(handOverBill); return(handOverBill.MapTo <HandOverBillOutput>()); }