DAllocateDetails.Class.php 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <?php
  2. /**
  3. * 仓库调拨管理Dao
  4. * Created by PhpStorm.
  5. * User: 小威
  6. * Date: 2019/11/29
  7. * Time: 15:00
  8. */
  9. namespace JinDouYun\Dao\Stock;
  10. use JinDouYun\Dao\BaseDao;
  11. class DAllocateDetails extends BaseDao
  12. {
  13. public function __construct($serviceDB = 'stock')
  14. {
  15. $this->_table = 'allocate_details';
  16. $this->_primary = 'id';
  17. $this->_fields = [
  18. "id", //int(10) NOT NULL AUTO_INCREMENT COMMENT '自增id',
  19. "linkId", //int(10) DEFAULT NULL COMMENT '连接id',
  20. "linkNo", //char(20) DEFAULT NULL COMMENT '连接单号',
  21. "materielId", //int(10) DEFAULT NULL COMMENT '物料id',
  22. "materielName", //varchar(30) DEFAULT NULL COMMENT '物料名称',
  23. "materielCode", //varchar(20) DEFAULT NULL COMMENT '物料编号',
  24. "skuId", //int(10) DEFAULT NULL COMMENT '单位id',
  25. "num", //decimal(20,8) DEFAULT NULL COMMENT '数量',
  26. "otherNum",// decimal(20,8) DEFAULT NULL COMMENT '其他单位',
  27. "costUnitPrice", //decimal(10,4) DEFAULT NULL COMMENT '成本单价',
  28. "deleteStatus", //
  29. "createTime", //int(10) DEFAULT NULL COMMENT '创建时间',
  30. "updateTime", //int(10) DEFAULT NULL COMMENT '修改时间',
  31. "extend", //json 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. }