inventory_302
This commit is contained in:
@@ -0,0 +1,49 @@
|
||||
<?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;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
/**
|
||||
* Notes:车辆盘点
|
||||
* Created on: 2022/2/21 16:43
|
||||
* Created by: dengbw
|
||||
*/
|
||||
class Items_inventory_model extends HD_Model
|
||||
{
|
||||
private $table_name = 'lc_items_inventory';
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct($this->table_name, 'default');
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user