30 行
1.9 KiB
PHP
可执行文件
30 行
1.9 KiB
PHP
可执行文件
<?php
|
||
|
||
namespace Common\Model;
|
||
//[1.2.41]
|
||
use Think\Model;
|
||
|
||
/**
|
||
* Class QuantityLogsModel
|
||
* @package Common\Model
|
||
*/
|
||
class QuantityLogsModel extends BaseModel
|
||
{
|
||
protected $tableName = 'retail_quantity_logs';
|
||
const ID = 'id';//int(11) DEFAULT NULL COMMENT 'id',
|
||
const ORIGINAL_STOCK = 'original_stock';//decimal(11,2) DEFAULT NULL COMMENT '商品原库存',
|
||
const DO_NUM = 'do_num';//decimal(11,2) DEFAULT NULL COMMENT '操作的数量',
|
||
const TYPE = 'type';//tinyint(3) DEFAULT NULL COMMENT '操作库存的类型 1:库存增加 2:扣除库存\r\n',
|
||
const GOODS_ID = 'goods_id';//int(11) DEFAULT NULL COMMENT '发生变化的商品id',
|
||
const SKU_ID = 'sku_id';//int(11) DEFAULT '0' COMMENT '规格id',
|
||
const ADD_TIME = 'addtime';//varchar(18) DEFAULT NULL COMMENT '操作时间',
|
||
const MERCHANT_ID = 'merchantid';//int(11) DEFAULT NULL COMMENT '商户id',
|
||
const STORE_ID = 'storeid';//int(11) DEFAULT NULL COMMENT '门店id',
|
||
const SUPPLIER_ID = 'supplier_id';//int(11) DEFAULT '0' COMMENT '商品库存来源 默认为0 门店自采 其余代表供货商id,-1,报损。-2,调出减少,-3,退货出库,-4,商品拆分操作 -5商户调拨 -6门店向商户申请调拨 -7门店向商户退货 -8初始化库存 -9 同步商户商品\r\n',
|
||
const PRESENT_STOCK = 'present_stock';//decimal(11,2) DEFAULT NULL COMMENT '操作之后的现库存',
|
||
const REMARK = 'remark';//varchar(255) DEFAULT NULL COMMENT '备注信息',
|
||
const FLOW_ORDER_ID = 'floworderid';//int(11) DEFAULT '0' COMMENT '货流单id。',
|
||
const ORDER_NUM = 'ordernum';//varchar(30) DEFAULT '' COMMENT '货流单单号。',
|
||
const SUCCESS = 'success';//tinyint(1) NOT NULL DEFAULT '1' COMMENT '是否记录操作成功,1,成功,2,失败(失败时需要有操作)',
|
||
const SELL_ID = 'sell_id';//int(11) DEFAULT '0' COMMENT 'sell_id',
|
||
} |