可选服务项目生成bug修复

usertest
嵇文龙 4 months ago
parent 3de44fdb1c
commit 8f80cb0cc3

@ -283,6 +283,16 @@ namespace DS.Module.Core
/// </summary> /// </summary>
[Description("待出产地证")] [Description("待出产地证")]
WAIT_CHANDIZHENG = 310, WAIT_CHANDIZHENG = 310,
/// <summary>
/// 待拖车
/// </summary>
[Description("待拖车")]
WAIT_TUOCHE = 311,
/// <summary>
/// 待办保险
/// </summary>
[Description("待办保险")]
WAIT_Insurance = 312,
#endregion #endregion
} }
} }

@ -116,7 +116,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 +151,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;
} }

Loading…
Cancel
Save