public async Task AuditSupplier(CreateOrUpdateSupplierInput input)
        {
            Debug.Assert(input.Supplier.Id != null, "input.MaterialInfo.Id should be set.");

            var supplier = input.Supplier.MapTo<BaseSupplierInfo>();
            supplier.AuditUserId = AbpSession.UserId;
            supplier.AuditUserName = GetCurrentUser().RealName;
            supplier.AuditTime = Clock.Now;
            await _supplierRepository.UpdateAsync(supplier);
            cacheHandler.Remove(CacheCategorySupplier, "GetSupplierList");
        }
          protected async virtual Task UpdateSupplierAsync(CreateOrUpdateSupplierInput input)
        {
            Debug.Assert(input.Supplier.Id != null, "input.Supplier.Id should be set.");

            var supplier = input.Supplier.MapTo<BaseSupplierInfo>();
            supplier.LastModifierUserId = AbpSession.UserId;
            supplier.LastModifierUserName = GetCurrentUser().RealName;
            supplier.LastModificationTime = Clock.Now;
            await _supplierRepository.UpdateAsync(supplier);
            cacheHandler.Remove(CacheCategorySupplier, "GetSupplierList");
        }
   protected async virtual Task CreateSupplierAsync(CreateOrUpdateSupplierInput input)
 {
     var supplier = input.Supplier.MapTo<BaseSupplierInfo>();
     supplier.OrgId = AbpSession.OrgId;
     supplier.Id = GuidHelper.NewGuid();
     supplier.CreatorUserId = AbpSession.UserId;
     supplier.CreatorUserName = GetCurrentUser().RealName;
     supplier.CreationTime = Clock.Now;
     await _supplierRepository.InsertAsync(supplier);
     cacheHandler.Remove(CacheCategorySupplier, "GetSupplierList");
 }
 /// <summary>
 /// 添加修改实体
 /// </summary>
 /// <param name="input"></param>
 /// <returns></returns>
 public async Task CreateOrUpdateSupplier(CreateOrUpdateSupplierInput input)
 {
     if (input.Supplier.Id != null && input.Supplier.Id != Guid.Empty)
     {
         await UpdateSupplierAsync(input);
     }
     else
     {
         await CreateSupplierAsync(input);
     }
 }