using Admin.Core.Model;
using System.Collections.Generic;
using System.Threading.Tasks;
namespace Admin.Core.IService
{
///
/// IRealTaskInfoServices
///
public interface IRealTaskInfoServices : IBaseServices
{
///
/// 添加任务信息
///
///
///
Task AddTaskInfo(RealTaskInfo taskInfo);
///
/// 更新任务信息
///
///
///
Task UpdateTaskInfo(RealTaskInfo taskInfo);
///
/// 批量修改任务信息
///
///
///
Task UpdateRangeTaskInfo(List taskInfos);
///
/// 删除任务信息
///
///
Task DeleteTaskInfo(string taskCode, string storeCode = null);
///
/// 通过任务编号更新任务状态
///
///
///
///
Task UpdateTaskStatusByTaskCode(string taskCode, int taskStatus);
///
/// 通过仓库编号获取待执行的任务信息,根据时间依次获取
///
///
///
Task GetTaskInfoByStoreCode(string storeCode, int taskType);
///
/// 通过任务号获取任务信息
///
///
///
Task GetTaskInfoByTaskCode(string taskCode, string storeCode);
///
/// 通过仓库编号获取任务
///
///
///
///
Task> GetTaskInfosByStoreCode(string[] storeCode, int taskType);
Task> GetTaskInfosByTaskCode(string taskCode);
Task DeleteTaskInfoById(int id);
///
/// 获取指定状态的任务列表
///
///
///
/// 0返回所有状态;1-待执行;2-执行中;3-已完成
///
Task> GetTaskInfosByTaskStatus(string[] storeCode, int taskType, int taskStatus);
}
}