animeic 2 vuotta sitten
vanhempi
commit
62e1492b43
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      boxcost/api/report-excel.go

+ 1 - 1
boxcost/api/report-excel.go

@@ -225,7 +225,7 @@ func (b *ReportExcel) drawTableContent() error {
 		// 数量汇总
 		b.Excel.SetCellValue(b.SheetName, FCell, totalCount)
 		// 金额汇总
-		b.Excel.SetCellValue(b.SheetName, HCell, totalPrice)
+		b.Excel.SetCellValue(b.SheetName, HCell, fmt.Sprintf("%.3f", totalPrice))
 	}
 
 	return nil