Trigger LoadTrigger() { if (!AllowLazyLoad(r => r.Trigger)) { return(trigger.CurrentValue); } if (trigger.CurrentValue == null) { return(trigger.CurrentValue); } return(triggerService.GetTrigger(trigger.CurrentValue.Id)); }
/// <summary> /// 获取任务执行计划 /// </summary> /// <param name="filter">查询条件</param> /// <returns></returns> public TriggerDto GetTrigger(TriggerFilterDto filter) { var trigger = triggerService.GetTrigger(CreateQueryObject(filter)); return(trigger.MapTo <TriggerDto>()); }