|
@@ -64,9 +64,9 @@ func getEdbDataFromThsDsHttp(stockCode, edbCode, startDate, endDate, thsRefreshT
|
|
|
tablesList := make([]models.Tables, 0)
|
|
|
tableTimeList := make([]string, 0)
|
|
|
if len(tmpItems.Tables) > 0 {
|
|
|
- for _, time := range tmpItems.Tables[0].Time{
|
|
|
- tableTimeList = append(tableTimeList, time)
|
|
|
- }
|
|
|
+ //for _, time := range tmpItems.Tables[0].Time{
|
|
|
+ // tableTimeList = append(tableTimeList, time)
|
|
|
+ //}
|
|
|
for _, field := range edbCodeList {
|
|
|
tableValueList := make([]float64, 0)
|
|
|
|
|
@@ -80,7 +80,10 @@ func getEdbDataFromThsDsHttp(stockCode, edbCode, startDate, endDate, thsRefreshT
|
|
|
value := reflect.ValueOf(sliceValue.Index(i).Interface())
|
|
|
if value.Kind() == reflect.Float64 {
|
|
|
tableValue = value.Float()
|
|
|
- tableValueList = append(tableValueList, tableValue)
|
|
|
+ if tableValue != 0 {
|
|
|
+ tableTimeList = append(tableTimeList, tmpItems.Tables[0].Time[i])
|
|
|
+ tableValueList = append(tableValueList, tableValue)
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
} else {
|