DReceiveOffset.Class.php 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * User: Gss
  5. * Date: 2021/3/11 0011
  6. * Time: 17:25
  7. */
  8. namespace JinDouYun\Dao\Finance;
  9. use JinDouYun\Dao\BaseDao;
  10. class DReceiveOffset extends BaseDao
  11. {
  12. public function __construct($serviceDB = 'default')
  13. {
  14. $this->_table = 'qianniao_receive_offset_1';
  15. $this->_primary = 'id';
  16. $this->_fields = [
  17. 'id',//int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '自增id',
  18. 'receiveReceiptId',//int(10) unsigned DEFAULT NULL COMMENT '应收单id',
  19. 'receivedId',//int(10) unsigned DEFAULT NULL COMMENT '收款单id',
  20. 'offsetMoney',//decimal(15,4) DEFAULT '0.0000' COMMENT '核销金额',
  21. 'createTime',//int(10) DEFAULT NULL COMMENT '创建时间',
  22. 'updateTime',//int(10) DEFAULT NULL COMMENT '更新时间',
  23. 'extends',//json DEFAULT NULL COMMENT '扩展字段',
  24. 'receiveCreateTime',//应收创建时间
  25. 'type',// tinyint(1) DEFAULT '5' COMMENT '创建来源 5收款、4应收',
  26. ];
  27. $this->_readonly = ['id'];
  28. $this->_create_autofill = [
  29. 'createTime' => time()
  30. ];
  31. $this->_update_autofill = [
  32. 'updateTime' => time()
  33. ];
  34. parent::__construct($serviceDB);
  35. }
  36. }