Files
liche/common/models/items/Items_inventory_log_model.php
2022-03-02 17:41:23 +08:00

49 lines
1.1 KiB
PHP

<?php
defined('BASEPATH') OR exit('No direct script access allowed');
/**
* Notes:车辆盘点_日志
* Created on: 2022/2/21 16:43
* Created by: dengbw
*/
class Items_inventory_log_model extends HD_Model
{
private $table_name = 'lc_items_inventory_log';
public function __construct()
{
parent::__construct($this->table_name, 'default');
}
/**
* Notes:盘点状态
* Created on: 2021/12/16 16:46
* Created by: dengbw
* @param string $id
* @return array|mixed
*/
public function statusAry($id = '')
{
$ary = [0 => '进行中', 1 => '已完成'];
if (strlen($id)) {
$ary = $ary[$id];
}
return $ary;
}
/**
* Notes:盘点图片类型
* Created on: 2022/2/24 11:53
* Created by: dengbw
* @param string $key
* @return array|mixed
*/
public function carImgAry($key = '')
{
$ary = ['car_body' => '车身', 'vin' => '车架号', 'dashboard' => '仪表盘'];
if (strlen($key)) {
$ary = $ary[$key];
}
return $ary;
}
}