2 コミット 83a3134a52 ... 578288b9c5

作者 SHA1 メッセージ 日付
  hsun 578288b9c5 Merge branch 'feature/eta_2.0.3' into debug 2 ヶ月 前
  hsun 54525c3bd3 fix: 期货公司名称映射 2 ヶ月 前
1 ファイル変更6 行追加6 行削除
  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 {
 		switch exchange {
 		case "zhengzhou":
 		case "zhengzhou":
 			for _, v := range list {
 			for _, v := range list {
-				companyMap[v.ZhengzhouName] = v.CompanyName
+				companyMap[v.CompanyName] = v.ZhengzhouName
 			}
 			}
 		case "dalian":
 		case "dalian":
 			for _, v := range list {
 			for _, v := range list {
-				companyMap[v.DalianName] = v.CompanyName
+				companyMap[v.CompanyName] = v.DalianName
 			}
 			}
 		case "shanghai":
 		case "shanghai":
 			for _, v := range list {
 			for _, v := range list {
-				companyMap[v.ShanghaiName] = v.CompanyName
+				companyMap[v.CompanyName] = v.ShanghaiName
 			}
 			}
 		case "cffex":
 		case "cffex":
 			for _, v := range list {
 			for _, v := range list {
-				companyMap[v.CffexName] = v.CompanyName
+				companyMap[v.CompanyName] = v.CffexName
 			}
 			}
 		case "ine":
 		case "ine":
 			for _, v := range list {
 			for _, v := range list {
-				companyMap[v.IneName] = v.CompanyName
+				companyMap[v.CompanyName] = v.IneName
 			}
 			}
 		case "guangzhou":
 		case "guangzhou":
 			for _, v := range list {
 			for _, v := range list {
-				companyMap[v.GuangzhouName] = v.CompanyName
+				companyMap[v.CompanyName] = v.GuangzhouName
 			}
 			}
 		}
 		}
 	}
 	}