DCommissionWithdrawals.Class.php 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <?php
  2. /**
  3. * 分销体现记录Dao
  4. * Created by PhpStorm.
  5. * User: phperstar
  6. * Date: 2020/07/30
  7. * Time: 9:00
  8. */
  9. namespace JinDouYun\Dao\Commission;
  10. use JinDouYun\Dao\BaseDao;
  11. class DCommissionWithdrawals extends BaseDao
  12. {
  13. public function __construct($serviceDB = 'default')
  14. {
  15. $this->_table = 'qianniao_commission_withdrawals_1';
  16. $this->_primary = 'id';
  17. $this->_fields = [
  18. 'id', //int(10) NOT NULL AUTO_INCREMENT COMMENT '自增主键',
  19. 'userCenterId', //int(10) NOT NULL COMMENT '用户id',
  20. 'businessmanId', //int(10) NOT NULL COMMENT '分销商id',
  21. 'type', //tinyint(3) NOT NULL COMMENT '体现方式',
  22. 'accountContent', // json DEFAULT NULL COMMENT '体现账号信息',
  23. 'money', //decimal(8,2) NOT NULL COMMENT '体现金额',
  24. 'nowMoney', //decimal(8,2) NOT NULL COMMENT '当前实际金额',
  25. 'fee', //decimal(8,2) NOT NULL COMMENT '体现手续费',
  26. 'auditStatus', //tinyint(3) NOT NULL COMMENT '审核状态',
  27. 'auditTime', // int(10) DEFAULT '0' COMMENT '审核通过时间',
  28. 'payTime', //int(10) DEFAULT '0' COMMENT '完成打款时间',
  29. 'createTime', //int(10) NOT NULL COMMENT '创建时间',
  30. 'updateTime', //int(10) NOT NULL COMMENT '修改时间',
  31. 'extend', //json DEFAULT NULL 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. }