Files
2024-05-30 20:21:49 +08:00

29 lines
707 B
PHP

<?php
defined('BASEPATH') or exit('No direct script access allowed');
class Auto_cars_model extends HD_Model
{
private $table_name = 'lc_auto_cars';
public function __construct()
{
parent::__construct($this->table_name, 'default');
}
/**
* Notes:根据id获取数据
*/
public function get_map_by_ids($ids, $fileds = '')
{
$rows = [];
$ids = array_filter($ids);
if ($ids) {
$cf_ids = implode(',', $ids);
$where = [
"id in ($cf_ids)" => null
];
$rows = $this->map('id', '', $where, '', '', '', $fileds);
}
return $rows;
}
}