public class UseTimeJob : Job//重点是继承Job
{
public readonly IUserCourseJobTimeService _userCourseJobTimeService;
public readonly IOrganizationAppService _organizationAppService;
private readonly IOfflineCourseLiveRecordService _offlineCourseLiveRecordService;
public UseTimeJob(IUserCourseJobTimeService userCourseJobTimeService, IOrganizationAppService organizationAppService, IOfflineCourseLiveRecordService offlineCourseLiveRecordService)
{
_userCourseJobTimeService = userCourseJobTimeService;
_organizationAppService = organizationAppService;
_offlineCourseLiveRecordService = offlineCourseLiveRecordService;
}
[Invoke(Begin = "2023-03-21 01:40", Interval = 86400000, SkipWhileExecuting = true)]
public void DoTask()
{
//_organizationAppService.SaveJxjyUnit();
_offlineCourseLiveRecordService.GetClassRecordLogByProjectId();
_offlineCourseLiveRecordService.GetClassReturnRecordLogByProjectId();
_offlineCourseLiveRecordService.GetRecordToAction();
_offlineCourseLiveRecordService.AddLiveAreaCredit();
}
}