Merge branch 'feat-hjj-CastWork#' into dev
This commit is contained in:
commit
9f808bbcd4
@ -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))
|
||||
|
||||
Loading…
Reference in New Issue
Block a user