public static TagRelationDO buildTagRelationDO(final TagRelationDTO tagRelationDTO) {
        return Optional.ofNullable(tagRelationDTO).map(item -> {
            Timestamp currentTime = new Timestamp(System.currentTimeMillis());
            TagRelationDO tagRelationDO = TagRelationDO.builder()
                    .apiId(tagRelationDTO.getApiId())
                    .tagId(tagRelationDTO.getTagId())
                    .dateUpdated(currentTime)
                    .build();
            if (StringUtils.isEmpty(item.getId())) {
                tagRelationDO.setId(UUIDUtils.getInstance().generateShortUuid());
                tagRelationDO.setDateCreated(currentTime);
            } else {
                tagRelationDO.setId(item.getId());
            }
            return tagRelationDO;
        }).orElse(null);
    }
build tagRelationDO.

@param tagRelationDTO {@linkplain TagRelationDTO}
@return {@linkplain TagRelationDO}
shenyu-admin/src/main/java/org/apache/shenyu/admin/model/entity/TagRelationDO.java