37 lines
936 B
PHP
Executable File
37 lines
936 B
PHP
Executable File
<?php
|
|
defined('BASEPATH') OR exit('No direct script access allowed');
|
|
/**
|
|
* Created by Vim.
|
|
* User: lcc
|
|
* Date: 2021/06/23
|
|
* Time: 16:24
|
|
*/
|
|
class App_licheb_users_model extends HD_Model{
|
|
private $table_name = 'lc_app_licheb_users';
|
|
|
|
private $group_arr = [ 1 => '销售',2 => '店长',3 => '老板', 4 => '渠道经理'];
|
|
public function __construct()
|
|
{
|
|
parent::__construct($this->table_name, 'default');
|
|
}
|
|
/**
|
|
* 根据id获取数据
|
|
* @param array() $ids
|
|
*/
|
|
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;
|
|
}
|
|
public function get_group(){
|
|
return $this->group_arr;
|
|
}
|
|
}
|