caipin 4 năm trước cách đây
mục cha
commit
b7965341d6
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      services/safe_service.go

+ 1 - 0
services/safe_service.go

@@ -265,6 +265,7 @@ func (s *safeService) GetSurvey(projectId int, bidsectionId int) map[string]inte
 		}
 		lineData[index]["count"] = 0.00
 		if rectifyedCount != 0 && submitCount != 0 {
+			decimal.DivisionPrecision = 0
 			lineData[index]["count"] = decimal.NewFromFloat(float64(rectifyedCount)).Div(decimal.NewFromFloat(float64(submitCount)))
 		}
 	}