From e3b4dd4b85c893d57de70aaf4a8fccf161e4fd9e Mon Sep 17 00:00:00 2001 From: "jiaji.H" Date: Mon, 15 Dec 2025 16:03:16 +0800 Subject: [PATCH] =?UTF-8?q?Updata=EF=BC=9A=E8=B0=83=E6=95=B4=E5=AF=BC?= =?UTF-8?q?=E5=87=BA=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkg/service/bundle/bundleMetrics.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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))