qmj преди 1 ден
родител
ревизия
134b1271c2

+ 1 - 1
ruoyi-admin/src/main/java/com/ruoyi/app/mendian/PosStoreEnrichService.java

@@ -81,7 +81,7 @@ public class PosStoreEnrichService {
                 score = 4.5d;
                 score = 4.5d;
             } else {
             } else {
                 double avg = storeReviews.stream()
                 double avg = storeReviews.stream()
-                        .mapToLong(PosReview::getScore)
+                        .mapToDouble(PosReview::getScore)
                         .average()
                         .average()
                         .orElse(4.5d);
                         .orElse(4.5d);
                 score = Math.round(avg * 2.0d) / 2.0d;
                 score = Math.round(avg * 2.0d) / 2.0d;

+ 1 - 1
ruoyi-system/src/main/java/com/ruoyi/system/domain/PosReview.java

@@ -43,7 +43,7 @@ public class PosReview
 
 
     /** 评分 */
     /** 评分 */
     @Excel(name = "评分")
     @Excel(name = "评分")
-    private Long score;
+    private double score;
 
 
     /** 点评时间 */
     /** 点评时间 */
     @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
     @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")