修改获取分销推广未审核数量
This commit is contained in:
parent
cbd99c8696
commit
5474170273
@ -142,6 +142,11 @@ class ApplyLogic extends Logic
|
||||
|
||||
public static function get_unaudited_data()
|
||||
{
|
||||
return DistributionMemberApply::where(['status' => 0])->count();
|
||||
$model = new DistributionMemberApply();
|
||||
return $model->field(['DMA.*'])->alias('DMA')
|
||||
->where(['status' => 0])
|
||||
->with(['user.level'])
|
||||
->join('user U', 'U.id = DMA.user_id')
|
||||
->count();
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user