public static ScaleRuleDO buildScaleRuleDO(final ScaleRuleDTO scaleRuleDTO) {
        ScaleRuleDO scaleRuleDO = new ScaleRuleDO();
        if (StringUtils.isEmpty(scaleRuleDTO.getId())) {
            scaleRuleDO.setId(UUIDUtils.getInstance().generateShortUuid());
            scaleRuleDO.setDateCreated(new Timestamp(System.currentTimeMillis()));
        } else {
            scaleRuleDO.setId(scaleRuleDTO.getId());
        }
        return Optional.of(scaleRuleDTO).map(item -> {
            Timestamp currentTime = new Timestamp(System.currentTimeMillis());
            scaleRuleDO.setMetricName(item.getMetricName());
            scaleRuleDO.setType(item.getType());
            scaleRuleDO.setSort(item.getSort());
            scaleRuleDO.setStatus(item.getStatus());
            scaleRuleDO.setMinimum(item.getMinimum());
            scaleRuleDO.setMaximum(item.getMaximum());
            scaleRuleDO.setDateUpdated(currentTime);
            return scaleRuleDO;
        }).orElse(null);
    }
build ScaleRuleDO.

@param scaleRuleDTO scaleRuleDTO
@return ScaleRuleDO
shenyu-admin/src/main/java/org/apache/shenyu/admin/model/entity/ScaleRuleDO.java