|
|
|
|
using HighWayIot.Repository.domain;
|
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
namespace HighWayIot.Repository.service
|
|
|
|
|
{
|
|
|
|
|
public interface IRealTaskInfoService
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 添加任务信息
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="taskInfo"></param>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
bool AddTaskInfo(RealTaskInfo taskInfo);
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 更新任务信息
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="taskInfo"></param>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
bool UpdateTaskInfo(RealTaskInfo taskInfo);
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 删除任务信息
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="taskInfo"></param>
|
|
|
|
|
bool DeleteTaskInfo(string taskCode);
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 通过任务编号更新任务状态
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="taskCode"></param>
|
|
|
|
|
/// <param name="taskStatus"></param>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
bool UpdateTaskStatusByTaskCode(string taskCode, int taskStatus);
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 通过仓库编号获取待执行的任务信息,根据时间依次获取
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="storeCode"></param>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
RealTaskInfo GetTaskInfoByStoreCode(string storeCode, int taskType);
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 通过任务号获取任务信息
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="taskCode"></param>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
RealTaskInfo GetTaskInfoByTaskCode(string taskCode);
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 通过仓库编号获取任务
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="storeCode"></param>
|
|
|
|
|
/// <param name="taskType"></param>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
List<RealTaskInfo> GetTaskInfosByStoreCode(string[] storeCode,int taskType);
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 获取指定状态的任务列表
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="storeCode"></param>
|
|
|
|
|
/// <param name="taskType"></param>
|
|
|
|
|
/// <param name="taskStatus">0返回所有状态;1-待执行;2-执行中;3-已完成</param>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
List<RealTaskInfo> GetTaskInfosByTaskStatus(string[] storeCode, int taskType, int taskStatus);
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|