Files
liche/common/models/auto/Auto_brand_model.php
T
2021-07-22 10:01:41 +08:00

41 lines
891 B
PHP

<?php
defined('BASEPATH') OR exit('No direct script access allowed');
/**
* Created by Vim.
* User: lcc
* Date: 2021/06/23
* Time: 16:24
*/
class Auto_brand_model extends HD_Model
{
private $table_name = 'lc_auto_brand';
public function __construct()
{
parent::__construct($this->table_name, 'default');
}
/**
* Notes:根据id获取数据
* Created on: 2021/7/15 17:27
* Created by: dengbw
* @param $ids
* @param string $fileds
* @return array
*/
public function get_map_by_ids($ids, $fileds = '')
{
$rows = [];
if ($ids) {
$ids = array_filter($ids);
$cf_ids = implode(',', $ids);
$where = [
"id in ($cf_ids)" => null
];
$rows = $this->map('id', '', $where, '', '', '', $fileds);
}
return $rows;
}
}