diff --git a/app/common/service/ApprovalRecordsService.php b/app/common/service/ApprovalRecordsService.php index 386480d..f0e33b1 100644 --- a/app/common/service/ApprovalRecordsService.php +++ b/app/common/service/ApprovalRecordsService.php @@ -76,9 +76,9 @@ class ApprovalRecordsService ->pluck('user_id') ->toArray(); $report = array_merge($report, [$request->user->uid]); - $config['where']['salesperson_id'] = ['in',$report]; + $config['where']['approver_id'] = ['in',$report]; }else{ //内勤没有负责的组时 - $config['where']['salesperson_id'] = $request->user->uid; + $config['where']['approver_id'] = $request->user->uid; } } else { $config['where']['approver_id'] = $request->user->uid; @@ -107,9 +107,9 @@ class ApprovalRecordsService ->pluck('user_id') ->toArray(); $report = array_merge($report, [$request->user->uid]); - $config['where']['salesperson_id'] = ['in',$report]; + $config['where']['approver_id'] = ['in',$report]; }else{ //内勤没有负责的组时 - $config['where']['salesperson_id'] = $request->user->uid; + $config['where']['approver_id'] = $request->user->uid; } } else { $config['where']['approver_id'] = $request->user->uid;