zqbao преди 6 месеца
родител
ревизия
5ead36bf46
променени са 1 файла, в които са добавени 0 реда и са изтрити 4 реда
  1. 0 4
      services/data/excel/mixed_table.go

+ 0 - 4
services/data/excel/mixed_table.go

@@ -1263,10 +1263,6 @@ func getDecimalLen(str string, isPercent bool) (decimalPlaces int) {
 }
 
 func roundNumber(num string, decimalPlaces int, hasPercent bool) string {
-	if strings.Contains(num, "%") {
-		hasPercent = true
-		num = strings.Trim(num, "%")
-	}
 	numFloat, _ := strconv.ParseFloat(num, 64)
 	numFloat, _ = decimal.NewFromFloat(numFloat).Round(int32(decimalPlaces)).Float64()