From e5a0df385d07f30be390d91e938e3de759956561 Mon Sep 17 00:00:00 2001 From: liguoyang Date: Sat, 9 Mar 2024 14:28:29 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E5=8C=B9=E9=85=8D=E5=A4=B1=E8=B4=A5?= =?UTF-8?q?=E8=8E=B7=E5=8F=96=E4=B8=AD=E6=96=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Src/Dlhis.ScheduledTask/SyncSapInfo/Job/SyncPersonJob.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Src/Dlhis.ScheduledTask/SyncSapInfo/Job/SyncPersonJob.cs b/Src/Dlhis.ScheduledTask/SyncSapInfo/Job/SyncPersonJob.cs index 3a135938..5b265e6a 100644 --- a/Src/Dlhis.ScheduledTask/SyncSapInfo/Job/SyncPersonJob.cs +++ b/Src/Dlhis.ScheduledTask/SyncSapInfo/Job/SyncPersonJob.cs @@ -145,8 +145,8 @@ public class SyncPersonJob Position = item.web, Remark = item.remark, Werks = item.WERKS, - Workplace = _tenants.FirstOrDefault(x => x.Name == item.ZZ_GZDJDNM)?.Code, - Factory = _tenants.FirstOrDefault(x => x.Name == item.ZZ_GZDCQNM)?.Code, + Workplace = _tenants.FirstOrDefault(x => x.Name == item.ZZ_GZDJDNM)?.Code ?? item.ZZ_GZDJDNM, + Factory = _tenants.FirstOrDefault(x => x.Name == item.ZZ_GZDCQNM)?.Code ?? item.ZZ_GZDCQNM, }; if (item.isowner == "T")