fix: 再次处理
This commit is contained in:
@@ -509,11 +509,12 @@ public class GainfoUpdateService : IGainfoUpdateService
|
|||||||
var first = modifiedPersons[0];
|
var first = modifiedPersons[0];
|
||||||
SapPersonItem historyPerson = null;
|
SapPersonItem historyPerson = null;
|
||||||
var hasHistory = !string.IsNullOrWhiteSpace(first.ZWORKCODE) && lastMap.TryGetValue(first.ZWORKCODE, out historyPerson);
|
var hasHistory = !string.IsNullOrWhiteSpace(first.ZWORKCODE) && lastMap.TryGetValue(first.ZWORKCODE, out historyPerson);
|
||||||
|
var diffType = hasHistory ? "Update" : "Insert";
|
||||||
var diffMessage = hasHistory
|
var diffMessage = hasHistory
|
||||||
? string.Join("; ", GetFirstDiffFields(first, historyPerson))
|
? string.Join("; ", GetFirstDiffFields(first, historyPerson))
|
||||||
: "历史记录不存在";
|
: "历史记录不存在";
|
||||||
_logger.LogWarning("SAP首条差异 ZWORKCODE:{workCode}, HasHistory:{hasHistory}, Diffs:{diffs}",
|
_logger.LogWarning("SAP首条差异 DiffType:{diffType}, ZWORKCODE:{workCode}, HasHistory:{hasHistory}, Diffs:{diffs}",
|
||||||
first.ZWORKCODE, hasHistory, diffMessage);
|
diffType, first.ZWORKCODE, hasHistory, diffMessage);
|
||||||
}
|
}
|
||||||
|
|
||||||
return modifiedPersons;
|
return modifiedPersons;
|
||||||
@@ -599,10 +600,10 @@ public class GainfoUpdateService : IGainfoUpdateService
|
|||||||
ZZ_ZD = person.ZZ_ZD,
|
ZZ_ZD = person.ZZ_ZD,
|
||||||
Z_ZJ = person.Z_ZJ,
|
Z_ZJ = person.Z_ZJ,
|
||||||
STELL = person.PLANS,//person.STELL, 20251129变更
|
STELL = person.PLANS,//person.STELL, 20251129变更
|
||||||
STELL_NM = person.STELL_NM,
|
STELL_NM = person.STELL_NM ?? string.Empty,
|
||||||
ZLZRQ = person.ZLZRQ,
|
ZLZRQ = person.ZLZRQ,
|
||||||
MASSN = person.MASSN,
|
MASSN = person.MASSN ?? string.Empty,
|
||||||
MNTXT = person.MNTXT,
|
MNTXT = person.MNTXT ?? string.Empty,
|
||||||
remark = rmk,
|
remark = rmk,
|
||||||
native = native,
|
native = native,
|
||||||
sex = gender,
|
sex = gender,
|
||||||
|
|||||||
Reference in New Issue
Block a user