DPayReceiptIndex.Class.php 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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 DPayReceiptIndex extends BaseDao
  11. {
  12. public function __construct($serviceDB = 'default')
  13. {
  14. $this->_table = 'qianniao_pay_receipt_index_1';
  15. $this->_primary = 'id';
  16. $this->_fields = [
  17. 'id',//int(11) NOT NULL AUTO_INCREMENT COMMENT '应收索引表id',
  18. 'payReceiptId',//int(11) NOT NULL COMMENT '应付单据id',
  19. 'createTime',//int(11) NOT NULL COMMENT '创建时间',
  20. 'updateTime',//int(11) NOT NULL COMMENT '修改时间',
  21. 'shopId',//int(11) DEFAULT NULL COMMENT '商铺id',
  22. 'financeTypeId',//tinyint(2) DEFAULT NULL COMMENT '财务类型id',
  23. 'financeType',//varchar(50) DEFAULT NULL COMMENT '财务类型名称',
  24. 'offsetStatus',// tinyint(1) unsigned DEFAULT NULL COMMENT '核销状态 5全部核销/4部分核销',
  25. 'auditStatus',//tinyint(1) DEFAULT '1' COMMENT '应付单据状态(1未审核 2已审核)',
  26. 'supplierId',//int(11) DEFAULT NULL COMMENT '供应商id',
  27. 'sourceNo',//char(25) DEFAULT NULL COMMENT '源订单号',
  28. 'deleteStatus'
  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. }