fix 查询匹配使用code

This commit is contained in:
2024-06-17 14:49:29 +08:00
parent 1859f9abe2
commit 0e86cafebf

View File

@@ -226,8 +226,8 @@ public class GainfoFaceService : IGainfoFaceService
{
foreach (var request in requests)
{
var gainfo = await _gainfoStore.Queryable(GainfoStatusEnumType.Working).Where(x => x.No == request.UserNo).FirstAsync();
gainfo ??= await _gainfoStore.Queryable(GainfoStatusEnumType.External).Where(x => x.No == request.UserNo).FirstAsync();
var gainfo = await _gainfoStore.Queryable(GainfoStatusEnumType.Working).Where(x => x.Code == request.UserNo).FirstAsync();
gainfo ??= await _gainfoStore.Queryable(GainfoStatusEnumType.External).Where(x => x.Code == request.UserNo).FirstAsync();
gainfo.ThrowIfNull("人员档案信息不存在");