213
This commit is contained in:
		
							parent
							
								
									a6ff507885
								
							
						
					
					
						commit
						1fc1ff717e
					
				@ -322,7 +322,7 @@ namespace APT.FM.WebApi.Controllers.Api.FM
 | 
				
			|||||||
            var result = new PagedActionResult<T_FM_USER>();
 | 
					            var result = new PagedActionResult<T_FM_USER>();
 | 
				
			||||||
            var loginUserId = APT.Infrastructure.Api.AppContext.CurrentSession.UserID;
 | 
					            var loginUserId = APT.Infrastructure.Api.AppContext.CurrentSession.UserID;
 | 
				
			||||||
            var admiId = this.GetEntity<T_FM_USER>(t => t.CODE == "admin")?.ID;
 | 
					            var admiId = this.GetEntity<T_FM_USER>(t => t.CODE == "admin")?.ID;
 | 
				
			||||||
            var AH = GetEntity<T_FM_USER>(t => t.ID == loginUserId && t.Nav_Department!=null && (t.Nav_Department.DEPARTMENT_TYPE == 0 || t.Nav_Department.DEPARTMENT_TYPE == 3) && (t.Nav_Department.NAME.Contains("安全环保") || t.Nav_Department.NAME.Contains("安环")));
 | 
					            var AH = GetEntity<T_FM_USER>(t => t.NAME != null && t.ID == loginUserId && t.Nav_Department != null && (t.Nav_Department.DEPARTMENT_TYPE == 0 || t.Nav_Department.DEPARTMENT_TYPE == 3) && (t.Nav_Department.NAME.Contains("安全环保") || t.Nav_Department.NAME.Contains("安环")));
 | 
				
			||||||
            if (loginUserId == null || loginUserId == admiId || AH != null)
 | 
					            if (loginUserId == null || loginUserId == admiId || AH != null)
 | 
				
			||||||
            {
 | 
					            {
 | 
				
			||||||
                result = WitOrderPaged(null, pageFilter); ;
 | 
					                result = WitOrderPaged(null, pageFilter); ;
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user