public static ScalePolicyVO buildScalePolicyVO(final ScalePolicyDO scalePolicyDO) {
        return Optional.ofNullable(scalePolicyDO)
                .map(item -> {
                    String beginTime = Objects.nonNull(item.getBeginTime())
                            ? DateUtils.localDateTimeToString(new Timestamp(item.getBeginTime().getTime()).toLocalDateTime()) : null;
                    String endTime = Objects.nonNull(item.getEndTime())
                            ? DateUtils.localDateTimeToString(new Timestamp(item.getEndTime().getTime()).toLocalDateTime()) : null;
                    return new ScalePolicyVO(item.getId(), item.getSort(), item.getStatus(), item.getNum(),
                            beginTime,
                            endTime,
                            DateUtils.localDateTimeToString(item.getDateCreated().toLocalDateTime()),
                            DateUtils.localDateTimeToString(item.getDateUpdated().toLocalDateTime()));
                }).orElse(null);
    }
buildScalePolicyVO.

@param scalePolicyDO scalePolicyDO
@return ScalePolicyVO
shenyu-admin/src/main/java/org/apache/shenyu/admin/model/vo/ScalePolicyVO.java