|
@@ -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;
|