Эх сурвалжийг харах

Merge branch 'wugg-dev' of wugg/phpstock into version1.5

wugg 2 жил өмнө
parent
commit
7cf6f04ff3

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

@@ -1694,6 +1694,10 @@ class Sale extends Base
         if ($end != "") {
             $where[] = ["addtime", '<=', $end];
         }
+        $role=$this->checkRole();
+        if(!empty($role['write'])){
+            $where[]=["apply_id","in",$role['write']];
+        }
         $count = Db::name('sale')->where($where)->count();
         $total = ceil($count / $size);
         $page = $page >= $total ? $total : $page;