DPayReceiptIndex.Class.php 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <?php
  2. /**
  3. * 应付单索引Dao类
  4. * Created by PhpStorm.
  5. * User: wxj
  6. * Date: 2019/10/30
  7. * Time: 14:17
  8. */
  9. namespace Jobs\Dao\Finance;
  10. use Jobs\Dao\BaseDao;
  11. class DPayReceiptIndex extends BaseDao
  12. {
  13. public function __construct($serviceDB = 'default')
  14. {
  15. $this->_table = 'qianniao_pay_receipt_index_1';
  16. $this->_primary = 'id';
  17. $this->_fields = [
  18. 'id',//int(11) NOT NULL AUTO_INCREMENT COMMENT '应收索引表id',
  19. 'payReceiptId',//int(11) NOT NULL COMMENT '应付单据id',
  20. 'createTime',//int(11) NOT NULL COMMENT '创建时间',
  21. 'updateTime',//int(11) NOT NULL COMMENT '修改时间',
  22. 'shopId',//int(11) DEFAULT NULL COMMENT '商铺id',
  23. 'financeTypeId',//tinyint(2) DEFAULT NULL COMMENT '财务类型id',
  24. 'financeType',//varchar(50) DEFAULT NULL COMMENT '财务类型名称',
  25. 'auditStatus',//tinyint(1) DEFAULT '1' COMMENT '应付单据状态(1未审核 2已审核)',
  26. 'customerId',//int(11) DEFAULT NULL COMMENT '客户id',
  27. 'sourceNo',//char(25) DEFAULT NULL COMMENT '源订单号',
  28. ];
  29. $this->_readonly = ['id'];
  30. $this->_create_autofill = [
  31. 'createTime' => time()
  32. ];
  33. $this->_update_autofill = [
  34. 'updateTime' => time()
  35. ];
  36. parent::__construct($serviceDB);
  37. }
  38. }