123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- <?php
- /**
- * Created by PhpStorm.
- * User: Gss
- * Date: 2021/3/8 0008
- * Time: 15:28
- */
- namespace JinDouYun\Dao\Finance;
- use JinDouYun\Dao\BaseDao;
- class DExpenseSingleAccount extends BaseDao
- {
- public function __construct($serviceDB = 'default')
- {
- $this->_table = 'qianniao_expense_single_1';
- $this->_primary = 'id';
- $this->_fields = [
- 'id',//int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '自增id',
- 'expenseSingleId',//int(10) unsigned NOT NULL COMMENT '费用单id',
- 'expenseName',//varchar(255) NOT NULL COMMENT '费用名称',
- 'amount',//decimal(15,4) NOT NULL COMMENT '金额',
- 'preferentialAmount',// decimal(15,4) NOT NULL,
- 'settlementMethodId',// tinyint(10) unsigned DEFAULT NULL COMMENT '结算方式id',
- 'settlementMethodName',// varchar(255) DEFAULT NULL COMMENT '结算方式名称',
- 'accountId',//int(10) DEFAULT NULL COMMENT '账户id',
- 'settlementAccount',//varchar(255) DEFAULT NULL COMMENT '结算账户',
- 'remark',//varchar(255) NOT NULL COMMENT '备注',
- 'deleteStatus',//tinyint(10) NOT NULL DEFAULT '5' COMMENT '删除状态',
- 'createTime',//int(10) NOT NULL COMMENT '创建时间',
- 'updateTime',//int(10) NOT NULL COMMENT '更新时间',
- 'extend',//json NOT NULL COMMENT '扩展字段',
- ];
- $this->_readonly = ['id'];
- $this->_create_autofill = [
- 'createTime' => time()
- ];
- $this->_update_autofill = [
- 'updateTime' => time()
- ];
- parent::__construct($serviceDB);
- }
- }
|