|
|
@@ -441,7 +441,7 @@ class TradeService extends BaseService
|
|
|
return round($data, 2);
|
|
|
}
|
|
|
|
|
|
- $where = ['a.user_id' => $userId, 'a.mark' => 1,'b.status'=>1];
|
|
|
+ $where = ['b.parent_id' => $userId, 'a.mark' => 1,'b.status'=>1];
|
|
|
$data = $this->model->from('trade as a')
|
|
|
->leftJoin('member as b', 'b.id', '=', 'a.user_id')
|
|
|
->where($where)
|
|
|
@@ -488,7 +488,7 @@ class TradeService extends BaseService
|
|
|
return round($data, 2);
|
|
|
}
|
|
|
|
|
|
- $where = ['a.user_id' => $userId, 'a.mark' => 1,'b.status'=>1];
|
|
|
+ $where = ['b.parent_id' => $userId, 'a.mark' => 1,'b.status'=>1];
|
|
|
$data = $this->model->from('trade as a')
|
|
|
->leftJoin('member as b', 'b.id', '=', 'a.user_id')
|
|
|
->where($where)
|