animeic 2 years ago
parent
commit
62e1492b43
1 changed files with 1 additions and 1 deletions
  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