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.
|
|
|
|
using DS.Module.Core;
|
|
|
|
|
using DS.WMS.Core.TaskPlat.Dtos;
|
|
|
|
|
using DS.WMS.Core.TaskPlat.Entity;
|
|
|
|
|
using System.Linq.Expressions;
|
|
|
|
|
|
|
|
|
|
namespace DS.WMS.Core.TaskPlat.Interface
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 任务模块业务类的基类,封装了一些常用的方法
|
|
|
|
|
/// </summary>
|
|
|
|
|
public interface ITaskManageBaseService
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 更新任务主表状态
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="taskIds">任务主键数组</param>
|
|
|
|
|
/// <param name="columns">需要更新状态的列</param>
|
|
|
|
|
Task SetTaskStatus(long[] taskIds, params Expression<Func<TaskBaseInfo, bool>>[] columns);
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 设置任务处理人
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="taskIds">任务主键数组</param>
|
|
|
|
|
/// <param name="userInfo">人员信息列表</param>
|
|
|
|
|
Task SetTaskOwner(long[] taskIds, List<RecvUserInfo> userInfo);
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 根据任务ID获取附件信息
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="taskId">任务Id</param>
|
|
|
|
|
/// <param name="fileCategory">附件分类代码</param>
|
|
|
|
|
Task<(string fileFullPath, string fileName)> GetTaskFileInfo(long taskId, string fileCategory);
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 根据订单及配置,将所有或指定的公共任务匹配到个人
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="taskIdList">任务Id列表(当传入时,则只匹配列表中指定的任务)</param>
|
|
|
|
|
/// <returns>涉及当前登陆人的匹配结果</returns>
|
|
|
|
|
Task<DataResult<MatchTaskResultDto>> MatchTask(List<long>? taskIdList = null);
|
|
|
|
|
}
|
|
|
|
|
}
|