protected virtual async Task UpdateQuarterPlanAsync(CreateOrUpdateQuarterPlanInput input)
        {
            Debug.Assert(input.QuarterPlan.Id != null, "input.QuarterPlan.Id should be set.");

            var quarterPlan = input.QuarterPlan.MapTo<PlanQuarterPlanInfo>();
            quarterPlan.LastModifierUserId = AbpSession.UserId;
            quarterPlan.LastModifierUserName = GetCurrentUser().RealName;
            quarterPlan.LastModificationTime = Clock.Now;
            await _quarterPlanRepository.UpdateAsync(quarterPlan);
        }
 protected virtual async Task CreateQuarterPlanAsync(CreateOrUpdateQuarterPlanInput input)
 {
     var quarterPlan = input.QuarterPlan.MapTo<PlanQuarterPlanInfo>();
     quarterPlan.Id = GuidHelper.NewGuid();
     quarterPlan.OrgId = AbpSession.OrgId;
     quarterPlan.CreatorUserId = AbpSession.UserId;
     quarterPlan.CreatorUserName = GetCurrentUser().RealName;
     quarterPlan.CreationTime = Clock.Now;
     await _quarterPlanRepository.InsertAsync(quarterPlan);
 }
 /// <summary>
 /// 添加修改实体
 /// </summary>
 /// <param name="input"></param>
 /// <returns></returns>
 public async Task CreateOrUpdateQuarterPlan(CreateOrUpdateQuarterPlanInput input)
 {
     if (input.QuarterPlan.Id != null && input.QuarterPlan.Id != Guid.Empty)
     {
         await UpdateQuarterPlanAsync(input);
     }
     else
     {
         await CreateQuarterPlanAsync(input);
     }
 }