@Override
    @Transactional(rollbackFor = Exception.class)
    public Boolean enabledByIdsAndNamespaceId(final List<String> ids, final Boolean enabled, final String namespaceId) {
        ids.forEach(id -> {
            SelectorDO selectorDO = selectorMapper.selectById(id);
            SelectorDO before = JsonUtils.jsonToObject(JsonUtils.toJson(selectorDO), SelectorDO.class);
            selectorDO.setEnabled(enabled);
            if (selectorMapper.updateEnable(id, enabled) > 0) {
                List<SelectorConditionDO> conditionList = selectorConditionMapper.selectByQuery(new SelectorConditionQuery(selectorDO.getId()));
                List<SelectorConditionDTO> selectorConditions = conditionList.stream().map(item -> {
                    SelectorConditionDTO selectorConditionDTO = new SelectorConditionDTO();
                    selectorConditionDTO.setId(item.getId());
                    selectorConditionDTO.setSelectorId(item.getSelectorId());
                    selectorConditionDTO.setParamType(item.getParamType());
                    selectorConditionDTO.setOperator(item.getOperator());
                    selectorConditionDTO.setParamName(item.getParamName());
                    selectorConditionDTO.setParamValue(item.getParamValue());
                    return selectorConditionDTO;
                }).toList();
                publishEvent(selectorDO, selectorConditions, Collections.emptyList());
                selectorEventPublisher.onUpdated(selectorDO, before);
            }
        });
        return Boolean.TRUE;
    }
find page of selector by query.

@param selectorQuery {@linkplain SelectorQuery}
@return {@linkplain CommonPager}
shenyu-admin/src/main/java/org/apache/shenyu/admin/service/impl/SelectorServiceImpl.java