|
@@ -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
|
|
|
}
|
|
|
}
|
|
|
}
|