修复(收益): 纠正累计收益统计口径为真实分成收益,排除dmepa与兑换券释放干扰
这个提交包含在:
@@ -144,7 +144,9 @@ class User extends Common
|
||||
|
||||
// 累计现金收益统计(与 IdentityService 严格对齐,兼顾历史分销与收益中心)
|
||||
$agentTotalIncome = floatval($agent->total_income ?? 0);
|
||||
$cashTypes = \addons\shopro\service\partner\PartnerConfig::cashTypes();
|
||||
$totalCash = \app\admin\model\shopro\partner\Reward::where('user_id', $id)
|
||||
->whereIn('reward_type', $cashTypes)
|
||||
->where('status', 1)
|
||||
->where('amount', '>', 0)
|
||||
->sum('amount');
|
||||
@@ -156,6 +158,7 @@ class User extends Common
|
||||
->where('reward_type', 'push3')
|
||||
->sum('amount');
|
||||
$partnerExclusiveCash = \app\admin\model\shopro\partner\Reward::where('user_id', $id)
|
||||
->whereIn('reward_type', $cashTypes)
|
||||
->where('status', 1)
|
||||
->where('amount', '>', 0)
|
||||
->where('reward_type', '<>', 'push3')
|
||||
|
||||
在新工单中引用
屏蔽一个用户