DMerchantWithdraw.Class.php 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <?php
  2. namespace JinDouYun\Dao\Merchant;
  3. use JinDouYun\Dao\BaseDao;
  4. class DMerchantWithdraw extends BaseDao
  5. {
  6. public function __construct($serviceDB = 'default')
  7. {
  8. $this->_table = 'merchant_withdraw';
  9. $this->_primary = 'id';
  10. $this->_fields = [
  11. "id",//int(11) NOT NULL AUTO_INCREMENT,
  12. "no",//
  13. "shopId",//int(10) DEFAULT NULL COMMENT '店铺Id',
  14. "shopName",//varchar(30) DEFAULT NULL COMMENT '店铺名称',
  15. "merchantId",//int(10) DEFAULT NULL COMMENT '商户Id',
  16. "merchantName",//varchar(30) DEFAULT NULL COMMENT '商户名称',
  17. "type",//tinyint(3) NOT NULL DEFAULT '0' COMMENT '结算方式',
  18. "accountContent",//json NOT NULL COMMENT '到账账号信息',
  19. "money",//decimal(10,2) DEFAULT NULL COMMENT '申请金额',
  20. "auditId",//int(10) DEFAULT NULL COMMENT '审核人id',
  21. "auditName",//varchar(30) DEFAULT NULL COMMENT '审核人姓名',
  22. "auditTime",//int(10) DEFAULT NULL COMMENT '审核时间',
  23. "auditStatus",//tinyint(3) DEFAULT '1' COMMENT '审核状态 1:申请提现 2:打款成功 3:提现审核拒绝 4:审核成功等待打款',
  24. "rate",//decimal(10,2) DEFAULT NULL COMMENT '抽成比率 eg: 2% (2.00)',
  25. "fee",//decimal(10,2) DEFAULT NULL COMMENT '抽成金额'
  26. "nowMoney",//decimal(10,2) NOT NULL COMMENT '预计打款金额',
  27. "payTime",//int(10) NOT NULL DEFAULT '0' COMMENT '打款时间',
  28. "createTime",//int(10) NOT NULL DEFAULT '0' COMMENT '创建时间',
  29. "updateTime",//int(10) NOT NULL DEFAULT '0' COMMENT '更新时间',
  30. "extends",//json DEFAULT NULL COMMENT '拓展字段',
  31. "orderNum",//int(10) NOT NULL DEFAULT '0' COMMENT '订单数量',
  32. ];
  33. $this->_readonly = ['id'];
  34. $this->_create_autofill = [
  35. 'createTime' => time()
  36. ];
  37. $this->_update_autofill = [
  38. 'updateTime' => time()
  39. ];
  40. parent::__construct($serviceDB);
  41. }
  42. }