12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- <?php
- /**
- * Created by PhpStorm.
- * User: Gss
- * Date: 2021/4/8 0008
- * Time: 19:25
- */
- namespace JinDouYun\Dao\Finance;
- use JinDouYun\Dao\BaseDao;
- class DRefundIndex extends BaseDao
- {
- public function __construct($serviceDB = 'finance')
- {
- $this->_table = 'qianniao_refund_index_1';
- $this->_primary = 'id';
- $this->_fields = [
- 'id',//int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'id',
- 'refundId',//int(10) NOT NULL COMMENT '退款单id',
- 'no',//char(25) NOT NULL COMMENT '退款单据编号',
- 'sourceNo',//char(25) NOT NULL COMMENT '源单据编号',
- 'refundTime',//int(10) DEFAULT NULL COMMENT '退款时间',
- 'unitId',// int(10) DEFAULT NULL COMMENT '退款单位id',
- 'type',// tinyint(1) NOT NULL COMMENT '退款单位类型 1客户/2供应商',
- 'payType',// char(10) DEFAULT NULL COMMENT '支付方式',
- 'currentAccountName',//varchar(255) NOT NULL COMMENT '往来单位名称',
- 'financeType',//varchar(50) DEFAULT NULL COMMENT '财务类型',
- 'financeTypeId',//int(10) DEFAULT NULL COMMENT '财务类型id',
- 'refundType',//int(1) NOT NULL DEFAULT '4' COMMENT '退款类型',
- 'auditStatus',//tinyint(1) NOT NULL DEFAULT '1' COMMENT '审核类型',
- 'originId',// int(10) DEFAULT NULL COMMENT '源订单id',
- 'originNo',// varchar(50) DEFAULT NULL COMMENT '原订单no',
- 'createTime',//int(10) DEFAULT NULL COMMENT '创建时间',
- 'updateTime',//int(10) DEFAULT NULL COMMENT '更新时间',
- ];
- $this->_readonly = ['id'];
- $this->_create_autofill = [
- 'createTime' => time()
- ];
- $this->_update_autofill = [
- 'updateTime' => time()
- ];
- parent::__construct($serviceDB);
- }
- }
|