123456789101112131415161718192021222324252627282930313233343536373839404142 |
- <?php
- namespace Jobs\Dao\Finance;
- use Jobs\Dao\BaseDao;
- class DReceive extends BaseDao
- {
- public function __construct($serviceDB = 'default')
- {
- $this->_table = 'receive_receipt_1_201901';
- $this->_primary = 'id';
- $this->_fields = [
- 'id',//int(11) NOT NULL AUTO_INCREMENT COMMENT '应收单据id',
- 'customerId',//int(11) DEFAULT NULL COMMENT '客户Id',
- 'customerName',//varchar(50) DEFAULT NULL COMMENT '客户名称',
- 'no',//varchar(50) DEFAULT NULL COMMENT '单据编号',
- 'orderId',//int(11) DEFAULT NULL COMMENT '订单id',
- 'sourceNo',//varchar(50) DEFAULT NULL COMMENT '订单号',
- 'createTime',//int(11) DEFAULT NULL COMMENT '创建时间',
- 'updateTime',//int(11) DEFAULT NULL COMMENT '修改时间',
- 'financeTypeId',//int(10) DEFAULT NULL COMMENT '财务类型id',
- 'financeType',//varchar(255) DEFAULT NULL COMMENT '财务类型名称',
- 'discountMoney',//float(10,2) DEFAULT NULL COMMENT '优惠金额',
- 'receiveMoney',//float(10,2) DEFAULT NULL COMMENT '实际应收金额',
- 'shopId',//int(11) DEFAULT NULL COMMENT '商铺Id',
- 'shopName',//varchar(50) DEFAULT NULL COMMENT '商铺名称',
- 'deleteStatus',//tinyint(1) DEFAULT NULL COMMENT '删除状态',
- 'auditStatus',//tinyint(2) DEFAULT NULL COMMENT '单据状态',
- 'receiptType',//tinyint(2) DEFAULT NULL COMMENT '单据类型',
- ];
- $this->_readonly = ['id'];
- $this->_create_autofill = [
- 'createTime' => time()
- ];
- $this->_update_autofill = [
- 'updateTime' => time()
- ];
- parent::__construct($serviceDB);
- }
- }
|