This commit is contained in:
2026-03-03 17:44:10 +08:00
parent 30f3e211af
commit 75a59a7197
+3 -1
View File
@@ -65,7 +65,9 @@ class StockOrdersService extends \app\common\service\StockOrdersService
$config['where']['salesperson_id'] = $request->user->uid;
}
} elseif (in_array(1,$roles_id)) { //超管可以看所有的
$config['where']['approval_status'] = ['>=',1];
//$config['where']['approval_status'] = ['>=',1];
$config['orWhere'][] = ['approval_status','>=',1];
$config['orWhere'][] = ['salesperson_id','=',$request->user->uid];
unset($config['where']['salesperson_id']);
}else{
$config['where']['salesperson_id'] = $request->user->uid;