@@ -81,7 +81,7 @@ public class PosStoreEnrichService {
score = 4.5d;
} else {
double avg = storeReviews.stream()
- .mapToLong(PosReview::getScore)
+ .mapToDouble(PosReview::getScore)
.average()
.orElse(4.5d);
score = Math.round(avg * 2.0d) / 2.0d;
@@ -43,7 +43,7 @@ public class PosReview
/** 评分 */
@Excel(name = "评分")
- private Long score;
+ private double score;
/** 点评时间 */
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")