public static PluginDO buildPluginDO(final NamespacePluginVO namespacePluginVO) {
        return Optional.ofNullable(namespacePluginVO).map(item -> {
            Timestamp currentTime = new Timestamp(System.currentTimeMillis());
            PluginDO pluginDO = PluginDO.builder()
                    .name(item.getName())
                    .config(item.getConfig())
                    .enabled(item.getEnabled())
                    .role(item.getRole())
                    .sort(item.getSort())
                    .dateUpdated(currentTime)
                    .build();

            if (StringUtils.isEmpty(item.getId())) {
                pluginDO.setId(UUIDUtils.getInstance().generateShortUuid());
                pluginDO.setDateCreated(currentTime);
            } else {
                pluginDO.setId(item.getPluginId());
            }
            if (Objects.nonNull(item.getFile())) {
                pluginDO.setPluginJar(Base64.decode(item.getFile()));
            }
            return pluginDO;
        }).orElse(null);
    }
build pluginDO.

@param namespacePluginVO {@linkplain NamespacePluginVO}
@return {@linkplain PluginDO}
shenyu-admin/src/main/java/org/apache/shenyu/admin/model/entity/PluginDO.java