This commit is contained in:
夏菊 2026-02-28 17:31:13 +08:00
parent bcb1adf1c0
commit 120a3d28ee
2 changed files with 3 additions and 3 deletions

View File

@ -360,7 +360,7 @@ public class APIHazardRegisterSyncService
HandleIdea = item.HandleIdea,
CutPayment = item.CutPayment,
ProblemTypes = item.ProblemTypes,
RegisterTypesId = item.RegisterTypesId,
RegisterTypesId = APIDataShareSyncService.getRegisterTypesId(item.RegisterTypesName),
CheckCycle = item.CheckCycle,
CheckItemDetailId = item.CheckItemDetailId,
SupCheckItemSetId = item.SupCheckItemSetId,

View File

@ -366,8 +366,8 @@ public class APIPersonSyncService
{
try
{
string PersonId = item.PersonId;
var model = db.SitePerson_Person.FirstOrDefault(e => e.PersonId == PersonId);
string IdentityCard = item.IdentityCard;
var model = db.SitePerson_Person.FirstOrDefault(e => e.IdentityCard == IdentityCard && e.ProjectId == projectId);
if (model == null)
{
Model.SitePerson_Person newModel = new Model.SitePerson_Person