27 行
1.3 KiB
PHP
可执行文件
27 行
1.3 KiB
PHP
可执行文件
<?php
|
|
/*
|
|
* 商户采购单模型 - 数据对象模型
|
|
*/
|
|
namespace Common\Model;
|
|
use Think\Model;
|
|
//[1.2.91]
|
|
class PurchaseOrderModel extends JBaseModel
|
|
{
|
|
protected $tableName = 'retail_purchase_order';
|
|
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',
|
|
'supplier_id', //int(11) DEFAULT '0' COMMENT '供货商id',
|
|
'order_number', //varchar(255) DEFAULT '' COMMENT '订单号',
|
|
'money_total', //decimal(10,2) DEFAULT NULL COMMENT '总金额',
|
|
'goods_species', //int(11) DEFAULT NULL COMMENT '商品总种数',
|
|
'remarks', //text COMMENT '备注',
|
|
'status', //采购状态 0失败 1成功
|
|
'warehouse_state', //是否入库 0未入库 1已入库
|
|
'add_time', //varchar(10) DEFAULT '' COMMENT '添加时间',
|
|
'type', //采购类型 1常规采购单 2补采购单
|
|
'repair_time', //type为2时补采购单生成的时间
|
|
'operator_id', //操作人员id
|
|
);
|
|
} |