DSupplierBalanceIndex.Class.php 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637
  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 DSupplierBalanceIndex extends BaseDao
  11. {
  12. public function __construct($serviceDB = 'default')
  13. {
  14. $this->_table = 'qianniao_supplier_balance_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. 'supplierId',//int(11) DEFAULT NULL COMMENT '供应商id',
  20. 'createTime',//int(11) DEFAULT NULL COMMENT '创建日期',
  21. 'updateTime',//int(11) DEFAULT NULL COMMENT '修改日期',
  22. 'extends',//json DEFAULT NULL COMMENT '扩展字段',
  23. ];
  24. $this->_readonly = ['id'];
  25. $this->_create_autofill = [
  26. 'createTime' => time()
  27. ];
  28. $this->_update_autofill = [
  29. 'updateTime' => time()
  30. ];
  31. parent::__construct($serviceDB);
  32. }
  33. }