zwxi 1 년 전
부모
커밋
ce6fb498a1
1개의 변경된 파일2개의 추가작업 그리고 4개의 파일을 삭제
  1. 2 4
      controller/census/seller.go

+ 2 - 4
controller/census/seller.go

@@ -775,9 +775,7 @@ func (this *SellerController) GroupInvoiceListV2(c *gin.Context) {
 		newRate = newRate.Mul(mulNum).Round(2)
 		finalRate, _ := newRate.Float64()
 
-		newAmount := decimal.NewFromFloat(v)
-		newAmount = newAmount.Mul(mulNum).Round(2)
-		finalAmount, _ := newAmount.Float64()
+		amuont,_ := strconv.ParseFloat(fmt.Sprintf("%.2f", v), 64)
 
 		groupName := ""
 		if groupItem ,ok := groupMap[k]; ok {
@@ -786,7 +784,7 @@ func (this *SellerController) GroupInvoiceListV2(c *gin.Context) {
 		list = append(list, &fms.CensusSellerGroupInvoiceItem{
 			GroupId:       k,
 			GroupName:     groupName,
-			InvoiceAmount: finalAmount,
+			InvoiceAmount: amuont,
 			GroupRate:     finalRate,
 		})
 	}