瀏覽代碼

修复获取品牌地理位置标签分布比率错误问题

云殇忆 1 年之前
父節點
當前提交
bbabf7c66e
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      ruoyi-demo/src/main/java/com/ruoyi/demo/entity/bo/BrandGeoLabelBo.java

+ 1 - 1
ruoyi-demo/src/main/java/com/ruoyi/demo/entity/bo/BrandGeoLabelBo.java

@@ -22,7 +22,7 @@ public class BrandGeoLabelBo implements Serializable {
         } else {
             this.total = total;
             float ratio = (float) total / count;
-            this.ratio = ratio + "%";
+            this.ratio = (ratio * 100) + "%";
         }
     }
 }