diff --git a/ds-wms-service/DS.Module.Core/Enums/TaskPlat/TaskBaseTypeEnum.cs b/ds-wms-service/DS.Module.Core/Enums/TaskPlat/TaskBaseTypeEnum.cs index 4be9c0bb..cfd5b25f 100644 --- a/ds-wms-service/DS.Module.Core/Enums/TaskPlat/TaskBaseTypeEnum.cs +++ b/ds-wms-service/DS.Module.Core/Enums/TaskPlat/TaskBaseTypeEnum.cs @@ -283,6 +283,16 @@ namespace DS.Module.Core /// [Description("待出产地证")] WAIT_CHANDIZHENG = 310, + /// + /// 待拖车 + /// + [Description("待拖车")] + WAIT_TUOCHE = 311, + /// + /// 待办保险 + /// + [Description("待办保险")] + WAIT_Insurance = 312, #endregion } } diff --git a/ds-wms-service/DS.WMS.Core/Op/Method/TaskInteraction/SeaExportTaskService.cs b/ds-wms-service/DS.WMS.Core/Op/Method/TaskInteraction/SeaExportTaskService.cs index ce57b6bc..0d23d424 100644 --- a/ds-wms-service/DS.WMS.Core/Op/Method/TaskInteraction/SeaExportTaskService.cs +++ b/ds-wms-service/DS.WMS.Core/Op/Method/TaskInteraction/SeaExportTaskService.cs @@ -116,7 +116,7 @@ namespace DS.WMS.Core.Op.Method.TaskInteraction var task = await GetQuery(request.BusinessId, request.BusinessType, request.TaskType).FirstAsync(); 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); } } @@ -151,6 +151,10 @@ namespace DS.WMS.Core.Op.Method.TaskInteraction dto.TaskTypeName = TaskBaseTypeEnum.WAIT_COA.ToString(); else if (svcName == "产地证") 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; }