DInventoryOutDetails.Class.php 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. <?php
  2. /**
  3. * 出库详情管理Dao
  4. * Created by PhpStorm.
  5. * User: 小威
  6. * Date: 2019/11/11
  7. * Time: 14:00
  8. */
  9. namespace JinDouYun\Dao\Stock;
  10. use JinDouYun\Dao\BaseDao;
  11. class DInventoryOutDetails extends BaseDao
  12. {
  13. public function __construct($serviceDB = 'stock')
  14. {
  15. $this->_table = 'inventory_out_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(25) DEFAULT NULL COMMENT '出库单号',
  21. "outWarehouse", //json DEFAULT NULL COMMENT '出库仓库',
  22. "materielId", //int(10) DEFAULT NULL COMMENT '商品id',
  23. "materielName", //varchar(255) DEFAULT NULL COMMENT '商品名称',
  24. "materielCode", //varchar(50) DEFAULT NULL COMMENT '商品编号',
  25. "skuId", //int(10) DEFAULT NULL COMMENT '单位id',
  26. "unitName", //varchar(255) DEFAULT NULL COMMENT '单位名称',
  27. "skuName", //varchar(255) DEFAULT NULL COMMENT '属性名称',
  28. "skuStorage", //varchar(255) DEFAULT NULL COMMENT '货架编码',
  29. "num", //decimal(20,8) DEFAULT NULL COMMENT '待出库数量',
  30. "outNum", //decimal(20,8) DEFAULT NULL COMMENT '已出库数量',
  31. "total", //decimal(20,8) DEFAULT NULL COMMENT '总出库数量',
  32. "unitPrice", //decimal(15,4) DEFAULT NULL COMMENT '单价',
  33. "totalPrice", //decimal(15,4) DEFAULT NULL COMMENT '总价',
  34. "areaId",// int(10) DEFAULT '0' COMMENT '库区id',
  35. "areaName",// varchar(255) DEFAULT NULL COMMENT '库区名称',
  36. "areaCode",// varchar(255) DEFAULT NULL COMMENT '库区编码',
  37. "storageLocationId",// int(10) DEFAULT '0' COMMENT '库位id',
  38. "storageLocationName",// varchar(255) DEFAULT NULL COMMENT '库位名称',
  39. "storageLocationCode",// varchar(255) DEFAULT NULL COMMENT '库位编码',
  40. "outStatus", //tinyint(1) DEFAULT NULL COMMENT '出库状态 1:待出库 2:全部出库 3:部分出库',
  41. "createTime", //int(10) DEFAULT NULL COMMENT '创建时间',
  42. "updateTime", //int(10) DEFAULT NULL COMMENT '修改时间',
  43. "extend", //json DEFAULT NULL COMMENT '扩展字段',
  44. ];
  45. $this->_readonly = ['id'];
  46. $this->_create_autofill = [
  47. 'createTime' => time()
  48. ];
  49. $this->_update_autofill = [
  50. 'updateTime' => time()
  51. ];
  52. parent::__construct($serviceDB);
  53. }
  54. }