public static SelectorData transFrom(final SelectorDO selectorDO, final String pluginName,
                                         final List<ConditionData> conditionDataList, final List<ConditionData> beforeConditionDataList) {
        return SelectorData.builder()
                .id(selectorDO.getId())
                .pluginId(selectorDO.getPluginId())
                .pluginName(pluginName)
                .name(selectorDO.getName())
                .matchMode(selectorDO.getMatchMode())
                .type(selectorDO.getType())
                .sort(selectorDO.getSort())
                .enabled(selectorDO.getEnabled())
                .logged(selectorDO.getLoged())
                .continued(selectorDO.getContinued())
                .handle(selectorDO.getHandle())
                .conditionList(conditionDataList)
                .matchRestful(selectorDO.getMatchRestful())
                .beforeConditionList(beforeConditionDataList)
                .namespaceId(selectorDO.getNamespaceId())
                .build();
    }
Trans from selector data.

@param selectorDO              the selector do
@param pluginName              the plugin name
@param conditionDataList       the condition data list
@param beforeConditionDataList before condition data list
@return the selector data
shenyu-admin/src/main/java/org/apache/shenyu/admin/model/entity/SelectorDO.java