浏览代码

Merge branch 'hotfix/mix_table_percent' into debug

xyxie 7 月之前
父节点
当前提交
977f8637f5
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      services/data/excel/mixed_table.go

+ 1 - 1
services/data/excel/mixed_table.go

@@ -1250,7 +1250,7 @@ func changePointDecimalPlaces(str string, changeNum int, numberType string, isPe
 	if isPercent {
 		if numberType == "number" { //百分数转成小数
 			val = val / 100
-			if decimalPlaces > 2 {
+			if decimalPlaces > 1 {
 				decimalPlaces += 2
 			} else if decimalPlaces == 1 {
 				decimalPlaces += 1