DReceiveReceiptIndex.Class.php 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * User: wxj
  5. * Date: 2019/10/30
  6. * Time: 14:17
  7. */
  8. namespace Jobs\Dao\Finance;
  9. use Jobs\Dao\BaseDao;
  10. class DReceiveReceiptIndex extends BaseDao
  11. {
  12. public function __construct($serviceDB = 'default')
  13. {
  14. $this->_table = '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. 'auditStatus',//tinyint(1) DEFAULT NULL COMMENT '单据状态',
  25. 'customerId',//int(11) DEFAULT NULL COMMENT '客户id',
  26. 'sourceNo',//varchar(50) DEFAULT NULL COMMENT '订单编号',
  27. ];
  28. $this->_readonly = ['id'];
  29. $this->_create_autofill = [
  30. 'createTime' => time()
  31. ];
  32. $this->_update_autofill = [
  33. 'updateTime' => time()
  34. ];
  35. parent::__construct($serviceDB);
  36. }
  37. }