29 行
1.6 KiB
PHP
可执行文件
29 行
1.6 KiB
PHP
可执行文件
<?php
|
|
|
|
namespace Distribution\Model;
|
|
|
|
/**
|
|
* 分销商品销售记录表
|
|
* Class SellModel
|
|
* @package Distribution\Model
|
|
*/
|
|
class SellModel extends \Common\Model\BaseModel
|
|
{
|
|
//分销员申请表
|
|
protected $tableName = 'distribution_sell';
|
|
protected $fields = array(
|
|
'id', //int(11) DEFAULT NULL,
|
|
'bill_id', //int(11) DEFAULT '0' COMMENT '订单id',
|
|
'sell_id', //int(11) DEFAULT '0' COMMENT 'retail_sell的id',
|
|
'settled_id', //int(11) DEFAULT '0' COMMENT '分销订单id',
|
|
'dis_goods_id', //int(11) DEFAULT '0' COMMENT '分销商品ID',
|
|
'sell_first_money', //decimal(10,2) DEFAULT '0.00' COMMENT '订单一级佣金',
|
|
'sell_second_money', //decimal(10,2) DEFAULT '0.00' COMMENT '订单二级佣金',
|
|
'first_refund_money', //decimal(10,2) DEFAULT '0.00' COMMENT '一级佣金被退金额',
|
|
'second_refund_money', //decimal(10,2) DEFAULT '0.00' COMMENT '二级佣金被退金额',
|
|
'first_balance_rate', //decimal(10,4) DEFAULT '0.0000' COMMENT '一级佣金比',
|
|
'second_balance_rate', //decimal(10,4) DEFAULT '0.0000' COMMENT '二级佣金比'
|
|
'total_amount', //decimal(10,4) DEFAULT '0.0000' COMMENT '总金额'
|
|
);
|
|
}
|