如果区域未选择 则不发给对应人员
This commit is contained in:
		
							parent
							
								
									645cd494cd
								
							
						
					
					
						commit
						b56830bb25
					
				@ -44,10 +44,11 @@ namespace APT.HM.WebApi.Controllers.Api
 | 
			
		||||
        {
 | 
			
		||||
            return SafeExecute<bool>(() =>
 | 
			
		||||
            {
 | 
			
		||||
                var users = GetEntities<T_HM_RISK_RECORD_USER>(t=>t.RECORD_ID==entity.ID,new BaseFilter(entity.ORG_ID));
 | 
			
		||||
                var details = entity.Nav_Details;
 | 
			
		||||
                var allAreas = details.Select(t => t.AREA_ID);
 | 
			
		||||
                var users = GetEntities<T_HM_RISK_RECORD_USER>(t => t.RECORD_ID == entity.ID && allAreas.Contains(t.AREA_ID), new BaseFilter(entity.ORG_ID));
 | 
			
		||||
                var identifyings = entity.Nav_Identifyings;
 | 
			
		||||
                var files = entity.Nav_Files;
 | 
			
		||||
                var details = entity.Nav_Details;
 | 
			
		||||
                entity.Nav_Users = null;
 | 
			
		||||
                entity.Nav_Identifyings = null;
 | 
			
		||||
                entity.Nav_Files = null;
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user