inventory_302

This commit is contained in:
dengbw
2022-03-02 17:36:23 +08:00
committed by lccsw
parent 454e9e031c
commit e98d26a05f
11 changed files with 1419 additions and 7 deletions
+25 -1
View File
@@ -1,16 +1,40 @@
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
/**
* Created by PhpStorm.
* User: xuxb
* Date: 2021/8/20
* Time: 17:43
*/
class Sys_addr_model extends HD_Model{
class Sys_addr_model extends HD_Model
{
private $table_name = 'lc_sys_addr';
public function __construct()
{
parent::__construct($this->table_name, 'default');
}
/**
* Notes:根据id获取数据
* Created on: 2022/2/25 10:01
* Created by: dengbw
* @param $ids
* @param string $fileds
* @return array
*/
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;
}
}