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