/// <summary>
 /// 有积分结算记录,执行积分计算
 /// </summary>
 /// <param name="followInfo">跟进信息</param>
 /// <param name="remarkLog">The remark log.</param>
 public void Calculate(CompanyFollowUpModel followInfo,RemarkLogInfoModel remarkLog)
 {
     // 计算上次结算的积分类型
     this.LastScoreType = remarkLog.IsFlower;
     // 计算本次结算的积分类型
     this.CurrentScoreType = followInfo.IsFlower;
     // 非第一次更新积分的标记
     this.IsCreate = false;
 }
Exemplo n.º 2
0
 public bool MatchesWith(CompanyFollowUpModel followInfo)
 {
     return this.CompanyId == followInfo.CompanyId
               && this.OwnerSoufunId == followInfo.OwnerSoufunId
               && this.FollowUpId == followInfo.FollowId;
 }
 /// <summary>
 /// 没有积分结算记录,第一次执行积分计算
 /// </summary>
 /// <param name="followInfo">The follow information.</param>
 public void Calculate(CompanyFollowUpModel followInfo)
 {
     // 新增积分操作日志--该操作统一在后续操作中进行;
     // 计算上次获得积分
     this.LastScoreType = (int)RemarkScoreType.默认值不操作;
     // 计算本次获得积分
     this.CurrentScoreType = followInfo.IsFlower;
     // 第一次更新积分的标记
     this.IsCreate = true;
 }