42 行
2.8 KiB
PHP
可执行文件
42 行
2.8 KiB
PHP
可执行文件
<?php
|
|
/*
|
|
* 商户盘点商品模型 - 数据对象模型
|
|
*/
|
|
namespace Common\Model;
|
|
use Think\Model;
|
|
//[1.7.90]
|
|
class InventoryGoodsModel extends JBaseModel
|
|
{
|
|
protected $tableName = 'retail_inventory_goods';
|
|
protected $fields = array(
|
|
'id', //int(11) NOT NULL AUTO_INCREMENT,
|
|
'merchant_id', //int(11) DEFAULT '0' COMMENT '商户Id',
|
|
'warehouse_id', //int(11) DEFAULT '0' COMMENT '仓库id',
|
|
'inventory_order_id', //盘点单id
|
|
'goods_class_id', //int(11) DEFAULT '0' COMMENT '分类id',
|
|
'goods_id', //int(11) DEFAULT '0' COMMENT '商品id',
|
|
'sku_id', //int(11) DEFAULT '0' COMMENT '规格id',
|
|
'goods_name', //varchar(255) DEFAULT '' COMMENT '商品名称',
|
|
'sku_name', // varchar(255) DEFAULT '' COMMENT '规格名称',
|
|
'sku_id_list', //规格名称id
|
|
'goods_number', //varchar(30) DEFAULT '' COMMENT '货号',
|
|
'sku_goods_number', //varchar(30) DEFAULT '' COMMENT ' 规格货号',
|
|
'goods_code', //varchar(30) DEFAULT '' COMMENT '商品条码',
|
|
'sku_code', //varchar(30) DEFAULT '' COMMENT '条码规格',
|
|
'company', //varchar(255) DEFAULT '' COMMENT '单位',
|
|
'attribute_state', //tinyint(1) DEFAULT '1' COMMENT '1无规格 2规格商品',
|
|
'pricing_method', //tinyint(1) DEFAULT '1' COMMENT '1无称重 2称重 ',
|
|
'sku_num', //规格基数
|
|
'goods_num', //盘点之前的数量
|
|
'cost_price', //decimal(10,2) DEFAULT '0.00' COMMENT '成本价',
|
|
'inventory_num', //decimal(10,3) DEFAULT '0.000' COMMENT '盘点数量',
|
|
'num', //decimal(10,3) DEFAULT '0.000' COMMENT '盈亏数量',
|
|
'subtotal', //decimal(10,2) DEFAULT '0.00' COMMENT '小计',
|
|
'type', //盈亏类型 0不变 1盘盈 2盘亏
|
|
'remarks', //text COMMENT '备注',
|
|
'inventory_order_number', //varchar(255) DEFAULT '' COMMENT '盘点订单号',
|
|
'add_time', // varchar(10) DEFAULT '' COMMENT '添加时间',
|
|
'state', //1正常 2删除
|
|
'serial_number_state', //串号状态 0关闭 1开启
|
|
);
|
|
} |