213
This commit is contained in:
		
							parent
							
								
									a6ff507885
								
							
						
					
					
						commit
						1fc1ff717e
					
				@ -187,8 +187,8 @@ namespace APT.FM.WebApi.Controllers.Api.FM
 | 
				
			|||||||
                if (orgId.ToString() == "8B3C41AA-51B1-7CE9-1879-248A038C1B5C".ToLower())
 | 
					                if (orgId.ToString() == "8B3C41AA-51B1-7CE9-1879-248A038C1B5C".ToLower())
 | 
				
			||||||
                {
 | 
					                {
 | 
				
			||||||
                    pageFilter.FilterGroup.Rules.Clear();
 | 
					                    pageFilter.FilterGroup.Rules.Clear();
 | 
				
			||||||
                    var departs = this.GetEntities<T_FM_DEPARTMENT>(t=>t.ENABLE_STATUS == 0,new BaseFilter(orgId));
 | 
					                    var departs = this.GetEntities<T_FM_DEPARTMENT>(t => t.ENABLE_STATUS == 0, new BaseFilter(orgId));
 | 
				
			||||||
                    var depart = departs.FirstOrDefault(t=>t.ID == loginDepartmentId);
 | 
					                    var depart = departs.FirstOrDefault(t => t.ID == loginDepartmentId);
 | 
				
			||||||
                    if (depart != null && depart.DEPARTMENT_TYPE == 2)
 | 
					                    if (depart != null && depart.DEPARTMENT_TYPE == 2)
 | 
				
			||||||
                    {
 | 
					                    {
 | 
				
			||||||
                        selectDepatmentIds = departs.Where(t => t.PARENT_ID == depart.PARENT_ID).Select(m => m.ID).ToList();
 | 
					                        selectDepatmentIds = departs.Where(t => t.PARENT_ID == depart.PARENT_ID).Select(m => m.ID).ToList();
 | 
				
			||||||
@ -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); ;
 | 
				
			||||||
@ -853,7 +853,7 @@ namespace APT.FM.WebApi.Controllers.Api.FM
 | 
				
			|||||||
                if (userPhoto != null && userPhoto.Any())
 | 
					                if (userPhoto != null && userPhoto.Any())
 | 
				
			||||||
                    userPhoto.ForEach(t => t.USER_ID = entity.ID);
 | 
					                    userPhoto.ForEach(t => t.USER_ID = entity.ID);
 | 
				
			||||||
                if (userSign != null && userSign.Any())
 | 
					                if (userSign != null && userSign.Any())
 | 
				
			||||||
                    userSign.ForEach(t => { t.USER_ID = entity.ID;t.Nav_ImgFile = null; });
 | 
					                    userSign.ForEach(t => { t.USER_ID = entity.ID; t.Nav_ImgFile = null; });
 | 
				
			||||||
                if (personTeam != null && personTeam.Count > 0)
 | 
					                if (personTeam != null && personTeam.Count > 0)
 | 
				
			||||||
                    personTeam.ForEach(i => i.PERSON_ID = person.ID);
 | 
					                    personTeam.ForEach(i => i.PERSON_ID = person.ID);
 | 
				
			||||||
                if (productionUnit != null && productionUnit.Any())
 | 
					                if (productionUnit != null && productionUnit.Any())
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user