DReservoirArea.Class.php 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <?php
  2. /**
  3. * 库区Dao
  4. * Created by PhpStorm.
  5. * User: haoren
  6. * Date: 2020/12/14
  7. * Time: 16:00
  8. */
  9. namespace JinDouYun\Dao\Stock;
  10. use JinDouYun\Dao\BaseDao;
  11. class DReservoirArea extends BaseDao
  12. {
  13. public function __construct($serviceDB = 'stock')
  14. {
  15. $this->_table = 'reservoir_area';
  16. $this->_primary = 'id';
  17. $this->_fields = [
  18. 'id' ,//int(10) NOT NULL AUTO_INCREMENT COMMENT 'id',
  19. 'enterpriseId' ,//int(10) NOT NULL COMMENT '企业id'
  20. 'warehouseId',// int(10) NOT NULL COMMENT '仓库id',
  21. 'name' ,//varchar(255) DEFAULT NULL COMMENT '库区名称',
  22. 'code' ,//varchar(255) DEFAULT NULL COMMENT '库区编码',
  23. 'length' ,//decimal(20,2) DEFAULT NULL COMMENT '长 cm',
  24. 'width' ,//decimal(20,2) DEFAULT NULL COMMENT '宽 cm',
  25. 'height' ,//decimal(20,2) DEFAULT NULL COMMENT '高 cm',
  26. 'weight' ,//decimal(20,2) DEFAULT NULL COMMENT '重量 kg',
  27. 'type' ,//tinyint(1) DEFAULT NULL COMMENT '库区类型',
  28. 'enableStatus' ,//tinyint(1) DEFAULT '5' COMMENT '启用状态 4:禁用 5:启用',
  29. 'deleteStatus' ,//tinyint(1) DEFAULT '5' COMMENT '删除状态 4:删除 5:正常',
  30. 'createTime' ,//int(10) DEFAULT NULL COMMENT '创建时间',
  31. 'updateTime' ,//int(10) DEFAULT NULL COMMENT '修改时间',
  32. ];
  33. $this->_readonly = ['id'];
  34. $this->_create_autofill = [
  35. 'createTime' => time()
  36. ];
  37. $this->_update_autofill = [
  38. 'updateTime' => time()
  39. ];
  40. parent::__construct($serviceDB);
  41. }
  42. }