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