DSupplierBalanceDetailIndex.Class.php 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839
  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 DSupplierBalanceDetailIndex extends BaseDao
  11. {
  12. public function __construct($serviceDB = 'default')
  13. {
  14. $this->_table = 'qianniao_supplier_balance_detail_index_1';
  15. $this->_primary = 'id';
  16. $this->_fields = [
  17. 'id',//int(11) NOT NULL AUTO_INCREMENT COMMENT '供应商余额明细索引表',
  18. 'detailId',//int(11) DEFAULT NULL COMMENT '供应商余额明细表id',
  19. 'no',//char(25) DEFAULT NULL COMMENT '单据编号',
  20. 'supplierId',//int(11) DEFAULT NULL COMMENT '供应商id',
  21. 'receiptTime',//int(11) DEFAULT NULL COMMENT '单据日期',
  22. 'createTime',//int(11) DEFAULT NULL COMMENT '创建日期',
  23. 'updateTime',//int(11) DEFAULT NULL COMMENT '修改日期',
  24. 'extends',//json DEFAULT NULL COMMENT '扩展字段',
  25. ];
  26. $this->_readonly = ['id'];
  27. $this->_create_autofill = [
  28. 'createTime' => time()
  29. ];
  30. $this->_update_autofill = [
  31. 'updateTime' => time()
  32. ];
  33. parent::__construct($serviceDB);
  34. }
  35. }