You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Aucma.Scada/Aucma.Scada.Business/TaskInfoBusiness.cs

47 lines
1.2 KiB
C#

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<TaskInfoBusiness> lazy = new Lazy<TaskInfoBusiness>(() => 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()
{
}
/// <summary>
/// 获取计划列表
/// </summary>
/// <param name="taskType"></param>
/// <returns></returns>
public List<RealTaskInfo> GetTaskInfos(int taskType)
{
return taskInfoService.GetTaskInfosByTaskStatus(new string[] { appConfig.shellStoreCode, appConfig.linerStoreCode }, taskType,0);
}
}
}