Browse Source

fix:~修改

duxin 2 years ago
parent
commit
d5b5ee8c17
1 changed files with 21 additions and 21 deletions
  1. 21 21
      entity/search/customizedAnalysis.go

+ 21 - 21
entity/search/customizedAnalysis.go

@@ -12,7 +12,7 @@ import (
 )
 
 var (
-	Analysis = []string{"<10万", "10万-50万", "50万-100万", "100万-500万", "500万-1000万", "1000万-1亿", "≥1亿"}
+	Analysis = []string{"<10万", "10万~50万", "50万~100万", "100万~500万", "500万~1000万", "1000万~1亿", "≥1亿"}
 )
 
 func PotentialCustomizeAnalysis(userid, keyWord string) map[string]interface{} {
@@ -173,35 +173,35 @@ func amountDistribution(v float64, data map[string]*distributionTrend) {
 		data["<10万"].Amount += v
 		data["<10万"].Count++
 	} else if v < 500000 {
-		if data["10万-50万"] == nil {
-			data["10万-50万"] = new(distributionTrend)
+		if data["10万~50万"] == nil {
+			data["10万~50万"] = new(distributionTrend)
 		}
-		data["10万-50万"].Amount += v
-		data["10万-50万"].Count++
+		data["10万~50万"].Amount += v
+		data["10万~50万"].Count++
 	} else if v < 1000000 {
-		if data["50万-100万"] == nil {
-			data["50万-100万"] = new(distributionTrend)
+		if data["50万~100万"] == nil {
+			data["50万~100万"] = new(distributionTrend)
 		}
-		data["50万-100万"].Amount += v
-		data["50万-100万"].Count++
+		data["50万~100万"].Amount += v
+		data["50万~100万"].Count++
 	} else if v < 1000000*5 {
-		if data["100万-500万"] == nil {
-			data["100万-500万"] = new(distributionTrend)
+		if data["100万~500万"] == nil {
+			data["100万~500万"] = new(distributionTrend)
 		}
-		data["100万-500万"].Amount += v
-		data["100万-500万"].Count++
+		data["100万~500万"].Amount += v
+		data["100万~500万"].Count++
 	} else if v < 1000000*10 {
-		if data["500万-1000万"] == nil {
-			data["500万-1000万"] = new(distributionTrend)
+		if data["500万~1000万"] == nil {
+			data["500万~1000万"] = new(distributionTrend)
 		}
-		data["500万-1000万"].Amount += v
-		data["500万-1000万"].Count++
+		data["500万~1000万"].Amount += v
+		data["500万~1000万"].Count++
 	} else if v < 100000000 {
-		if data["1000万-1亿"] == nil {
-			data["1000万-1亿"] = new(distributionTrend)
+		if data["1000万~1亿"] == nil {
+			data["1000万~1亿"] = new(distributionTrend)
 		}
-		data["1000万-1亿"].Amount += v
-		data["1000万-1亿"].Count++
+		data["1000万~1亿"].Amount += v
+		data["1000万~1亿"].Count++
 	} else if v >= 100000000 {
 		if data["≥1亿"] == nil {
 			data["≥1亿"] = new(distributionTrend)