|
|
@@ -1382,6 +1382,7 @@ class Customer extends Base
|
|
|
}
|
|
|
// outFileLog($dataValue,'customer','list-export-$dataValue');
|
|
|
$data=[];
|
|
|
+ $staffModel = new Staff();
|
|
|
foreach ($list as $k => $v) {
|
|
|
if($v['customer_other']){//其他客户
|
|
|
$other=$v['customer_other']['otherdata'];
|
|
|
@@ -1390,7 +1391,7 @@ class Customer extends Base
|
|
|
}
|
|
|
$staff_where = [];
|
|
|
$staff_where[]=['id','in',$v['owner_staff_id']];
|
|
|
- $staff_list = Staff::where($staff_where)->field('name')->select()->toArray();
|
|
|
+ $staff_list = $staffModel->where(['id'=>['in',$v['owner_staff_id']]])->field('name')->select()->toArray();
|
|
|
$satff_arr = array_column($staff_list,'name');
|
|
|
$staff_str = implode('/',$satff_arr);
|
|
|
$field = array(
|