DSupplierWithdraw.Class.php 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. <?php
  2. namespace JinDouYun\Dao\Purchase;
  3. use JinDouYun\Dao\BaseDao;
  4. /**
  5. * @copyright Copyright (c) https://www.qianniaovip.com All rights reserved
  6. * Description:
  7. * Class DSupplierWithdraw
  8. * @package JinDouYun\Dao\Purchase
  9. */
  10. class DSupplierWithdraw extends BaseDao
  11. {
  12. public function __construct($serviceDB = 'default')
  13. {
  14. $this->_table = 'supplier_withdraw';
  15. $this->_primary = 'id';
  16. $this->_fields = [
  17. "id",//int(11) NOT NULL AUTO_INCREMENT,
  18. "no",
  19. "supplierId",//int(10) DEFAULT NULL COMMENT '供应商Id',
  20. "supplierName",//varchar(30) DEFAULT NULL COMMENT '供应商名称',
  21. "type",//tinyint(3) NOT NULL DEFAULT '0' COMMENT '结算方式',
  22. "accountContent",//json NOT NULL COMMENT '到账账号信息',
  23. "money",//decimal(10,2) DEFAULT NULL COMMENT '申请金额',
  24. "auditId",//int(10) DEFAULT NULL COMMENT '审核人id',
  25. "auditName",//varchar(30) DEFAULT NULL COMMENT '审核人姓名',
  26. "auditTime",//int(10) DEFAULT NULL COMMENT '审核时间',
  27. "auditStatus",//tinyint(3) DEFAULT '1' COMMENT '审核状态 1:申请提现 2:打款成功 3:提现审核拒绝 4:审核成功等待打款',
  28. "rate",//decimal(10,2) DEFAULT NULL COMMENT '抽成比率 eg: 2% (2.00)',
  29. "fee",//decimal(10,2) DEFAULT NULL COMMENT '抽成金额',
  30. "reason",
  31. "nowMoney",//decimal(10,2) NOT NULL COMMENT '预计打款金额',
  32. "payTime",//int(10) NOT NULL DEFAULT '0' COMMENT '打款时间',
  33. "createTime",//int(10) NOT NULL DEFAULT '0' COMMENT '创建时间',
  34. "updateTime",//int(10) NOT NULL DEFAULT '0' COMMENT '更新时间',
  35. "extends",//json DEFAULT NULL COMMENT '拓展字段',
  36. ];
  37. $this->_readonly = ['id'];
  38. $this->_create_autofill = [
  39. 'createTime' => time()
  40. ];
  41. $this->_update_autofill = [
  42. 'updateTime' => time()
  43. ];
  44. parent::__construct($serviceDB);
  45. }
  46. }