1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- <?php
- /**
- * Created by PhpStorm.
- * User: Gss
- * Date: 2021/4/8 0008
- * Time: 19:30
- */
- namespace JinDouYun\Dao\Finance;
- use JinDouYun\Dao\BaseDao;
- class DRefund extends BaseDao
- {
- public function __construct($serviceDB = 'finance')
- {
- $this->_table = 'qianniao_refund_1';
- $this->_primary = 'id';
- $this->_fields = [
- 'id',//int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'id',
- 'no',//char(25) NOT NULL COMMENT '单据编号',
- 'auditStatus',//tinyint(1) NOT NULL DEFAULT '1' COMMENT '审核状态',
- 'unitId',// int(10) DEFAULT NULL COMMENT '退款单位id',
- 'unitName',// varchar(50) DEFAULT NULL COMMENT '退款单位名称',
- 'type',// tinyint(1) NOT NULL COMMENT '退款单位类型 1客户/2供应商',
- 'sourceNo',//char(25) NOT NULL COMMENT '原单据编号',
- 'currentAccountName',//varchar(50) NOT NULL COMMENT '往来账户人',
- 'financeType',//varchar(50) NOT NULL COMMENT '财务类型名称',
- 'financeTypeId',//tinyint(2) NOT NULL COMMENT '财务类型id',
- 'payType',// char(10) DEFAULT NULL COMMENT '支付方式',
- 'shopId',//int(10) NOT NULL COMMENT '所属商铺',
- 'shopName',//varchar(255) DEFAULT NULL COMMENT '商铺名称',
- 'money',//decimal(15,4) DEFAULT '0.0000' COMMENT '退款金额',
- 'operatorId',//int(10) NOT NULL COMMENT '操作人员id',
- 'originId',// int(10) DEFAULT NULL COMMENT '源订单id',
- 'originNo',// varchar(50) DEFAULT NULL COMMENT '原订单no',
- 'refundTime',//int(10) DEFAULT NULL COMMENT '单据日期',
- 'createTime',//int(10) DEFAULT NULL COMMENT '创建时间',
- 'updateTime',//int(10) DEFAULT NULL COMMENT '更新时间',
- 'offsetId',// int(10) DEFAULT NULL COMMENT '需要核销的单据id',
- ];
- $this->_readonly = ['id'];
- $this->_create_autofill = [
- 'createTime' => time()
- ];
- $this->_update_autofill = [
- 'updateTime' => time()
- ];
- parent::__construct($serviceDB);
- }
- }
|