...
|
...
|
@@ -619,7 +619,6 @@ func (controller *SuMoneyController) ExportSuMoneyTransactionRecord() { |
|
|
columnNum := 0 //列数
|
|
|
for _, vv := range v {
|
|
|
sheetPosition := cells[columnNum] + strconv.Itoa(lineNum+2)
|
|
|
//f.SetCellValue("Sheet1", sheetPosition, vv) // 所有字段保存为字符串类型
|
|
|
switch vv.(type) {
|
|
|
case string:
|
|
|
f.SetCellValue("Sheet1", sheetPosition, vv.(string))
|
...
|
...
|
@@ -631,7 +630,7 @@ func (controller *SuMoneyController) ExportSuMoneyTransactionRecord() { |
|
|
f.SetCellValue("Sheet1", sheetPosition, vv.(float64))
|
|
|
break
|
|
|
case time.Time:
|
|
|
f.SetCellValue("Sheet1", sheetPosition, vv.(time.Time))
|
|
|
f.SetCellValue("Sheet1", sheetPosition, vv)
|
|
|
break
|
|
|
}
|
|
|
columnNum++
|
...
|
...
|
|