2
0

2 Commits 83a3134a52 ... 578288b9c5

Autor SHA1 Nachricht Datum
  hsun 578288b9c5 Merge branch 'feature/eta_2.0.3' into debug vor 1 Monat
  hsun 54525c3bd3 fix: 期货公司名称映射 vor 1 Monat
1 geänderte Dateien mit 6 neuen und 6 gelöschten Zeilen
  1. 6 6
      services/trade_analysis/trade_analysis_data.go

+ 6 - 6
services/trade_analysis/trade_analysis_data.go

@@ -73,27 +73,27 @@ func GetOriginTradeData(exchange, classifyName string, contracts, companies []st
 		switch exchange {
 		case "zhengzhou":
 			for _, v := range list {
-				companyMap[v.ZhengzhouName] = v.CompanyName
+				companyMap[v.CompanyName] = v.ZhengzhouName
 			}
 		case "dalian":
 			for _, v := range list {
-				companyMap[v.DalianName] = v.CompanyName
+				companyMap[v.CompanyName] = v.DalianName
 			}
 		case "shanghai":
 			for _, v := range list {
-				companyMap[v.ShanghaiName] = v.CompanyName
+				companyMap[v.CompanyName] = v.ShanghaiName
 			}
 		case "cffex":
 			for _, v := range list {
-				companyMap[v.CffexName] = v.CompanyName
+				companyMap[v.CompanyName] = v.CffexName
 			}
 		case "ine":
 			for _, v := range list {
-				companyMap[v.IneName] = v.CompanyName
+				companyMap[v.CompanyName] = v.IneName
 			}
 		case "guangzhou":
 			for _, v := range list {
-				companyMap[v.GuangzhouName] = v.CompanyName
+				companyMap[v.CompanyName] = v.GuangzhouName
 			}
 		}
 	}