public static PermissionDO buildPermissionDO(final PermissionDTO permissionDTO) {
        return Optional.ofNullable(permissionDTO).map(item -> {
            Timestamp currentTime = new Timestamp(System.currentTimeMillis());
            PermissionDO permissionDO = PermissionDO.builder()
                    .objectId(item.getObjectId())
                    .resourceId(item.getResourceId())
                    .build();
            if (StringUtils.isEmpty(item.getId())) {
                permissionDO.setId(UUIDUtils.getInstance().generateShortUuid());
                permissionDO.setDateCreated(currentTime);
            } else {
                permissionDO.setId(item.getId());
            }
            return permissionDO;
        }).orElse(null);
    }
build Permission DO.

@param permissionDTO {@linkplain PermissionDTO}
@return {@linkplain PermissionDO}
shenyu-admin/src/main/java/org/apache/shenyu/admin/model/entity/PermissionDO.java