DRefundAccount.Class.php 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * User: Gss
  5. * Date: 2021/4/8 0008
  6. * Time: 19:31
  7. */
  8. namespace JinDouYun\Dao\Finance;
  9. use JinDouYun\Dao\BaseDao;
  10. class DRefundAccount extends BaseDao
  11. {
  12. public function __construct($serviceDB = 'finance')
  13. {
  14. $this->_table = 'qianniao_refund_account_1';
  15. $this->_primary = 'id';
  16. $this->_fields = [
  17. 'id',//int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'id',
  18. 'refundId',//int(10) NOT NULL COMMENT '退款单id',
  19. 'accountId',//int(10) NOT NULL COMMENT '账户id',
  20. 'accountNumber',//varchar(255) NOT NULL COMMENT '账号',
  21. 'accountName',//varchar(255) NOT NULL COMMENT '账号名称',
  22. 'money',//decimal(15,4) DEFAULT '0.0000' COMMENT '退款金额',
  23. 'payWay',//varchar(50) NOT NULL COMMENT '结算方式',
  24. 'remark',//text COMMENT '备注',
  25. 'operatorId',//int(10) NOT NULL COMMENT '操作人员id',
  26. 'createTime',//int(10) DEFAULT NULL COMMENT '创建时间',
  27. 'updateTime',//int(10) DEFAULT NULL COMMENT '修改时间',
  28. 'extends',//json DEFAULT NULL COMMENT '扩展字段',
  29. ];
  30. $this->_readonly = ['id'];
  31. $this->_create_autofill = [
  32. 'createTime' => time()
  33. ];
  34. $this->_update_autofill = [
  35. 'updateTime' => time()
  36. ];
  37. parent::__construct($serviceDB);
  38. }
  39. }