add dynamic partment query condition for admin