正在显示
1 个修改的文件
包含
3 行增加
和
0 行删除
@@ -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 |
-
请 注册 或 登录 后发表评论