36 行
2.2 KiB
PHP
可执行文件
36 行
2.2 KiB
PHP
可执行文件
<?php
|
||
/*
|
||
* 商户报损单模型 - 数据对象模型
|
||
*/
|
||
namespace Common\Model;
|
||
use Think\Model;
|
||
//[1.7.90]
|
||
class AllocationGoodsModel extends JBaseModel
|
||
{
|
||
protected $tableName = 'retail_allocation_goods';
|
||
protected $fields = array(
|
||
'id', //int(11) NOT NULL AUTO_INCREMENT
|
||
'store_id', //int(11) DEFAULT '0' COMMENT '门店id',
|
||
'merchant_id', //int(11) DEFAULT '0' COMMENT '商户id',
|
||
'allocation_id', //varchar(255) 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', //varchar(255) DEFAULT '' COMMENT '规格名称id , 拼接'
|
||
'goods_class_id', //int(11) DEFAULT '0' COMMENT '分类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', //单位
|
||
'attribute_state', //tinyint(1) DEFAULT '1' COMMENT '规格开关 是否是规格 1关闭 2开启',
|
||
'pricing_method', //tinyint(1) DEFAULT '1' COMMENT '称重开关:是否称重 1:关闭 2:开启',
|
||
'sku_num', //decimal(11,3) DEFAULT '1.000' COMMENT '规格基数',
|
||
'apply_num', //decimal(11,3) DEFAULT NULL COMMENT '申请数量',
|
||
'order_number', //varchar(255) DEFAULT '' COMMENT '申请调拨单号',
|
||
'remarks', //备注
|
||
'add_time', //varchar(10) DEFAULT '' COMMENT '申请时间',
|
||
'serial_number_state' //串号状态 0关闭 1开启
|
||
);
|
||
} |