diff --git a/ds-wms-service/DS.WMS.Core/TaskPlat/Method/TaskAllocationService.cs b/ds-wms-service/DS.WMS.Core/TaskPlat/Method/TaskAllocationService.cs index dda56e92..87cd1d7e 100644 --- a/ds-wms-service/DS.WMS.Core/TaskPlat/Method/TaskAllocationService.cs +++ b/ds-wms-service/DS.WMS.Core/TaskPlat/Method/TaskAllocationService.cs @@ -3,6 +3,7 @@ using DS.Module.Core.Condition; using DS.Module.Core.Data; using DS.Module.SqlSugar; using DS.Module.UserModule; +using DS.WMS.Core.Op.Dtos; using DS.WMS.Core.Op.Entity; using DS.WMS.Core.Sys.Interface; using DS.WMS.Core.Sys.Method; @@ -10,6 +11,7 @@ using DS.WMS.Core.TaskPlat.Dtos; using DS.WMS.Core.TaskPlat.Entity; using DS.WMS.Core.TaskPlat.Interface; using LanguageExt.Pipes; +using Mapster; using Microsoft.Extensions.Logging; using Newtonsoft.Json; using SqlSugar; @@ -273,7 +275,8 @@ namespace DS.WMS.Core.TaskPlat.Method var tenantDb = saasDbService.GetBizDbScopeById(user.TenantId); if (dataContext.ContainsKey(TaskFlowDataNameConst.Business)) { - order = dataContext.Get(TaskFlowDataNameConst.Business); + var orderDto = dataContext.Get(TaskFlowDataNameConst.Business); + order = orderDto.Adapt(); } else { @@ -403,7 +406,8 @@ namespace DS.WMS.Core.TaskPlat.Method var tenantDb = saasDbService.GetBizDbScopeById(user.TenantId); if (dataContext.ContainsKey(TaskFlowDataNameConst.Business)) { - order = dataContext.Get(TaskFlowDataNameConst.Business); + var orderDto = dataContext.Get(TaskFlowDataNameConst.Business); + order = orderDto.Adapt(); } else {