diff --git a/Src/Dlhis.Basic/Organization/Services/Implements/GainfoUpdateService.cs b/Src/Dlhis.Basic/Organization/Services/Implements/GainfoUpdateService.cs index 6405d538..aaacc104 100644 --- a/Src/Dlhis.Basic/Organization/Services/Implements/GainfoUpdateService.cs +++ b/Src/Dlhis.Basic/Organization/Services/Implements/GainfoUpdateService.cs @@ -58,6 +58,13 @@ public class GainfoUpdateService : IGainfoUpdateService { var modifiedPersons = await GetModifiedPersonAsync(persons.OrderByDescending(x => x.ZSTATUS).ThenBy(x => x.ZRZRQ).ToList()); + if (werk == "1060") + { + _logger.LogInformation("1060差异:{json}", modifiedPersons.ToJson()); + var codes = modifiedPersons.Select(x => x.ZWORKCODE).ToList(); + var d = await LoadDataAsync(); + _logger.LogInformation("1060原始:{json}", d.Where(x => codes.Contains(x.ZWORKCODE)).ToList().ToJson()); + } werkInfo.HandleMessage = "SAP人员差异数量" + modifiedPersons.Count; werkInfo.DiffNumber = modifiedPersons.Count; await _dbContext.UpdateAsync(werkInfo);