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