From 2ed6bbabe79a9790df43e60f69e27332a24f6240 Mon Sep 17 00:00:00 2001 From: liguoyang Date: Wed, 7 May 2025 10:28:21 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E5=88=A4=E6=96=AD=E5=8F=AA=E8=8E=B7?= =?UTF-8?q?=E5=8F=96=E4=BA=BA=E5=91=98=E5=AF=B9=E5=BA=94=E5=8E=82=E5=8C=BA?= =?UTF-8?q?=E7=9A=84=E8=AE=B0=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Services/Implements/GainfoOutsourceService.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Src/Dlhis.Basic/Organization/Services/Implements/GainfoOutsourceService.cs b/Src/Dlhis.Basic/Organization/Services/Implements/GainfoOutsourceService.cs index caf17fd3..984ba015 100644 --- a/Src/Dlhis.Basic/Organization/Services/Implements/GainfoOutsourceService.cs +++ b/Src/Dlhis.Basic/Organization/Services/Implements/GainfoOutsourceService.cs @@ -135,6 +135,7 @@ public class GainfoOutsourceService : IGainfoOutsourceService { var raiseDateTime = await _dbContext.Queryable() .Where(x => x.UserUniqueNo == outsource.Code) + .Where(x => x.TenantId == grp.Key)//本厂区的 .GroupBy(x => x.UserUniqueNo) .Select(x => SqlFunc.IsNull(SqlFunc.AggregateMax(x.RaiseDateTime), outsource.CreateTime)) .SingleAsync(); @@ -189,8 +190,8 @@ public class GainfoOutsourceService : IGainfoOutsourceService // } // // return "EXT" + code.ToString().PadLeft(6, '0'); - - + + int code; var entity = await _dbContext.Queryable().Where(x => x.Code.StartsWith("LS")).OrderBy(x => x.Id, OrderByType.Desc).FirstAsync(); if (entity == null)