DOrderIndex.Class.php 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * User: XiaoMing
  5. * Date: 2019/11/23
  6. * Time: 9:22
  7. */
  8. namespace Jobs\Dao\Order;
  9. use Jobs\Dao\BaseDao;
  10. class DOrderIndex extends BaseDao
  11. {
  12. public function __construct($serviceDB = 'default')
  13. {
  14. $this->_table = 'order_index';
  15. $this->_primary = 'id';
  16. $this->_fields = [
  17. "id", //int(11) NOT NULL AUTO_INCREMENT COMMENT '自增id',
  18. "orderId", //int(11) NOT NULL COMMENT '订单id',
  19. "userCenterId", //int(11) NOT NULL COMMENT 'userCenterId',
  20. "shopId", //int(11) NOT NULL COMMENT 'shopId',
  21. "createTime", //int(10) DEFAULT NULL COMMENT '创建时间',
  22. "updateTime", //int(10) DEFAULT NULL COMMENT '更新时间',
  23. "deleteStatus", //tinyint(3) DEFAULT '5' COMMENT '删除状态',
  24. "auditStatus", //tinyint(3) DEFAULT NULL COMMENT '审核状态',
  25. "salesManId", //int(10) DEFAULT NULL COMMENT '业务员id',
  26. "payStatus", //tinyint(3) DEFAULT '4' COMMENT '支付状态 默认4 未支付 5已支付',
  27. "orderStatus", //tinyint(3) DEFAULT NULL COMMENT '订单状态 默认 2待支付 3代发货 4待收货 5已完成 6已关闭',
  28. "outStatus",
  29. "returnStatus",
  30. "deliveryType", //tinyint(3) DEFAULT NULL COMMENT '配送方式 1商品配送 2上门自提',
  31. "payType",//支付方式
  32. "customerId",//客户id
  33. ];
  34. $this->_readonly = ['id'];
  35. $this->_create_autofill = [
  36. ];
  37. $this->_update_autofill = [
  38. ];
  39. parent::__construct($serviceDB);
  40. }
  41. }