DOrderReceive.Class.php 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <?php
  2. /**
  3. * 订单收货信息Dao
  4. * Created by PhpStorm.
  5. * User: XiaoMing
  6. * Date: 2019/10/31
  7. * Time: 16:01
  8. */
  9. namespace JinDouYun\Dao\Order;
  10. use JinDouYun\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. "detailAddress",//varchar(255) NOT NULL DEFAULT '' COMMENT '详细地址',
  35. ];
  36. $this->_readonly = ['id'];
  37. $this->_create_autofill = [
  38. 'createTime' => time()
  39. ];
  40. $this->_update_autofill = [
  41. 'updateTime' => time()
  42. ];
  43. parent::__construct($serviceDB);
  44. }
  45. }