protected virtual async Task UpdateProjectSupplierAsync(CreateOrUpdateProjectSupplierInput input)
        {
            Debug.Assert(input.ProjectSupplier.Id != null, "input.ProjectSupplier.Id should be set.");

            var projectSupplier = input.ProjectSupplier.MapTo<BaseProjectSupplierInfo>();
            projectSupplier.LastModifierUserId = AbpSession.UserId;
            projectSupplier.LastModifierUserName = GetCurrentUser().RealName;
            projectSupplier.LastModificationTime = Clock.Now;
            await _projectSupplierRepository.UpdateAsync(projectSupplier);
            cacheHandler.Remove(CacheCategoryProjectSupplier, "GetProjectSupplierList");
        }
 protected virtual async Task CreateProjectSupplierAsync(CreateOrUpdateProjectSupplierInput input)
 {
     var projectSupplier = input.ProjectSupplier.MapTo<BaseProjectSupplierInfo>();
     projectSupplier.Id = GuidHelper.NewGuid();
     projectSupplier.OrgId = AbpSession.OrgId;
     projectSupplier.CreatorUserId = AbpSession.UserId;
     projectSupplier.CreatorUserName = GetCurrentUser().RealName;
     projectSupplier.CreationTime = Clock.Now;
     await _projectSupplierRepository.InsertAsync(projectSupplier);
     cacheHandler.Remove(CacheCategoryProjectSupplier, "GetProjectSupplierList");
 }
 /// <summary>
 /// 添加修改实体
 /// </summary>
 /// <param name="input"></param>
 /// <returns></returns>
 public async Task CreateOrUpdateProjectSupplier(CreateOrUpdateProjectSupplierInput input)
 {
     if (input.ProjectSupplier.Id != null && input.ProjectSupplier.Id != Guid.Empty)
     {
         await UpdateProjectSupplierAsync(input);
     }
     else
     {
         await CreateProjectSupplierAsync(input);
     }
 }