From a020581ee63a48bd3a3c761faaf7ae0cecc4d3e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B5=87=E6=96=87=E9=BE=99?= Date: Sat, 14 Sep 2024 16:34:28 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9F=A5=E6=89=BE=E5=AE=A1=E6=89=B9=E6=A8=A1?= =?UTF-8?q?=E6=9D=BF=E5=A2=9E=E5=8A=A0=E7=A7=9F=E6=88=B7=E8=BF=87=E6=BB=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ds-wms-service/DS.WMS.Core/ServiceBase.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ds-wms-service/DS.WMS.Core/ServiceBase.cs b/ds-wms-service/DS.WMS.Core/ServiceBase.cs index 876c2aaf..4e022b86 100644 --- a/ds-wms-service/DS.WMS.Core/ServiceBase.cs +++ b/ds-wms-service/DS.WMS.Core/ServiceBase.cs @@ -1,5 +1,4 @@ using DS.Module.Core; -using DS.Module.Core.Data; using DS.Module.SqlSugar; using DS.Module.UserModule; using DS.WMS.Core.Flow.Entity; @@ -64,8 +63,9 @@ namespace DS.WMS.Core /// protected internal async Task FindTemplateAsync(TaskBaseTypeEnum auditType) { + long tid = long.Parse(User.TenantId); return await Db.Queryable().OrderByDescending(x => x.CreateTime).Take(1) - .FirstAsync(x => x.Status == StatusEnum.Enable && x.AuditType == auditType); + .FirstAsync(x => x.TenantId == tid && x.Status == StatusEnum.Enable && x.AuditType == auditType); } } }