@Override
    @Transactional(rollbackFor = Exception.class)
    public Boolean enabledByIdsAndNamespaceId(final List<String> ids, final Boolean enabled, final String namespaceId) {
        ids.forEach(id -> {
            RuleDO ruleDO = ruleMapper.selectById(id);
            RuleDO before = JsonUtils.jsonToObject(JsonUtils.toJson(ruleDO), RuleDO.class);
            ruleDO.setEnabled(enabled);
            if (ruleMapper.updateEnable(id, enabled) > 0) {
                List<RuleConditionDO> conditionList = ruleConditionMapper.selectByQuery(new RuleConditionQuery(ruleDO.getId()));
                List<RuleConditionDTO> conditions = conditionList.stream().map(item ->
                        RuleConditionDTO.builder()
                                .ruleId(item.getRuleId())
                                .id(item.getId())
                                .operator(item.getOperator())
                                .paramName(item.getParamName())
                                .paramValue(item.getParamValue())
                                .paramType(item.getParamType())
                                .build()).toList();
                ruleEventPublisher.onUpdated(ruleDO, before, conditions, Collections.emptyList());
            }
        });
        return Boolean.TRUE;
    }
find page of rule by query.

@param ruleQuery {@linkplain RuleQuery}
@return {@linkplain CommonPager}
shenyu-admin/src/main/java/org/apache/shenyu/admin/service/impl/RuleServiceImpl.java