소스 검색

feat:xiugai

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,