|
@@ -196,7 +196,9 @@ class TemplateController extends Controller
|
196
|
196
|
$id = $request->input('id');
|
197
|
197
|
#销售筛选
|
198
|
198
|
//$saler_ids = DB::table('admin_role')->where('role_name', '销售')->lists('user_id');
|
199
|
|
- $adminList = Admin::select('id', 'realname', 'username')->where('id','>', 1)->get();
|
|
199
|
+ $adminList = Admin::select('id', 'realname', 'username')->where('id','>', 1)->where(function ($query) {
|
|
200
|
+ $query->whereNotNull('qrcode')->where('qrcode', '<>', '');
|
|
201
|
+ })->get();
|
200
|
202
|
$adminList = json_decode(json_encode($adminList), true);
|
201
|
203
|
$assign_admin = TemplatesSalers::where('t_id', $id)->where('is_del', 0)->lists('weight', 'admin_id');
|
202
|
204
|
|