|
|
@ -93,6 +93,7 @@ namespace DS.WMS.Core.Op.Method.TaskInteraction
|
|
|
|
BusinessType = item.BusinessType,
|
|
|
|
BusinessType = item.BusinessType,
|
|
|
|
TaskType = item.TaskType,
|
|
|
|
TaskType = item.TaskType,
|
|
|
|
TaskStatus = TaskStatusEnum.Create,
|
|
|
|
TaskStatus = TaskStatusEnum.Create,
|
|
|
|
|
|
|
|
RecvUsers = info.Main.RecvUserInfoList == null ? string.Empty : string.Join(",", info.Main.RecvUserInfoList.Select(x => x.RecvUserId)),
|
|
|
|
CreateBy = userId,
|
|
|
|
CreateBy = userId,
|
|
|
|
CreateTime = dt
|
|
|
|
CreateTime = dt
|
|
|
|
};
|
|
|
|
};
|
|
|
@ -116,7 +117,7 @@ namespace DS.WMS.Core.Op.Method.TaskInteraction
|
|
|
|
var task = await GetQuery(request.BusinessId, request.BusinessType, request.TaskType).FirstAsync();
|
|
|
|
var task = await GetQuery(request.BusinessId, request.BusinessType, request.TaskType).FirstAsync();
|
|
|
|
if (task != null)
|
|
|
|
if (task != null)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
var list = await GetSubRequestAsync(request.BusinessId, request.BusinessType, task.RecvUserIdArray);
|
|
|
|
var list = Array.FindAll(await GetSubRequestAsync(request.BusinessId, request.BusinessType, task.RecvUserIdArray), x => !string.IsNullOrEmpty(x.TaskTypeName));
|
|
|
|
await CreateSubTaskAsync(list);
|
|
|
|
await CreateSubTaskAsync(list);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -151,6 +152,10 @@ namespace DS.WMS.Core.Op.Method.TaskInteraction
|
|
|
|
dto.TaskTypeName = TaskBaseTypeEnum.WAIT_COA.ToString();
|
|
|
|
dto.TaskTypeName = TaskBaseTypeEnum.WAIT_COA.ToString();
|
|
|
|
else if (svcName == "产地证")
|
|
|
|
else if (svcName == "产地证")
|
|
|
|
dto.TaskTypeName = TaskBaseTypeEnum.WAIT_CHANDIZHENG.ToString();
|
|
|
|
dto.TaskTypeName = TaskBaseTypeEnum.WAIT_CHANDIZHENG.ToString();
|
|
|
|
|
|
|
|
else if (svcName == "拖车")
|
|
|
|
|
|
|
|
dto.TaskTypeName = TaskBaseTypeEnum.WAIT_TUOCHE.ToString();
|
|
|
|
|
|
|
|
else if (svcName == "保险")
|
|
|
|
|
|
|
|
dto.TaskTypeName = TaskBaseTypeEnum.WAIT_Insurance.ToString();
|
|
|
|
|
|
|
|
|
|
|
|
list[i] = dto;
|
|
|
|
list[i] = dto;
|
|
|
|
}
|
|
|
|
}
|
|
|
|