DReceiptRequisitionAccount.Class.php 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * User: Gss
  5. * Date: 2021/3/6 0006
  6. * Time: 14:51
  7. */
  8. namespace JinDouYun\Dao\Finance;
  9. use JinDouYun\Dao\BaseDao;
  10. class DReceiptRequisitionAccount extends BaseDao
  11. {
  12. public function __construct($serviceDB = 'default')
  13. {
  14. $this->_table = 'qianniao_receipt_requisition_account_1';
  15. $this->_primary = 'id';
  16. $this->_fields = [
  17. 'id',//int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '自增id',
  18. 'receiptRequisitionId',//int(10) unsigned NOT NULL COMMENT '收款单id',
  19. 'collectionAmount',//decimal(15,4) NOT NULL COMMENT '收款金额',
  20. 'preferentialAmount',//decimal(15,4) NOT NULL COMMENT '优惠金额',
  21. 'actualAmount',//decimal(15,4) NOT NULL COMMENT '实际金额',
  22. 'settlementMethod',//tinyint(10) NOT NULL COMMENT '付款方式',
  23. 'accountId',// int(10) DEFAULT NULL COMMENT '账户id',
  24. 'accountName',// char(50) DEFAULT NULL COMMENT '账户名称',
  25. 'remark',//varchar(255) DEFAULT NULL COMMENT '备注',
  26. 'deleteStatus',// int(10) unsigned NOT NULL DEFAULT '5' COMMENT '删除状态',
  27. 'createTime',//int(10) DEFAULT NULL COMMENT '创建时间',
  28. 'updateTime',//int(10) DEFAULT NULL COMMENT '更新时间',
  29. 'extend',//json DEFAULT NULL COMMENT '扩展字段',
  30. ];
  31. $this->_readonly = ['id'];
  32. $this->_create_autofill = [
  33. 'createTime' => time()
  34. ];
  35. $this->_update_autofill = [
  36. 'updateTime' => time()
  37. ];
  38. parent::__construct($serviceDB);
  39. }
  40. }