DDeliverySetting.Class.php 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <?php
  2. /**
  3. * 配送Dao
  4. * Created by PhpStorm.
  5. * User: XiaoMing
  6. * Date: 2019/10/31
  7. * Time: 15:49
  8. */
  9. namespace JinDouYun\Dao\System;
  10. use JinDouYun\Dao\BaseDao;
  11. class DDeliverySetting extends BaseDao
  12. {
  13. public function __construct($serviceDB = 'default')
  14. {
  15. $this->_table = 'delivery_setting';
  16. $this->_primary = 'id';
  17. $this->_fields = [
  18. "id", //int(10) NOT NULL AUTO_INCREMENT,
  19. "deliveryType",// tinyint(3) NOT NULL COMMENT '配送方式标识 对应StatusCode中的标识',
  20. "enterpriseId",// int(11) NOT NULL COMMENT '企业id',
  21. "settingId", //varchar(50) NOT NULL DEFAULT '' COMMENT '配送方式id',
  22. "defaultStatus", //tinyint(3) NOT NULL DEFAULT '4' COMMENT '是否默认 默认4 否 5是',
  23. "enableStatus", //tinyint(3) NOT NULL DEFAULT '5' COMMENT '状态 默认5 启用 4禁用',
  24. "deleteStatus", //tinyint(3) NOT NULL DEFAULT '5' COMMENT '是否删除 默认5 正常 4删除',
  25. "extends", //json DEFAULT NULL COMMENT '拓展字段',
  26. "createTime", //int(10) NOT NULL DEFAULT '0' COMMENT '创建时间',
  27. "updateTime", //int(10) NOT NULL DEFAULT '0' COMMENT '更新时间',
  28. "setData",
  29. "title",
  30. "shopId"
  31. ];
  32. $this->_readonly = ['id'];
  33. $this->_create_autofill = [
  34. 'createTime' => time()
  35. ];
  36. $this->_update_autofill = [
  37. 'updateTime' => time()
  38. ];
  39. parent::__construct($serviceDB);
  40. }
  41. }