Exemplo n.º 1
0
        /// <summary>
        /// 描述:审核终审通过
        /// <para>作    者:瞿琦</para>
        /// <para>创建时间:2018-10-29</para>
        /// </summary>
        /// <returns>无</returns>
        public override void ProcessAuditSuccess()
        {
            var couponRuleService = _tblAutCouponRuleRepository.GetAuditingCouponRule(base.TblAutAudit.AuditId);

            var tblAutCouponRule = couponRuleService.Select(x => new TblDctCouponRule
            {
                CouponRuleId   = x.CouponRuleId,
                SchoolId       = x.SchoolId,
                CouponRuleName = x.CouponRuleName,
                CouponType     = x.CouponType,
                FullAmount     = x.FullAmount,
                CouponAmount   = x.CouponAmount,
                MaxQuota       = x.MaxQuota,
                UseQuota       = 0,
                BeginDate      = x.BeginDate,
                EndDate        = x.EndDate,
                Remark         = x.Remark,
                CreateTime     = DateTime.Now,
                IsDisabled     = false
            }).ToList();

            //终审通过之后。
            CouponRuleService.OnAuditSuccess(tblAutCouponRule);
        }