12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- <?php
- /**
- * Created by PhpStorm.
- * User: Gss
- * Date: 2021/5/17 0017
- * Time: 17:32
- */
- namespace JinDouYun\Dao\Stock;
- use JinDouYun\Dao\BaseDao;
- class DPickingIndex extends BaseDao
- {
- public function __construct($serviceDB = 'stock')
- {
- $this->_table = 'picking_index';
- $this->_primary = 'id';
- $this->_fields = [
- 'id',//int(10) NOT NULL AUTO_INCREMENT COMMENT '自增id',
- 'no',//varchar(255) NOT NULL COMMENT '单据编号',
- 'shopId',//int(10) NOT NULL DEFAULT '0' COMMENT '店铺id',
- 'shopName',//varchar(255) NOT NULL COMMENT '店铺名称',
- 'merchantId',//int(10) NOT NULL DEFAULT '0' COMMENT '商户id',
- 'originId',//int(10) NOT NULL DEFAULT '0' COMMENT '源订单id',
- 'originNo',//varchar(255) NOT NULL COMMENT '源订单no',
- 'warehouseId',//int(10) NOT NULL DEFAULT '0' COMMENT '仓库id',
- 'warehouseName',//varchar(255) NOT NULL COMMENT '仓库名称',
- 'currentUnitId',// int(11) NOT NULL COMMENT '往来单位Id',
- 'currentUnit',//varchar(255) NOT NULL COMMENT '往来单位',
- 'personnel',//int(10) NOT NULL DEFAULT '0' COMMENT '拣货id',
- 'personnelName',//varchar(255) NOT NULL COMMENT '拣货人',
- 'sort',//int(10) NOT NULL COMMENT '排序',
- 'managerId',//int(10) NOT NULL DEFAULT '0' COMMENT '订单经手人ID',
- 'managerName',//varchar(255) NOT NULL COMMENT '订单经手人',
- 'pickingStatus',//tinyint(1) NOT NULL DEFAULT '4' COMMENT '拣货状态',
- 'pickingType',//tinyint(1) NOT NULL DEFAULT '4' COMMENT '拣货类型',
- 'createTime',//int(11) NOT NULL COMMENT '创建时间',
- 'updateTime',// int(11) DEFAULT NULL,
- ];
- $this->_readonly = ['id'];
- $this->_create_autofill = [
- 'createTime' => time()
- ];
- $this->_update_autofill = [
- 'updateTime' => time()
- ];
- parent::__construct($serviceDB);
- }
- }
|