123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- <?php
- namespace JinDouYun\Dao\Merchant;
- use JinDouYun\Dao\BaseDao;
- class DMerchantWithdraw extends BaseDao
- {
- public function __construct($serviceDB = 'default')
- {
- $this->_table = 'merchant_withdraw';
- $this->_primary = 'id';
- $this->_fields = [
- "id",//int(11) NOT NULL AUTO_INCREMENT,
- "no",//
- "shopId",//int(10) DEFAULT NULL COMMENT '店铺Id',
- "shopName",//varchar(30) DEFAULT NULL COMMENT '店铺名称',
- "merchantId",//int(10) DEFAULT NULL COMMENT '商户Id',
- "merchantName",//varchar(30) DEFAULT NULL COMMENT '商户名称',
- "type",//tinyint(3) NOT NULL DEFAULT '0' COMMENT '结算方式',
- "accountContent",//json NOT NULL COMMENT '到账账号信息',
- "money",//decimal(10,2) DEFAULT NULL COMMENT '申请金额',
- "auditId",//int(10) DEFAULT NULL COMMENT '审核人id',
- "auditName",//varchar(30) DEFAULT NULL COMMENT '审核人姓名',
- "auditTime",//int(10) DEFAULT NULL COMMENT '审核时间',
- "auditStatus",//tinyint(3) DEFAULT '1' COMMENT '审核状态 1:申请提现 2:打款成功 3:提现审核拒绝 4:审核成功等待打款',
- "rate",//decimal(10,2) DEFAULT NULL COMMENT '抽成比率 eg: 2% (2.00)',
- "fee",//decimal(10,2) DEFAULT NULL COMMENT '抽成金额'
- "nowMoney",//decimal(10,2) NOT NULL COMMENT '预计打款金额',
- "payTime",//int(10) NOT NULL DEFAULT '0' COMMENT '打款时间',
- "createTime",//int(10) NOT NULL DEFAULT '0' COMMENT '创建时间',
- "updateTime",//int(10) NOT NULL DEFAULT '0' COMMENT '更新时间',
- "extends",//json DEFAULT NULL COMMENT '拓展字段',
- "orderNum",//int(10) NOT NULL DEFAULT '0' COMMENT '订单数量',
- ];
- $this->_readonly = ['id'];
- $this->_create_autofill = [
- 'createTime' => time()
- ];
- $this->_update_autofill = [
- 'updateTime' => time()
- ];
- parent::__construct($serviceDB);
- }
- }
|