DPaidIndex.Class.php 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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 DPaidIndex extends BaseDao
  11. {
  12. public function __construct($serviceDB = 'default')
  13. {
  14. $this->_table = 'qianniao_paid_index_1';
  15. $this->_primary = 'id';
  16. $this->_fields = [
  17. 'id',//int(11) NOT NULL AUTO_INCREMENT COMMENT '付款单索引表id',
  18. 'no',//char(25) DEFAULT NULL COMMENT '付款单据编号',
  19. 'paidId',//int(11) NOT NULL COMMENT '付款单id',
  20. 'receiptTime',//int(11) DEFAULT NULL COMMENT '单据时间',
  21. 'createTime',//int(11) NOT NULL COMMENT '创建时间',
  22. 'updateTime',//int(11) NOT NULL COMMENT '修改时间',
  23. 'supplierId',//int(11) DEFAULT NULL COMMENT '往来单位',
  24. 'currentAccountName',//varchar(50) DEFAULT NULL COMMENT '往来账户人',
  25. 'sourceNo',//varchar(50) DEFAULT NULL COMMENT '源单据号',
  26. 'financeType',//varchar(50) DEFAULT NULL COMMENT '财务类型',
  27. 'financeTypeId',//int(2) DEFAULT NULL COMMENT '财务类型id',
  28. 'auditStatus',//tinyint(1) DEFAULT NULL COMMENT '审核状态',
  29. 'paidType',// int(10) unsigned NOT NULL DEFAULT '4' COMMENT '付款类型',
  30. 'offsetStatus',// tinyint(1) DEFAULT '4' COMMENT '核销状态',
  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. }