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, HandleIdea = item.HandleIdea,
CutPayment = item.CutPayment, CutPayment = item.CutPayment,
ProblemTypes = item.ProblemTypes, ProblemTypes = item.ProblemTypes,
RegisterTypesId = item.RegisterTypesId, RegisterTypesId = APIDataShareSyncService.getRegisterTypesId(item.RegisterTypesName),
CheckCycle = item.CheckCycle, CheckCycle = item.CheckCycle,
CheckItemDetailId = item.CheckItemDetailId, CheckItemDetailId = item.CheckItemDetailId,
SupCheckItemSetId = item.SupCheckItemSetId, SupCheckItemSetId = item.SupCheckItemSetId,

View File

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