1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- <?php
- /**
- * Created by PhpStorm.
- * User: wxj
- * Date: 2019/10/30
- * Time: 14:17
- */
- namespace JinDouYun\Dao\Finance;
- use JinDouYun\Dao\BaseDao;
- class DPaidAccount extends BaseDao
- {
- public function __construct($serviceDB = 'default')
- {
- $this->_table = 'qianniao_paid_account_1';
- $this->_primary = 'id';
- $this->_fields = [
- 'id',//int(11) NOT NULL AUTO_INCREMENT COMMENT '付款单账户表id',
- 'paidId',//varchar(255) DEFAULT NULL COMMENT '付款单id',
- 'accountId',//int(11) DEFAULT NULL COMMENT '账户id',
- 'accountNumber',//varchar(255) DEFAULT NULL COMMENT '账号',
- 'accountName', //varchar(255) DEFAULT '' COMMENT '账户名称',
- 'money',//float(10,2) DEFAULT NULL COMMENT '付款金额',
- 'discountMoney',//float(10,2) DEFAULT NULL COMMENT '优惠金额',
- 'finalMoney',//float(10,2) DEFAULT NULL COMMENT '实际付款金额',
- 'payWay',//varchar(50) DEFAULT NULL COMMENT '结算方式',
- 'remark',//text COMMENT '备注',
- 'createTime',//int(11) DEFAULT NULL COMMENT '创建时间',
- 'updateTime',//int(11) DEFAULT NULL COMMENT '修改时间',
- 'extends',//json DEFAULT NULL COMMENT '扩展字段',
- 'operatorId',//int(11) DEFAULT NULL COMMENT '操作人员Id',
- ];
- $this->_readonly = ['id'];
- $this->_create_autofill = [
- 'createTime' => time()
- ];
- $this->_update_autofill = [
- 'updateTime' => time()
- ];
- parent::__construct($serviceDB);
- }
- }
|