DPaidAccount.Class.php 1.6 KB

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