作者 yangfu

分红比例

@@ -364,6 +364,9 @@ func (ptr *CooperationStatisticsService) GetContractDividends(queryOptions map[s @@ -364,6 +364,9 @@ func (ptr *CooperationStatisticsService) GetContractDividends(queryOptions map[s
364 item["dividendsRatio"] = utils.Round(a.DividendsAmount/v.OrderGoodAmount*100, 2) 364 item["dividendsRatio"] = utils.Round(a.DividendsAmount/v.OrderGoodAmount*100, 2)
365 } 365 }
366 } 366 }
  367 + if a.DividendsPercentage > 0 {
  368 + item["dividendsRatio"] = a.DividendsPercentage
  369 + }
367 dividends = append(dividends, item) 370 dividends = append(dividends, item)
368 } 371 }
369 res["dividends"] = dividends 372 res["dividends"] = dividends