animeic 2 سال پیش
والد
کامیت
62e1492b43
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  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