/// <summary> /// 实例化一个新的消费奖励的计划的明细的快照 /// </summary> /// <param name="detail">对应的消费奖励的计划的明细</param> public RewardForConsumptionSnapshotDetail(RewardForConsumptionPlanDetail detail) { this.LowerConsumption = detail.LowerConsumption; this.CapsConsumption = detail.CapsConsumption; this.PrizeType = detail.PrizeType; this.Sum = detail.Sum; this.WaysToReward = detail.WaysToReward; }
/// <summary> /// 实例化一个新的消费奖励的计划的明细 /// </summary> /// <param name="model">消费奖励的计划的明细的数据模型</param> public RewardForConsumptionPlanDetailExport(RewardForConsumptionPlanDetail model) { this.Id = model.Id; this.LowerConsumption = model.LowerConsumption; this.CapsConsumption = model.CapsConsumption; this.PrizeType = model.PrizeType; this.Sum = model.Sum; this.WaysToReward = model.WaysToReward; }