xieruidong 2 年之前
父節點
當前提交
31ab51dd42
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      application/admin/controller/seller/MyTeam.php

+ 1 - 1
application/admin/controller/seller/MyTeam.php

@@ -148,7 +148,7 @@ class MyTeam extends Backend
         $this->assign('date',$date);
         $sale=$this->admin()->moneyLog()->where('from_user_id',$ids)->filterDate($dateArr)->sum('amount');
         $this->assign('sale',$sale);
-        $orderNum=Orders::where('user_id',$ids)->filterDate($dateArr)->count();
+        $orderNum=Orders::where('user_id',$ids)->where('admin_id',$this->admin('id'))->filterDate($dateArr)->count();
         $this->assign('orderNum',$orderNum);
         return $this->fetch();
     }