diff --git a/Src/Dlhis.ScheduledTask/Common/Services/Implements/GainfoUpdateService.cs b/Src/Dlhis.ScheduledTask/Common/Services/Implements/GainfoUpdateService.cs index 57e958af..002044a0 100644 --- a/Src/Dlhis.ScheduledTask/Common/Services/Implements/GainfoUpdateService.cs +++ b/Src/Dlhis.ScheduledTask/Common/Services/Implements/GainfoUpdateService.cs @@ -69,17 +69,17 @@ public class GainfoUpdateService : IGainfoUpdateService var tenantResult = await _tenantApi.GetTenantsInternalAsync(); _tenants = tenantResult.Data; - var codes = modifiedPersons.Select(x => x.ZWORKCODE).ToList(); - var userNos = await _dbContext.Queryable().Where(x => codes.Contains(x.Code)).Select(x => x.No).ToListAsync(); - var dtoResult = await _devicePermissionApi.GetPermissionUsersInfoAsync(userNos); - var dto = dtoResult.Data; + //var codes = modifiedPersons.Select(x => x.ZWORKCODE).ToList(); + //var userNos = await _dbContext.Queryable().Where(x => codes.Contains(x.Code)).Select(x => x.No).ToListAsync(); + //var dtoResult = await _devicePermissionApi.GetPermissionUsersInfoAsync(userNos); + //var dto = dtoResult.Data; await SavePersonAsync(modifiedPersons); - var rResult = await _devicePermissionApi.RePermissionUsersInfoAsync(dto); - var r = rResult.Data; + //var rResult = await _devicePermissionApi.RePermissionUsersInfoAsync(dto); + //var r = rResult.Data; - werkInfo.PermissionChangeNumber = r; + werkInfo.PermissionChangeNumber = 0; await _dbContext.UpdateAsync(werkInfo); } }