_table = 'qianniao_paid_offset_1'; $this->_primary = 'id'; $this->_fields = [ 'id',//int(10) NOT NULL COMMENT '自增id', 'payReceiptId',//int(10) NOT NULL COMMENT '应付单id', 'paidId',//int(10) NOT NULL COMMENT '付款单id', 'offsetMoney',//decimal(15,4) DEFAULT NULL COMMENT '核销金额', 'createTime',//int(10) DEFAULT NULL, 'updateTime',//int(10) DEFAULT NULL, 'extends',//json DEFAULT NULL, 'payCreateTime'//应付创建时间 ]; $this->_readonly = ['id']; $this->_create_autofill = [ 'createTime' => time() ]; $this->_update_autofill = [ 'updateTime' => time() ]; parent::__construct($serviceDB); } }