xieruidong il y a 2 ans
Parent
commit
065e69d746
1 fichiers modifiés avec 1 ajouts et 3 suppressions
  1. 1 3
      application/admin/controller/seller/MyTeam.php

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

@@ -29,9 +29,7 @@ class MyTeam extends Backend
                     ->order('num','desc')
                     ->select();
             }else{
-                $list=OrderInfo::whereExists(
-                    Orders::whereRaw("orders.id=order_info.order_id and admin_id={$this->admin('id')}")->buildSql()
-                )
+                $list=OrderInfo::filterAdmin($this->admin('id'))
                     ->payed()
                     ->filterDate($dateArr)
                     ->group('category_id')