public static NamespacePluginRelDO buildNamespacePluginRelDO(final PluginDO pluginDO, final String namespaceId) {
        return Optional.ofNullable(pluginDO).map(item -> {
            Timestamp currentTime = new Timestamp(System.currentTimeMillis());
            return NamespacePluginRelDO.builder()
                    .id(UUIDUtils.getInstance().generateShortUuid())
                    .config(item.getConfig())
                    .enabled(item.getEnabled())
                    .sort(item.getSort())
                    .namespaceId(namespaceId)
                    .pluginId(item.getId())
                    .dateUpdated(currentTime)
                    .dateCreated(currentTime)
                    .build();
        }).orElse(null);
    }
build buildNamespacePluginRelDO.

@param pluginDO {@linkplain PluginDO}
@param namespaceId {@linkplain String}
@return {@linkplain NamespacePluginRelDO}
shenyu-admin/src/main/java/org/apache/shenyu/admin/model/entity/NamespacePluginRelDO.java