shikeying
2022-09-27 26f5dd8ef80e5671cda8fc0e6c0d0298c4e678ff
recommend-video/src/main/java/com/iplatform/recvideo/SimilarVideoInfo.java
@@ -1,6 +1,6 @@
package com.iplatform.recvideo;
import java.text.DecimalFormat;
import com.walker.infrastructure.utils.NumberFormatUtils;
/**
 * 相似视频对象定义。
@@ -18,7 +18,7 @@
    private double score = 0;
    private DecimalFormat df = new DecimalFormat("#.00");
//    private DecimalFormat df = new DecimalFormat("#.00");
    public String getId() {
        return id;
@@ -45,8 +45,9 @@
            return 0;
        }
        double s = (this.count)/100.0;
        String score = df.format(s);
        this.score = Double.parseDouble(score);
//        String score = df.format(s);
//        this.score = Double.parseDouble(score);
        this.score = NumberFormatUtils.scaleAccuracy2(s);
        return this.score;
    }