diff --git a/ds-wms-service/DS.WMS.Core/TaskPlat/Method/TaskManageBaseService.cs b/ds-wms-service/DS.WMS.Core/TaskPlat/Method/TaskManageBaseService.cs index 0805fcd6..186bda2b 100644 --- a/ds-wms-service/DS.WMS.Core/TaskPlat/Method/TaskManageBaseService.cs +++ b/ds-wms-service/DS.WMS.Core/TaskPlat/Method/TaskManageBaseService.cs @@ -1,4 +1,5 @@ using DS.Module.Core; +using DS.Module.Core.Data; using DS.Module.SqlSugar; using DS.Module.UserModule; using DS.WMS.Core.Op.Entity; @@ -55,6 +56,8 @@ namespace DS.WMS.Core.TaskPlat.Method public async Task SetTaskStatus(long[] taskIds, params Expression>[] columns) { SqlSugarScopeProvider tenantDb = saasDbService.GetBizDbScopeById(user.TenantId); + //任务不考虑OrgId,这里去掉 + tenantDb.QueryFilter.Clear(); var updateable = tenantDb.Updateable(); foreach (var item in columns) @@ -79,6 +82,9 @@ namespace DS.WMS.Core.TaskPlat.Method public async Task SetTaskOwner(long[] taskIds, List userInfo) { SqlSugarScopeProvider tenantDb = saasDbService.GetBizDbScopeById(user.TenantId); + //任务不考虑OrgId,这里去掉 + tenantDb.QueryFilter.Clear(); + try { var taskList = await tenantDb.Queryable().Where(x => taskIds.Contains(x.Id)).ToListAsync(x => new @@ -256,6 +262,8 @@ namespace DS.WMS.Core.TaskPlat.Method public async Task<(string fileFullPath, string fileName)> GetTaskFileInfo(long taskId, string fileCategory) { var tenantDb = saasDbService.GetBizDbScopeById(user.TenantId); + //任务不考虑OrgId,这里去掉 + tenantDb.QueryFilter.Clear(); var bcTaskInfo = await tenantDb.Queryable().Where(u => u.Id == taskId).FirstAsync(); if (bcTaskInfo == null) @@ -320,6 +328,8 @@ namespace DS.WMS.Core.TaskPlat.Method MatchTaskResultDto result = new MatchTaskResultDto(); var tenantDb = saasDbService.GetBizDbScopeById(user.TenantId); + //任务不考虑OrgId,这里去掉 + tenantDb.QueryFilter.Clear(); var taskList = await tenantDb.Queryable() .Where(x => x.IS_PUBLIC == 1