...
|
...
|
@@ -167,10 +167,10 @@ func getStatistics(userId int64, transactionContext *transaction.TransactionCont |
|
|
}
|
|
|
if bonus, e := OrderBaseDao.OrderBonusStatics(domain.OrderBonusQuery{InPartnerIds: partnerIds, OrderType: domain.OrderReal}); e == nil {
|
|
|
Statistics["careerOrdersMoney"] = bonus.TotalOrderAmount
|
|
|
Statistics["careerDividend"] = bonus.BonusExpense
|
|
|
Statistics["careerDividend"] = bonus.Bonus
|
|
|
}
|
|
|
if businessBonus, e := BusinessBonusDao.OrderBonusStatics(domain.OrderBonusQuery{InPartnerIds: partnerIds, IsDisable: 1}); e == nil {
|
|
|
Statistics["businessDividend"] = businessBonus.BonusExpense
|
|
|
Statistics["businessDividend"] = businessBonus.Bonus
|
|
|
Statistics["businessOrdersMoney"] = businessBonus.TotalOrderAmount
|
|
|
}
|
|
|
Statistics["developDividend"] = 0
|
...
|
...
|
@@ -251,7 +251,7 @@ func getPartners(userId int64, request *protocolx.PartnersRequest, transactionCo |
|
|
mapPartners["district"] = protocolx.Districts{Id: p.RegionInfo.RegionId, Name: p.RegionInfo.RegionName}
|
|
|
}
|
|
|
mapPartners["cooperationTime"] = p.CooperateTime.Unix() * 1000
|
|
|
mapPartners["dividend"] = p.BonusExpense
|
|
|
mapPartners["dividend"] = utils.Decimal(p.Bonus)
|
|
|
mapPartners["ordersCount"] = p.Total
|
|
|
mapPartners["ordersMoney"] = utils.Decimal(p.Amount)
|
|
|
array = append(array, mapPartners)
|
...
|
...
|
|