DPaymentSetting.Class.php 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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 DPaymentSetting extends BaseDao
  12. {
  13. public function __construct($serviceDB = 'default')
  14. {
  15. $this->_table = 'payment_setting';
  16. $this->_primary = 'id';
  17. $this->_fields = [
  18. "id", //int(10) NOT NULL AUTO_INCREMENT,
  19. "settingId", //varchar(50) NOT NULL DEFAULT '' COMMENT '支付方式id',
  20. "defaultStatus", //tinyint(3) NOT NULL DEFAULT '4' COMMENT '是否默认 默认4 否 5是',
  21. "enableStatus", //tinyint(3) NOT NULL DEFAULT '5' COMMENT '状态 默认5 启用 4禁用',
  22. "deleteStatus", //tinyint(3) NOT NULL DEFAULT '5' COMMENT '是否删除 默认5 正常 4删除',
  23. "extends", //json DEFAULT NULL COMMENT '拓展字段',
  24. "createTime", //int(10) NOT NULL DEFAULT '0' COMMENT '创建时间',
  25. "updateTime", //int(10) NOT NULL DEFAULT '0' COMMENT '更新时间',
  26. "logo",// varchar(255) NOT NULL DEFAULT '' COMMENT '支付logo',
  27. ];
  28. $this->_readonly = ['id'];
  29. $this->_create_autofill = [
  30. 'createTime' => time()
  31. ];
  32. $this->_update_autofill = [
  33. 'updateTime' => time()
  34. ];
  35. parent::__construct($serviceDB);
  36. }
  37. }