protected virtual async Task UpdateDeliveryOrderAsync(CreateOrUpdateDeliveryOrderInput input)
        {
            Debug.Assert(input.DeliveryOrder.Id != null, "input.DeliveryOrder.Id should be set.");

            var deliveryOrder = input.DeliveryOrder.MapTo<MaterialDeliveryOrderInfo>();
            deliveryOrder.LastModifierUserId = AbpSession.UserId;
            deliveryOrder.LastModifierUserName = GetCurrentUser().RealName;
            deliveryOrder.LastModificationTime = Clock.Now;
            await _deliveryOrderRepository.UpdateAsync(deliveryOrder);
        }
 protected virtual async Task CreateDeliveryOrderAsync(CreateOrUpdateDeliveryOrderInput input)
 {
     var deliveryOrder = input.DeliveryOrder.MapTo<MaterialDeliveryOrderInfo>();
     deliveryOrder.Id = GuidHelper.NewGuid();
     deliveryOrder.OrgId = AbpSession.OrgId;
     deliveryOrder.CreatorUserId = AbpSession.UserId;
     deliveryOrder.CreatorUserName = GetCurrentUser().RealName;
     deliveryOrder.CreationTime = Clock.Now;
     await _deliveryOrderRepository.InsertAsync(deliveryOrder);
 }
 /// <summary>
 /// 添加修改实体
 /// </summary>
 /// <param name="input"></param>
 /// <returns></returns>
 public async Task CreateOrUpdateDeliveryOrder(CreateOrUpdateDeliveryOrderInput input)
 {
     if (input.DeliveryOrder.Id != null && input.DeliveryOrder.Id != Guid.Empty)
     {
         await UpdateDeliveryOrderAsync(input);
     }
     else
     {
         await CreateDeliveryOrderAsync(input);
     }
 }