wugg 2 жил өмнө
parent
commit
d03cb9f9d4

+ 4 - 0
app/admin/controller/Consult.php

@@ -1889,6 +1889,10 @@ class Consult extends Base
             $bidinfo = Db::name("consult_info")->where([["pgNo","=",$pgNo],["is_del","=",0]])->column("infoNo");
             $where[] = ['infoNo','in',$bidinfo];
         }
+        $role=$this->checkRole();
+        if(!empty($role['write'])){
+            $where[]=["createrid","in",$role['write']];
+        }
 
         $count=Db::name("bargain_order")->where($where)->count();
         $total = ceil($count / $size);