From 5c8d7d1b7a055cf421c9489ab51a6f44708061e6 Mon Sep 17 00:00:00 2001 From: liguoyang Date: Fri, 26 Jun 2026 17:29:57 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=9F=A5=E8=AF=A2null=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Services/Implements/GainfoIdCardFaceCompareService.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Src/Dlhis.Basic/Organization/Services/Implements/GainfoIdCardFaceCompareService.cs b/Src/Dlhis.Basic/Organization/Services/Implements/GainfoIdCardFaceCompareService.cs index 90170693..fa8ef7d7 100644 --- a/Src/Dlhis.Basic/Organization/Services/Implements/GainfoIdCardFaceCompareService.cs +++ b/Src/Dlhis.Basic/Organization/Services/Implements/GainfoIdCardFaceCompareService.cs @@ -148,15 +148,15 @@ public class GainfoIdCardFaceCompareService : IGainfoIdCardFaceCompareService await _dbContext.UpdateAsync(record); - return await GetRecordAsync(record.Id); + return await GetRecordAsync(record.UserCode); } - private async Task GetRecordAsync(long id) + private async Task GetRecordAsync(string userCode) { return await _dbContext.Queryable() .LeftJoin((record, gainfo) => record.UserCode == gainfo.Code) .LeftJoin((record, gainfo, department) => gainfo.DepartmentNo == department.No) - .Where(record => record.Id == id) + .Where(record => record.UserCode == userCode) .Select((record, gainfo, department) => new IdCardFaceCompareRecordResponse { Id = record.Id,