From 75a59a719714525a786279c6ac907e9e4aa13892 Mon Sep 17 00:00:00 2001 From: "WIN-C27C5MSVTPO\\16961" <1696136552@qq.com> Date: Tue, 3 Mar 2026 17:44:10 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/crm/service/StockOrdersService.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/crm/service/StockOrdersService.php b/app/crm/service/StockOrdersService.php index 872f995..f5d33e9 100644 --- a/app/crm/service/StockOrdersService.php +++ b/app/crm/service/StockOrdersService.php @@ -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;