|
|
|
@ -65,6 +65,7 @@ namespace DS.WMS.Core.Op.Method.TaskInteraction
|
|
|
|
|
|
|
|
|
|
var taskList = new List<BusinessTask>();
|
|
|
|
|
var taskLogList = new List<BusinessTaskLog>();
|
|
|
|
|
//获取任务接收人
|
|
|
|
|
var dic = await GetRecvUsersAsync(first.BusinessId, first.BusinessType, request.Select(x => x.TaskType).ToList());
|
|
|
|
|
foreach (var item in request)
|
|
|
|
|
{
|
|
|
|
@ -136,16 +137,16 @@ namespace DS.WMS.Core.Op.Method.TaskInteraction
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
public async Task CreateSubTaskAsync(BusinessTask task)
|
|
|
|
|
{
|
|
|
|
|
var list = await GetSubRequestAsync(task.BusinessId, task.BusinessType, task.RecvUserIdArray);
|
|
|
|
|
var list = await GetSubRequestAsync(task.BusinessId, task.BusinessType);
|
|
|
|
|
await CreateSubTaskAsync(list.FindAll(x => x.TaskType != TaskBaseTypeEnum.NOT_SPECIFIED).OrderBy(x => x.TaskType));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 创建关联子任务
|
|
|
|
|
/// 生成关联子任务
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="dataContext"></param>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
public async Task CreateSubTask(TaskFlowDataContext dataContext)
|
|
|
|
|
public async Task GenerateSubTaskAsync(TaskFlowDataContext dataContext)
|
|
|
|
|
{
|
|
|
|
|
ArgumentNullException.ThrowIfNull(dataContext, nameof(dataContext));
|
|
|
|
|
|
|
|
|
@ -232,7 +233,8 @@ namespace DS.WMS.Core.Op.Method.TaskInteraction
|
|
|
|
|
if (((JObject)result.data)["ext"] is not JArray extArray || extArray.Count == 0)
|
|
|
|
|
return [];
|
|
|
|
|
|
|
|
|
|
return extArray.Where(x => x["isYield"].Value<bool>()).Select(x => x["projectName"]?.Value<string>() ?? string.Empty).ToArray();
|
|
|
|
|
return extArray.Where(x => x["isYield"].Value<bool>()).Select(
|
|
|
|
|
x => x["projectName"]?.Value<string>() ?? string.Empty).ToArray();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|