|
@@ -178,8 +178,8 @@ func GetBalanceExcelEdbData(excelEdbMappingItem *excel.ExcelChartEdb, newMixedTa
|
|
|
}
|
|
|
|
|
|
// 长度固定,避免一直申请内存空间
|
|
|
- dateList = make([]string, endColumn-startColumn+1)
|
|
|
-
|
|
|
+ //dateList = make([]string, endColumn-startColumn+1)
|
|
|
+ dateList = make([]string, 0)
|
|
|
i := 0
|
|
|
for currColumn := startColumn; currColumn <= endColumn; currColumn++ {
|
|
|
currCell, ok := newMixedTableCellDataListMap[startNum][currColumn]
|
|
@@ -188,7 +188,8 @@ func GetBalanceExcelEdbData(excelEdbMappingItem *excel.ExcelChartEdb, newMixedTa
|
|
|
err = errors.New(errMsg)
|
|
|
return
|
|
|
}
|
|
|
- dateList[i] = currCell.ShowValue
|
|
|
+ dateList = append(dateList, currCell.ShowValue)
|
|
|
+ //dateList[i] = currCell.ShowValue
|
|
|
i++
|
|
|
}
|
|
|
|
|
@@ -212,7 +213,8 @@ func GetBalanceExcelEdbData(excelEdbMappingItem *excel.ExcelChartEdb, newMixedTa
|
|
|
endNum = maxRow - 1
|
|
|
}
|
|
|
// 长度固定,避免一直申请内存空间
|
|
|
- dateList = make([]string, endNum-startNum+1)
|
|
|
+ //dateList = make([]string, endNum-startNum+1)
|
|
|
+ dateList = make([]string, 0)
|
|
|
i := 0
|
|
|
for currRow := startNum; currRow <= endNum; currRow++ {
|
|
|
currCell, ok := newMixedTableCellDataListMap[currRow][startColumn]
|
|
@@ -221,8 +223,8 @@ func GetBalanceExcelEdbData(excelEdbMappingItem *excel.ExcelChartEdb, newMixedTa
|
|
|
err = errors.New(errMsg)
|
|
|
return
|
|
|
}
|
|
|
- //dateList = append(dateList, currCell.Value)
|
|
|
- dateList[i] = currCell.ShowValue
|
|
|
+ dateList = append(dateList, currCell.Value)
|
|
|
+ //dateList[i] = currCell.ShowValue
|
|
|
i++
|
|
|
}
|
|
|
}
|
|
@@ -271,7 +273,8 @@ func GetBalanceExcelEdbData(excelEdbMappingItem *excel.ExcelChartEdb, newMixedTa
|
|
|
endColumn = maxCol - 1
|
|
|
}
|
|
|
// 长度固定,避免一直申请内存空间
|
|
|
- dataList = make([]string, endColumn-startColumn+1)
|
|
|
+ //dataList = make([]string, endColumn-startColumn+1)
|
|
|
+ dataList = make([]string, 0)
|
|
|
i := 0
|
|
|
for currColumn := startColumn; currColumn <= endColumn; currColumn++ {
|
|
|
currCell, ok := newMixedTableCellDataListMap[startNum][currColumn]
|
|
@@ -280,8 +283,8 @@ func GetBalanceExcelEdbData(excelEdbMappingItem *excel.ExcelChartEdb, newMixedTa
|
|
|
err = errors.New(errMsg)
|
|
|
return
|
|
|
}
|
|
|
- //dataList = append(dataList, currCell.Value)
|
|
|
- dataList[i] = currCell.ShowValue
|
|
|
+ dataList = append(dataList, currCell.Value)
|
|
|
+ //dataList[i] = currCell.ShowValue
|
|
|
i++
|
|
|
}
|
|
|
|
|
@@ -306,7 +309,8 @@ func GetBalanceExcelEdbData(excelEdbMappingItem *excel.ExcelChartEdb, newMixedTa
|
|
|
}
|
|
|
|
|
|
// 长度固定,避免一直申请内存空间
|
|
|
- dataList = make([]string, endNum-startNum+1)
|
|
|
+ //dataList = make([]string, endNum-startNum+1)
|
|
|
+ dataList = make([]string, 0)
|
|
|
i := 0
|
|
|
for currRow := startNum; currRow <= endNum; currRow++ {
|
|
|
currCell, ok := newMixedTableCellDataListMap[currRow][startColumn]
|
|
@@ -315,8 +319,8 @@ func GetBalanceExcelEdbData(excelEdbMappingItem *excel.ExcelChartEdb, newMixedTa
|
|
|
err = errors.New(errMsg)
|
|
|
return
|
|
|
}
|
|
|
- //dataList = append(dataList, currCell.Value)
|
|
|
- dataList[i] = currCell.ShowValue
|
|
|
+ dataList = append(dataList, currCell.Value)
|
|
|
+ //dataList[i] = currCell.ShowValue
|
|
|
i++
|
|
|
}
|
|
|
}
|