caipin 4 年之前
父节点
当前提交
b7965341d6
共有 1 个文件被更改,包括 1 次插入0 次删除
  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)))
 		}
 	}