diff --git a/pkg/service/bundle/bundleMetrics.go b/pkg/service/bundle/bundleMetrics.go index 55be497..cd206ae 100644 --- a/pkg/service/bundle/bundleMetrics.go +++ b/pkg/service/bundle/bundleMetrics.go @@ -532,7 +532,7 @@ func exportStructToExcel[T any](data []T, headers []string, filename string, exp Pattern: 1, // 实心填充 }, Alignment: &excelize.Alignment{ - Horizontal: "center", + Horizontal: "left", Vertical: "center", }, }) @@ -588,7 +588,7 @@ func exportStructToExcel[T any](data []T, headers []string, filename string, exp if !endTimeParsed.After(payTimeParsed) && flag == 0 { flag = 1 // 格式化截止时间显示 - endTimeFormatted := endTimeParsed.Format("2006年01月02日15点") + endTimeFormatted := endTimeParsed.Format("2006年01月02日15点04分") // 在当前行写入"截止xxxx年xx月xx点" cell, _ := excelize.CoordinatesToCellName(1, actualRowIdx+2) f.SetCellValue(sheet, cell, fmt.Sprintf("截止%s", endTimeFormatted))