private string GetLastupdateCondition(JobName jobName) { string lastUpdateCondition = string.Empty; object[] logs = this.GetJobLog(jobName); if (logs != null && logs.Length > 0) { lastUpdateCondition = " AND LASTUPDATE > to_date('{0}','YYYY-MM-DD HH24:MI:SS') "; JobLog lastJobLog = (JobLog)logs[0]; lastUpdateCondition = string.Format(lastUpdateCondition, lastJobLog.EndTime.ToString("yyyy-MM-dd HH:mm:ss")); } return(lastUpdateCondition); }
//导入失败的joglog public void AddFailedJobLog(JobName jobName, DateTime beginTime, DateTime endTime) { JobLog _jobLog = this.CreateFailedJobLog(jobName, beginTime, endTime); this._helper.AddDomainObject(_jobLog); }