单价保留两位小数

This commit is contained in:
lzh 2025-10-24 17:06:42 +08:00
parent a7b31cd2f9
commit 58bbc7267d

View File

@ -379,8 +379,8 @@ func writeToExcel(filename string, items []*bundle.BundleBalanceExportItem) erro
_ = write(8, float64(it.TotalPayAmount))
_ = write(9, it.Currency)
_ = write(10, it.Fee)
_ = write(11, float64(it.BundleVideoUnitPrice))
_ = write(12, float64(it.IncreaseVideoUnitPrice))
_ = write(11, fmt.Sprintf("%.2f", it.BundleVideoUnitPrice))
_ = write(12, fmt.Sprintf("%.2f", it.IncreaseVideoUnitPrice))
// 账号类
_ = write(13, int(it.BundleAccountNumber))