public static DataPermissionDO buildPermissionDO(final DataPermissionDTO dataPermissionDTO) {
        return Optional.ofNullable(dataPermissionDTO).map(item -> {
            Timestamp currentTime = new Timestamp(System.currentTimeMillis());
            DataPermissionDO dataPermissionDo = DataPermissionDO.builder()
                    .userId(item.getUserId())
                    .dataId(item.getDataId())
                    .dataType(item.getDataType())
                    .build();
            if (StringUtils.isEmpty(item.getId())) {
                dataPermissionDo.setId(UUIDUtils.getInstance().generateShortUuid());
                dataPermissionDo.setDateCreated(currentTime);
            } else {
                dataPermissionDo.setId(item.getId());
            }
            return dataPermissionDo;
        }).orElse(null);
    }
build Permission DO.

@param dataPermissionDTO {@linkplain DataPermissionDTO}
@return {@linkplain DataPermissionDO}
shenyu-admin/src/main/java/org/apache/shenyu/admin/model/entity/DataPermissionDO.java