48 lines
1.3 KiB
C#
48 lines
1.3 KiB
C#
|
using Quartz;
|
|||
|
using System;
|
|||
|
using System.Data;
|
|||
|
using System.Data.Common;
|
|||
|
using MyCode.Project.Services;
|
|||
|
using MyCode.Project.Infrastructure;
|
|||
|
using MyCode.Project.Infrastructure.UnityExtensions;
|
|||
|
using Microsoft.Practices.Unity;
|
|||
|
using System.Reflection;
|
|||
|
using MyCode.Project.Domain.Model;
|
|||
|
using System.Collections;
|
|||
|
using System.Collections.Specialized;
|
|||
|
using System.Collections.Generic;
|
|||
|
using System.Threading;
|
|||
|
|
|||
|
namespace MyCode.Project.ScheduleTask.Jobs
|
|||
|
{
|
|||
|
/// <summary>
|
|||
|
/// 优惠券相关的调度
|
|||
|
/// </summary>
|
|||
|
public class CouponMemberJob : IJob
|
|||
|
{
|
|||
|
|
|||
|
private ICouponMemberHistoryService _couponMemberHistoryService;
|
|||
|
private ICouponActityDllService _couponActityDllService;
|
|||
|
|
|||
|
|
|||
|
public CouponMemberJob(ICouponMemberHistoryService couponMemberHistoryService
|
|||
|
|
|||
|
, ICouponActityDllService couponActityDllService)
|
|||
|
{
|
|||
|
_couponMemberHistoryService = couponMemberHistoryService;
|
|||
|
_couponActityDllService = couponActityDllService;
|
|||
|
}
|
|||
|
|
|||
|
|
|||
|
public void Execute(IJobExecutionContext context)
|
|||
|
{
|
|||
|
_couponActityDllService.AddBirthDayCouponTask(); //发放生日优惠券
|
|||
|
_couponMemberHistoryService.BatchNoNeedShow();
|
|||
|
_couponMemberHistoryService.BatchRemove();
|
|||
|
|
|||
|
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
|