Test.EIImageViewer
			
			
		
		
							parent
							
								
									1fa56cc36f
								
							
						
					
					
						commit
						0c03361791
					
				| 
						 | 
				
			
			@ -557,6 +557,11 @@
 | 
			
		|||
            外键Text
 | 
			
		||||
             </summary>
 | 
			
		||||
        </member>
 | 
			
		||||
        <member name="P:IRaCIS.Core.Application.ViewModel.FrontAuditConfigAddOrEdit.InterfaceName">
 | 
			
		||||
            <summary>
 | 
			
		||||
            接口名
 | 
			
		||||
            </summary>
 | 
			
		||||
        </member>
 | 
			
		||||
        <member name="T:IRaCIS.Core.Application.ViewModel.SystemAnonymizationView">
 | 
			
		||||
            <summary> SystemAnonymizationView  列表视图模型 </summary>
 | 
			
		||||
        </member>
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -305,7 +305,7 @@ namespace IRaCIS.Core.Application.Service
 | 
			
		|||
 | 
			
		||||
            //  CreateMap< FrontAuditConfig,FrontAuditConfigAddOrEdit>().ReverseMap();
 | 
			
		||||
 | 
			
		||||
            if (await _frontAuditConfigRepository.AnyAsync(x => x.Identification == addOrEditFrontAuditConfig.Identification && x.Id != addOrEditFrontAuditConfig.Id&&x.ConfigType=="M"&& addOrEditFrontAuditConfig.ConfigType== "M"))
 | 
			
		||||
            if (await _frontAuditConfigRepository.AnyAsync(x =>x.Identification!=string.Empty&& x.Identification == addOrEditFrontAuditConfig.Identification && x.Id != addOrEditFrontAuditConfig.Id&&x.ConfigType=="M"&& addOrEditFrontAuditConfig.ConfigType== "M"))
 | 
			
		||||
            {
 | 
			
		||||
                return ResponseOutput.NotOk("标识重复");
 | 
			
		||||
            }
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -53,7 +53,7 @@ namespace IRaCIS.Core.Infra.EFCore.Common
 | 
			
		|||
            await InsertAddEntitys(entitys.Where(x => x.State == EntityState.Added).ToList(), "Add");
 | 
			
		||||
 | 
			
		||||
            // 修改
 | 
			
		||||
            await InsertAddEntitys(entitys.Where(x => x.State == EntityState.Modified).ToList(), "Update");
 | 
			
		||||
            await InsertAddEntitys(entitys.Where(x => x.State == EntityState.Modified||x.State==EntityState.Unchanged).ToList(), "Update");
 | 
			
		||||
 | 
			
		||||
            // 删除
 | 
			
		||||
            await InsertAddEntitys(entitys.Where(x => x.State == EntityState.Deleted).ToList(), "Deleted");
 | 
			
		||||
| 
						 | 
				
			
			@ -133,7 +133,7 @@ namespace IRaCIS.Core.Infra.EFCore.Common
 | 
			
		|||
                var entity = data.Entity as T;
 | 
			
		||||
                inspection = f(entity);
 | 
			
		||||
            }
 | 
			
		||||
            inspection.Identification = $"{GetRequestUrl()}/{ data.GetType().ToString().Substring(data.GetType().ToString().LastIndexOf('.') + 1)}/{type}";
 | 
			
		||||
            inspection.Identification = $"{GetRequestUrl()}/{ data.Entity.GetType().ToString().Substring(data.Entity.GetType().ToString().LastIndexOf('.') + 1)}/{type}";
 | 
			
		||||
            var originaldata = data.OriginalValues as T;
 | 
			
		||||
            if (originaldata != null)
 | 
			
		||||
            {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -371,7 +371,7 @@ namespace IRaCIS.Core.Infra.EFCore
 | 
			
		|||
 | 
			
		||||
        public  async Task AddAudit()
 | 
			
		||||
        {
 | 
			
		||||
            var entities = ChangeTracker.Entries().Where(u => (u.State == EntityState.Modified || u.State == EntityState.Deleted || u.State == EntityState.Added)).Where(x => x.Entity.GetType() != typeof(DataInspection)).ToList();
 | 
			
		||||
            var entities = ChangeTracker.Entries().Where(u => (u.State == EntityState.Modified||u.State==EntityState.Unchanged || u.State == EntityState.Deleted || u.State == EntityState.Added)).Where(x => x.Entity.GetType() != typeof(DataInspection)).ToList();
 | 
			
		||||
            AuditingData auditingData = new AuditingData(this, _userInfo);
 | 
			
		||||
            await auditingData.IncomingEntitys(entities);
 | 
			
		||||
        }
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue