123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- <?php
- /**
- * Created by PhpStorm.
- * User: Gss
- * Date: 2021/3/6 0006
- * Time: 14:44
- */
- namespace JinDouYun\Dao\Finance;
- use JinDouYun\Dao\BaseDao;
- class DReceiptRequisition extends BaseDao
- {
- public function __construct($serviceDB = 'default')
- {
- $this->_table = 'qianniao_receipt_requisition_1';
- $this->_primary = 'id';
- $this->_fields = [
- 'id',//int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '自增id',
- 'no',// varchar(255) DEFAULT NULL COMMENT 'no编号',
- 'customerId',//int(10) unsigned NOT NULL COMMENT '客户id',
- 'customerName',//char(50) NOT NULL COMMENT '客户名称',
- 'receivable',//decimal(15,4) NOT NULL COMMENT '当前应收',
- 'totalCollectionAmount',// decimal(15,4) DEFAULT NULL COMMENT '总收金额',
- 'totalPreferentialAmount',// decimal(15,4) DEFAULT NULL COMMENT '总优惠金额',
- 'totalActualAmount',// decimal(15,4) DEFAULT NULL COMMENT '总实际金额',
- 'operatorId',//int(10) NOT NULL COMMENT '收款人id',
- 'operatorName',//char(50) NOT NULL COMMENT '收款人名称',
- 'shopId',// int(10) DEFAULT NULL COMMENT '店铺id',
- 'shopName',// char(50) DEFAULT NULL COMMENT '店铺名称',
- 'auditStatus',// int(10) unsigned DEFAULT '1' COMMENT '审核状态',
- 'deleteStatus',// int(10) unsigned NOT NULL DEFAULT '5' COMMENT '删除状态',
- 'createTime',//int(10) DEFAULT NULL COMMENT '创建时间',
- 'updateTime',//int(10) DEFAULT NULL COMMENT '更新时间',
- 'extend',//json DEFAULT NULL COMMENT '扩展字段',
- ];
- $this->_readonly = ['id'];
- $this->_create_autofill = [
- 'createTime' => time()
- ];
- $this->_update_autofill = [
- 'updateTime' => time()
- ];
- parent::__construct($serviceDB);
- }
- }
|