Files
DeMiWebApi_yuyubo/MyCode.Project.ScheduleTask/Jobs/EveryMinuteJob.cs

37 lines
936 B
C#
Raw Normal View History

2025-06-30 19:22:02 +08:00
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
{
2025-07-02 20:12:08 +08:00
public class EveryMinuteJob : IJob
2025-06-30 19:22:02 +08:00
{
2025-07-02 20:12:08 +08:00
private IStaffDataEnterpriseWechatService _staffDataEnterpriseWechatService;
2025-06-30 19:22:02 +08:00
2025-07-02 20:12:08 +08:00
public EveryMinuteJob(IStaffDataEnterpriseWechatService staffDataEnterpriseWechatService)
2025-06-30 19:22:02 +08:00
{
2025-07-02 20:12:08 +08:00
_staffDataEnterpriseWechatService = staffDataEnterpriseWechatService;
2025-06-30 19:22:02 +08:00
}
public void Execute(IJobExecutionContext context)
{
2025-07-02 20:12:08 +08:00
_staffDataEnterpriseWechatService.TaskAttendanceRequest();
2025-06-30 19:22:02 +08:00
}
}
}