修改管理后台导出接口和解锁状态显示

This commit is contained in:
lcc
2025-11-04 09:02:42 +08:00
parent 08ad9e899a
commit 3e77d71e94
2 changed files with 5 additions and 3 deletions
+1 -1
View File
@@ -263,7 +263,7 @@ class Clues extends HD_Controller
}
$val['rec_time'] = $val['rec_time'] != '0000-00-00 00:00:00' ? $val['rec_time'] : '';
$is_unlock = '';
if ($val['app_id'] == Receiver_clues_model::APP_ID_ACTIVITY && $val['status'] > 0) {
if ($val['app_id'] == Receiver_clues_model::APP_ID_ACTIVITY && $val['status'] == 1) {
$unlockCustomer = $this->customers_model->get(['rid' => $val['id'], 'un_lock' => Receiver_customers_model::LOCK_STATUS]);
$is_unlock = $unlockCustomer ? '已解锁' : '未解锁';
}
@@ -382,6 +382,7 @@ class Clues extends BaseController
$belongUserName = $users[$v['pingan_user_id']] ? $users[$v['pingan_user_id']][0] : '';
$brandList = $this->receiver_enroll_model->getBrandsByMobile($v['mobile']);
$poi = '';
$area = '';
if ($v['county_id']) {
$area = $map_area_county[$v['county_id']][0];
$poi = "{$area['province_name']}-{$area['city_name']}-{$area['county_name']}";
@@ -400,7 +401,8 @@ class Clues extends BaseController
'centerNumber' => $belongUserName['centerNumber'] ? Pingan_users_model::TYPE_CENTER[$belongUserName['centerNumber']] : '',
'orgName' => $belongUserName['orgName'] ?: '',
'brandList' => implode(',', $brandList),
'poi' => $poi,
'provinceName' => $area['province_name'] ?: '',
'cityName' => $area['city_name'] ?: '',
'statusCn' => $status_name,
'isUnlock' => $is_unlock,
'enTime' => $v['en_time'],
@@ -424,7 +426,7 @@ class Clues extends BaseController
}
$columns = [];
if ($limit >= 10000) {
$columns = ['姓名', '手机号', '订单编号', '归属', '中心', '机构', '关注车型','所属地区', '状态', '是否解锁', '入池时间'];
$columns = ['姓名', '手机号', '订单编号', '归属', '中心', '机构', '关注车型', '所属省', '所属市', '状态', '是否解锁', '入池时间'];
}
return ['list' => $list, 'count' => $count, 'statusList' => $statusList, 'columns' => $columns];
}