12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- <?php
- /**
- * 盘点库存Dao
- * Created by PhpStorm.
- * User: 小威
- * Date: 2019/12/04
- * Time: 11:40
- */
- namespace JinDouYun\Dao\Stock;
- use JinDouYun\Dao\BaseDao;
- class DStocktaking extends BaseDao
- {
- public function __construct($serviceDB = 'stock')
- {
- $this->_table = 'stocktaking';
- $this->_primary = 'id';
- $this->_fields = [
- "id", //int(10) NOT NULL AUTO_INCREMENT COMMENT '主键id',
- "no", //char(20) DEFAULT NULL COMMENT '调拨入库单号',
- "warehouseId", //int(10) DEFAULT NULL COMMENT '仓库id',
- "warehouseName",
- "num", //int(10) NOT NULL COMMENT '商品数量',
- "operatorId", //int(10) DEFAULT NULL COMMENT '制单人信息',
- "operatorName", //varchar(30) DEFAULT NULL COMMENT '制单人姓名',
- "auditId", //int(10) DEFAULT NULL COMMENT '审核人id',
- "auditName", //varchar(30) DEFAULT NULL COMMENT '审核人姓名',
- "remark", //varchar(255) DEFAULT NULL COMMENT '备注',
- "stocktakingTime", //int(10) DEFAULT NULL COMMENT '盘点时间',
- "auditTime", //int(10) DEFAULT NULL COMMENT '审核时间',
- "auditStatus", //tinyint(3) DEFAULT '1' COMMENT '审核状态 1:待审核 2:已审核 3:审核失败 4:审核中',
- "deleteStatus", //tinyint(3) DEFAULT '5' COMMENT '删除状态 4:已删除 5:正常',
- "createTime", //int(10) DEFAULT NULL COMMENT '创建时间',
- "updateTime", //int(10) DEFAULT NULL COMMENT '修改时间',
- "extend", //json DEFAULT NULL COMMENT '扩展字段',
- ];
- $this->_readonly = ['id'];
- $this->_create_autofill = [
- 'createTime' => time()
- ];
- $this->_update_autofill = [
- 'updateTime' => time()
- ];
- parent::__construct($serviceDB);
- }
- }
|