DSupplierOrderIndex.Class.php 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <?php
  2. namespace JinDouYun\Dao\Order;
  3. use JinDouYun\Dao\BaseDao;
  4. /**
  5. * @copyright Copyright (c) https://www.qianniaovip.com All rights reserved
  6. * Description:
  7. * Class DSupplierOrderIndex
  8. * @package JinDouYun\Dao\Order
  9. */
  10. class DSupplierOrderIndex extends BaseDao
  11. {
  12. public function __construct($serviceDB = 'default')
  13. {
  14. $this->_table = 'supplier_order_index';
  15. $this->_primary = 'id';
  16. $this->_fields = [
  17. "id",//int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT 'id',
  18. "orderId",
  19. "purchaseStatus",
  20. "no",//char(25) NOT NULL COMMENT '订单编号',
  21. "reservoir",
  22. "supplierId",//int(10) DEFAULT NULL COMMENT '供应商Id',
  23. "createTime",//int(10) NOT NULL DEFAULT '0' COMMENT '创建时间',
  24. "updateTime",//int(10) NOT NULL DEFAULT '0' COMMENT '更新时间',
  25. ];
  26. $this->_readonly = ['id'];
  27. $this->_create_autofill = [
  28. 'createTime' => time()
  29. ];
  30. $this->_update_autofill = [
  31. 'updateTime' => time()
  32. ];
  33. parent::__construct($serviceDB);
  34. }
  35. }