Forráskód Böngészése

Merge branch 'feature/eta_2.0.3' into debug

hsun 1 hónapja
szülő
commit
578288b9c5
1 módosított fájl, 6 hozzáadás és 6 törlés
  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
 			}
 		}
 	}