123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- <?php
- /**
- * Created by PhpStorm.
- * User: wxj
- * Date: 2019/10/30
- * Time: 14:17
- */
- namespace JinDouYun\Dao\Finance;
- use JinDouYun\Dao\BaseDao;
- class DReceivedAccount extends BaseDao
- {
- public function __construct($serviceDB = 'default')
- {
- $this->_table = 'qianniao_received_account_1';
- $this->_primary = 'id';
- $this->_fields = [
- 'id',//int(11) NOT NULL AUTO_INCREMENT COMMENT '收款单账户id',
- 'receivedId',//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',
- 'deleteStatus'
- ];
- $this->_readonly = ['id'];
- $this->_create_autofill = [
- 'createTime' => time()
- ];
- $this->_update_autofill = [
- 'updateTime' => time()
- ];
- parent::__construct($serviceDB);
- }
- }
|