From c5d6166e9fd597d72227d88bbf1a972687fb58cf Mon Sep 17 00:00:00 2001 From: liguoyang Date: Wed, 16 Jul 2025 10:02:10 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E5=88=87=E6=8D=A2=E7=BD=91=E6=A0=BC?= =?UTF-8?q?=E7=AE=A1=E7=90=86=E5=91=98=E4=BA=BA=E5=91=98=E9=9C=80=E8=A6=81?= =?UTF-8?q?=E4=B8=BA=E7=BD=91=E6=A0=BC=E6=89=80=E5=9C=A8=E5=8E=82=E5=8C=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../WorkGrids/Services/Implements/WorkGridService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Src/Dlhis.Basic/WorkGrids/Services/Implements/WorkGridService.cs b/Src/Dlhis.Basic/WorkGrids/Services/Implements/WorkGridService.cs index a18aacd0..0a1120a4 100644 --- a/Src/Dlhis.Basic/WorkGrids/Services/Implements/WorkGridService.cs +++ b/Src/Dlhis.Basic/WorkGrids/Services/Implements/WorkGridService.cs @@ -147,7 +147,7 @@ public class WorkGridService : IWorkGridService var gainfo = await _dbContext.Queryable().Where(x => x.Code == to).SingleAsync(); gainfo.ThrowIfNull($"{to}人员不存在"); - (gainfo.Factory != beforeGainfo.Factory).ThrowIfTrue($"必须选择相同厂区({beforeGainfo.Factory})人员管理({gainfo.Factory}错误)"); + (gainfo.Factory != workGrid.TenantId).ThrowIfTrue($"请选择厂区{workGrid.TenantId}的人员进行管理"); workGrid.LeaderUserCode = to; await _dbContext.UpdateAsync(workGrid);