_table = 'qianniao_customer_balance_1'; $this->_primary = 'id'; $this->_fields = [ 'id',//int(11) NOT NULL AUTO_INCREMENT COMMENT '客户余额表', 'customerId',//int(11) DEFAULT NULL COMMENT '客户id', 'openingBalance',//decimal(15,4) DEFAULT '0.0000' COMMENT '期初余额', 'interimBalance',//decimal(15,4) DEFAULT '0.0000' COMMENT '期中余额', 'endingBalance',//decimal(15,4) DEFAULT '0.0000' COMMENT '期末余额', 'createTime',//int(11) DEFAULT NULL COMMENT '创建日期', 'updateTime',//int(11) DEFAULT NULL COMMENT '修改日期', 'extends',//json DEFAULT NULL COMMENT '扩展字段', ]; $this->_readonly = ['id']; $this->_create_autofill = [ 'createTime' => time() ]; $this->_update_autofill = [ 'updateTime' => time() ]; parent::__construct($serviceDB); } }