39 lines
846 B
PHP
39 lines
846 B
PHP
<?php
|
|
/**
|
|
* Created by Vim
|
|
* User: lcc
|
|
* Date: 2021/06/29
|
|
* Time: 13:47
|
|
*/
|
|
|
|
defined('BASEPATH') OR exit('No direct script access allowed');
|
|
|
|
class Receiver_clues_cfrom_model extends HD_Model
|
|
{
|
|
private $table_name = 'lc_receiver_clues_cfrom';
|
|
|
|
public function __construct()
|
|
{
|
|
parent::__construct($this->table_name, 'default');
|
|
}
|
|
|
|
/**
|
|
* 根据id获取数据
|
|
* @param array() $ids
|
|
*/
|
|
public function get_map_by_ids($ids,$fileds=''){
|
|
$rows = [];
|
|
if($ids){
|
|
$ids = array_filter($ids);
|
|
if($ids){
|
|
$cf_ids = implode(',',$ids);
|
|
$where = [
|
|
"id in ($cf_ids)" => null
|
|
];
|
|
$rows = $this->map('id','',$where,'','','',$fileds);
|
|
}
|
|
}
|
|
return $rows;
|
|
}
|
|
}
|