DOrderReceive.Class.php 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <?php
  2. /**
  3. * 订单收货信息Dao
  4. * Created by PhpStorm.
  5. * User: XiaoMing
  6. * Date: 2019/10/31
  7. * Time: 16:01
  8. */
  9. namespace Jobs\Dao\Order;
  10. use Jobs\Dao\BaseDao;
  11. class DOrderReceive extends BaseDao
  12. {
  13. public function __construct($serviceDB = 'default')
  14. {
  15. $this->_table = 'order_receive';
  16. $this->_primary = 'id';
  17. $this->_fields = [
  18. "id", //int(10) NOT NULL AUTO_INCREMENT,
  19. "no", //bigint(20) NOT NULL COMMENT '订单编号',
  20. "orderId", //int(10) NOT NULL DEFAULT '0' COMMENT '订单Id',
  21. "customerId", //int(10) NOT NULL DEFAULT '0' COMMENT '客户Id',
  22. "customerCode", //varchar(255) NOT NULL DEFAULT '' COMMENT '客户编码',
  23. "realName", //varchar(255) NOT NULL DEFAULT '' COMMENT '收货人姓名',
  24. "mobile", //char(11) NOT NULL DEFAULT '' COMMENT '收货人电话',
  25. "address", //varchar(255) NOT NULL DEFAULT '' COMMENT '收货详细地址',
  26. "provinceCode", //int(10) NOT NULL DEFAULT '0' COMMENT '省份编码',
  27. "cityCode", //int(10) NOT NULL DEFAULT '0' COMMENT '城市编码',
  28. "districtCode", //int(10) NOT NULL DEFAULT '0' COMMENT '区编码',
  29. "remark", //varchar(255) NOT NULL DEFAULT '' COMMENT '收货备注',
  30. "extends", //json DEFAULT NULL COMMENT '拓展字段',
  31. "deleteStatus", //tinyint(3) NOT NULL DEFAULT '5' COMMENT '是否删除 默认5 正常 4删除',
  32. "createTime", //int(10) NOT NULL DEFAULT '0' COMMENT '创建时间',
  33. "updateTime", //int(10) NOT NULL DEFAULT '0' COMMENT '更新时间',
  34. ];
  35. $this->_readonly = ['id'];
  36. $this->_create_autofill = [
  37. 'createTime' => time()
  38. ];
  39. $this->_update_autofill = [
  40. 'updateTime' => time()
  41. ];
  42. parent::__construct($serviceDB);
  43. }
  44. }