Files
liche/common/models/sys/Sys_admin_model.php
T
2021-12-28 15:51:29 +08:00

34 lines
713 B
PHP
Executable File

<?php
/**
* Created by PhpStorm.
* User: linfan
* Date: 2018/11/5
* Time: 13:47
*/
defined('BASEPATH') OR exit('No direct script access allowed');
class Sys_admin_model extends HD_Model
{
private $table_name = 'lc_sys_admin';
public function __construct()
{
parent::__construct($this->table_name, 'default');
}
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;
}
}