DOrderIndex.Class.php 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * User: XiaoMing
  5. * Date: 2019/11/23
  6. * Time: 9:22
  7. */
  8. namespace JinDouYun\Dao\Order;
  9. use JinDouYun\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. "userCenterId", //int(11) NOT NULL COMMENT 'userCenterId',
  19. "shopId", //int(11) NOT NULL COMMENT 'shopId',
  20. "merchantId", // int(10) DEFAULT NULL COMMENT '商户id',
  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. "orderType",//tinyint(3) DEFAULT 1 COMMENT '单据类型 1:销售订单(购物车正常购买的) 23:销售单(后台快速创建的)',
  34. "outTime",//出库时间
  35. "no",//订单编号
  36. "source",
  37. "salesManId", //int(10) DEFAULT '0' COMMENT '业务员id',
  38. "customerType",
  39. "isCommission",
  40. "commissionData",
  41. "verifyCode",
  42. "selfRuleId",
  43. "cashierUid",
  44. "guideUids",
  45. ];
  46. $this->_readonly = ['id'];
  47. $this->_create_autofill = [
  48. ];
  49. $this->_update_autofill = [
  50. ];
  51. parent::__construct($serviceDB);
  52. }
  53. }