修改维护方法
continuous-integration/drone/push Build is passing Details

Uat_IRC_Net8
hang 2025-01-16 15:13:58 +08:00
parent 77798e929e
commit 63919c8f6b
2 changed files with 23 additions and 29 deletions

View File

@ -161,7 +161,6 @@ namespace IRaCIS.Core.Application.Service
/// <returns></returns>
public async Task<IResponseOutput> UserMutiAccount([FromServices] IRepository<IdentityUser> _identityUserRepository)
{
_userInfo.IsNotNeedInspection = true;
if ((await _identityUserRepository.FirstOrDefaultAsync()) == null)
{

View File

@ -1735,14 +1735,12 @@ namespace IRaCIS.Core.Infra.EFCore.Common
var entity = item.Entity as IdentityUser;
if (!_userInfo.IsNotNeedInspection)
{
await InsertInspection<IdentityUser>(entity, type, x => new InspectionConvertDTO
{
IsDistinctionInterface = type == AuditOpt.Update ? true : false,
});
}
}
// 项目参与人员
foreach (var item in entitys.Where(x => x.Entity.GetType() == typeof(TrialIdentityUser)))
@ -1753,13 +1751,9 @@ namespace IRaCIS.Core.Infra.EFCore.Common
var identityUser = await _dbContext.IdentityUser.AsNoTracking().Where(x => x.Id == entity.IdentityUserId).FirstOrDefaultAsync();
//if (type == AuditOpt.Update)
//{
// extraIndentification = "/" + entity.IsDeleted.ToString();
//}
//var user = await _dbContext.Users.Include(x => x.UserTypeRole).FirstOrDefaultAsync(x => x.Id == entity.UserId);
// 变更维护数据,会维护数据,不能插入稽查
if (_userInfo.IsNotNeedInspection == false)
{
await InsertInspection<TrialIdentityUser>(entity, type, x => new InspectionConvertDTO
{
//IsDistinctionInterface = true ,
@ -1781,6 +1775,7 @@ namespace IRaCIS.Core.Infra.EFCore.Common
identityUser.OrganizationName,
});
}
}
// 项目人员
foreach (var item in entitys.Where(x => x.Entity.GetType() == typeof(TrialUserRole)))