1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- <?php
- /**
- * Created by PhpStorm.
- * User: Gss
- * Date: 2021/4/7 0007
- * Time: 15:48
- */
- namespace JinDouYun\Dao\Merchant;
- use JinDouYun\Dao\BaseDao;
- class DMerchantDetail extends BaseDao
- {
- public function __construct($serviceDB = 'finance')
- {
- $this->_table = 'qianniao_merchant_detail_1';
- $this->_primary = 'id';
- $this->_fields = [
- 'id',//int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '收支id',
- 'merchantId',//int(10) NOT NULL COMMENT '商户id',
- 'merchantName',//varchar(255) NOT NULL COMMENT '商户名称',
- 'originId',//int(10) NOT NULL COMMENT '来源id',
- 'originNo',//varchar(50) NOT NULL COMMENT '来源编号',
- 'money',//decimal(15,2) DEFAULT '0.00' COMMENT '金额',
- 'afterMoney',//decimal(15,2) DEFAULT NULL COMMENT '变动后金额',
- 'type',//tinyint(1) DEFAULT NULL COMMENT '收支类型 5收入/4支出',
- 'source',//tinyint(1) DEFAULT NULL COMMENT '来源 1提现/2结算/3退货',
- 'remark',//text COMMENT '说明',
- 'createTime',//int(10) DEFAULT NULL COMMENT '创建时间',
- 'updateTime',//int(10) DEFAULT NULL COMMENT '更新时间',
- 'extends',//json DEFAULT NULL COMMENT '扩展字段',
- ];
- $this->_readonly = ['id'];
- $this->_create_autofill = [
- 'createTime' => time()
- ];
- $this->_update_autofill = [
- 'updateTime' => time()
- ];
- parent::__construct($serviceDB);
- }
- }
|