From 051a19aa666a76e213ab993f97cc30e8229cf1aa Mon Sep 17 00:00:00 2001 From: liguoyang Date: Thu, 27 Jun 2024 18:57:43 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E8=A7=A3=E6=9E=90=E5=A4=96=E5=8C=85?= =?UTF-8?q?=E4=BA=BA=E5=91=98=E5=B7=A5=E5=8F=B7=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Organization/Services/Implements/GainfoOutsourceService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Src/Dlhis.Basic/Organization/Services/Implements/GainfoOutsourceService.cs b/Src/Dlhis.Basic/Organization/Services/Implements/GainfoOutsourceService.cs index c4913e66..42118ba2 100644 --- a/Src/Dlhis.Basic/Organization/Services/Implements/GainfoOutsourceService.cs +++ b/Src/Dlhis.Basic/Organization/Services/Implements/GainfoOutsourceService.cs @@ -102,7 +102,7 @@ public class GainfoOutsourceService : IGainfoOutsourceService handler.Acquired.ThrowIfFalse("生成虚拟工号失败"); int code; - var entity = await _dbContext.Queryable().OrderBy(x => x.Id, OrderByType.Desc).FirstAsync(); + var entity = await _dbContext.Queryable().Where(x => x.Code.StartsWith("LS")).OrderBy(x => x.Id, OrderByType.Desc).FirstAsync(); if (entity == null) { code = 1;