|
@@ -37,6 +37,11 @@ class Order extends Apic
|
|
$where = [
|
|
$where = [
|
|
'company_id' => $this->auth->company_id,
|
|
'company_id' => $this->auth->company_id,
|
|
];
|
|
];
|
|
|
|
+ //员工
|
|
|
|
+ if($this->auth->type == 2){
|
|
|
|
+ $where['staff_id'] = $this->auth->id;
|
|
|
|
+ }//员工
|
|
|
|
+
|
|
if($starttime || $endtime){
|
|
if($starttime || $endtime){
|
|
$where['createtime'] = ['between',$starttime,$endtime];
|
|
$where['createtime'] = ['between',$starttime,$endtime];
|
|
}
|
|
}
|