From 89cfe870933e08aa406a1c8ca5ce2d67ca8f2e17 Mon Sep 17 00:00:00 2001 From: liguoyang Date: Wed, 3 Apr 2024 15:47:24 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E7=A7=BB=E9=99=A4=E6=9D=83=E9=99=90?= =?UTF-8?q?=E4=B8=8B=E5=8F=91=E8=B0=83=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Services/Implements/GainfoUpdateService.cs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) 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); } }