DReceiveReceiptIndex.Class.php 1.7 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 DReceiveReceiptIndex extends BaseDao
  11. {
  12. public function __construct($serviceDB = 'default')
  13. {
  14. $this->_table = 'qianniao_receive_receipt_index_1';
  15. $this->_primary = 'id';
  16. $this->_fields = [
  17. 'id',//int(11) NOT NULL AUTO_INCREMENT COMMENT '应收索引表id',
  18. 'receiveReceiptId',//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 NOT NULL DEFAULT '4' COMMENT '核销状态 5全部核销/4部分核销',
  25. 'auditStatus',//tinyint(1) DEFAULT '1' COMMENT '审核状态(2已审核 1待审核)',
  26. 'customerId',//int(11) DEFAULT NULL COMMENT '客户id',
  27. 'sourceNo',//char(25) DEFAULT NULL COMMENT '原单据编号',
  28. 'sourceId',//int(11) DEFAULT NULL COMMENT '原单据id',
  29. 'originId',//int(10) DEFAULT '0' COMMENT '订单id',
  30. 'originNo',//char(50) DEFAULT NULL COMMENT '订单no',
  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. }