DExpenseSingleAccount.Class.php 1.6 KB

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