wangchuanjin 9 ヶ月 前
コミット
c7dc8a2fad
1 ファイル変更2 行追加1 行削除
  1. 2 1
      api/internal/service/owner.go

+ 2 - 1
api/internal/service/owner.go

@@ -739,10 +739,11 @@ func ProjectHandle(buyerArr []string, area, businessStr string, dataMap *map[str
 	for _, object := range ass {
 		buyerName := object.Buyer
 		buyerId := object.BuyerId
+		projectMoney, _ := object.ProjectMoney.Float64()
 		(*projectMap)[buyerName] = map[string]interface{}{
 			"area":      area,
 			"zbtime":    object.Zbtime,
-			"money":     common.RetainDecimal(common.Float64All(object.ProjectMoney)/10000, 2),
+			"money":     common.RetainDecimal(projectMoney/10000, 2),
 			"count":     object.Ocount,
 			"buyerId":   buyerId,
 			"buyerName": buyerName,