using HighWayIot.Config; using HighWayIot.Log4net; using HighWayIot.Repository.domain; using HighWayIot.Repository.service; using HighWayIot.Repository.service.Impl; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Aucma.Scada.Business { public sealed class TaskInfoBusiness { private static readonly Lazy lazy = new Lazy(() => new TaskInfoBusiness()); public static TaskInfoBusiness Instance { get { return lazy.Value; } } private LogHelper logHelper = LogHelper.Instance; private AppConfig appConfig = AppConfig.Instance; private IRealTaskInfoService taskInfoService = new RealTaskInfoServiceImpl(); public TaskInfoBusiness() { } /// /// 获取计划列表 /// /// /// public List GetTaskInfos(int taskType) { return taskInfoService.GetTaskInfosByTaskStatus(new string[] { appConfig.shellStoreCode, appConfig.linerStoreCode }, taskType,0); } } }