修改导出线索

This commit is contained in:
lcc
2025-10-23 22:16:11 +08:00
parent 6c354565a7
commit 11c036b22e
@@ -362,6 +362,7 @@ class Clues extends BaseController
$limit = $params['limit'] ?: 10;
$sort_order = 'id desc';
$statusList = $list = [];
$statusAry = $this->clues_model->statusAry();
foreach ($this->clues_model->statusAry() as $key => $value) {
$statusList[$key] = $value['name'];
}
@@ -388,13 +389,15 @@ class Clues extends BaseController
if ($limit >= 10000) {
$unlockCustomer = $this->customers_model->get(['rid' => $v['rid'], 'un_lock' => Receiver_customers_model::LOCK_STATUS]);
$is_unlock = $unlockCustomer ? '已解锁' : '未解锁';
$status_name = $statusAry[$v['status']]['name'];
$v['status2'] && $status_name .= '' . $statusAry[$v['status']]['list'][$v['status2']];
$temp = [
'name' => $v['name'], 'mobile' => mobile_asterisk($v['mobile']), 'sid' => $v['sid'],
'belongUserName' => $belongUserName ? $belongUserName['username'] . '(' . $belongUserName['userCode'] . ')' : '',
'centerNumber' => $belongUserName['centerNumber'] ? Pingan_users_model::TYPE_CENTER[$belongUserName['centerNumber']] : '',
'orgName' => $belongUserName['orgName'] ?: '',
'brandList' => implode(',', $brandList),
'statusCn' => $statusList[$v['status']],
'statusCn' => $status_name,
'isUnlock' => $is_unlock,
'enTime' => $v['en_time'],
];