|
|
@@ -2,80 +2,10 @@
|
|
|
|
|
|
namespace common\models;
|
|
|
|
|
|
-/**
|
|
|
- * This is the model class for table "xhMerchantAsset".
|
|
|
- *
|
|
|
- * @property int $id
|
|
|
- * @property string $balance 余额
|
|
|
- * @property string $freezeBalance 提现时被冻结的余额
|
|
|
- * @property int $totalVisit 总访问量
|
|
|
- * @property int $totalUser 总用户
|
|
|
- * @property int $totalMember 总会员
|
|
|
- * @property int $totalFans 总粉丝
|
|
|
- * @property int $totalWeixinFans 微信公众号里的粉丝数
|
|
|
- * @property int $totalIntegral 总积分
|
|
|
- * @property int $totalPoint 积分
|
|
|
- * @property int $totalGoods 总计商品数量
|
|
|
- * @property string $totalRecharge 累计给用户充值金额
|
|
|
- * @property string $totalUseRecharge 充值消费收入,给用户充值金额已经使用部分
|
|
|
- * @property int $totalOrder 总计订单,线上
|
|
|
- * @property int $totalDeal 总计交易量,包括线上线下
|
|
|
- * @property int $merchantId 商户id
|
|
|
- * @property string $totalIncome 累计收入
|
|
|
- * @property string $totalExpend 累计消费
|
|
|
- * @property string $createTime 创建时间
|
|
|
- * @property string $updateTime
|
|
|
- */
|
|
|
class xhMerchantAsset extends xhBaseModel
|
|
|
{
|
|
|
- /**
|
|
|
- * @inheritdoc
|
|
|
- */
|
|
|
public static function tableName()
|
|
|
{
|
|
|
return 'xhMerchantAsset';
|
|
|
}
|
|
|
-
|
|
|
- /**
|
|
|
- * @inheritdoc
|
|
|
- */
|
|
|
- public function rules()
|
|
|
- {
|
|
|
- return [
|
|
|
- [['balance', 'freezeBalance', 'totalRecharge', 'totalUseRecharge', 'totalIncome', 'totalExpend'], 'number'],
|
|
|
- [['totalVisit', 'totalUser', 'totalMember', 'totalFans', 'totalWeixinFans', 'totalIntegral', 'totalPoint', 'totalGoods', 'totalOrder', 'totalDeal', 'merchantId'], 'integer'],
|
|
|
- [['createTime'], 'required'],
|
|
|
- [['createTime', 'updateTime'], 'safe'],
|
|
|
- [['merchantId'], 'unique'],
|
|
|
- ];
|
|
|
- }
|
|
|
-
|
|
|
- /**
|
|
|
- * @inheritdoc
|
|
|
- */
|
|
|
- public function attributeLabels()
|
|
|
- {
|
|
|
- return [
|
|
|
- 'id' => 'ID',
|
|
|
- 'balance' => 'Balance',
|
|
|
- 'freezeBalance' => 'Freeze Balance',
|
|
|
- 'totalVisit' => 'Total Visit',
|
|
|
- 'totalUser' => 'Total User',
|
|
|
- 'totalMember' => 'Total Member',
|
|
|
- 'totalFans' => 'Total Fans',
|
|
|
- 'totalWeixinFans' => 'Total Weixin Fans',
|
|
|
- 'totalIntegral' => 'Total Integral',
|
|
|
- 'totalPoint' => 'Total Point',
|
|
|
- 'totalGoods' => 'Total Goods',
|
|
|
- 'totalRecharge' => 'Total Recharge',
|
|
|
- 'totalUseRecharge' => 'Total Use Recharge',
|
|
|
- 'totalOrder' => 'Total Order',
|
|
|
- 'totalDeal' => 'Total Deal',
|
|
|
- 'merchantId' => 'Merchant ID',
|
|
|
- 'totalIncome' => 'Total Income',
|
|
|
- 'totalExpend' => 'Total Expend',
|
|
|
- 'createTime' => 'Create Time',
|
|
|
- 'updateTime' => 'Update Time',
|
|
|
- ];
|
|
|
- }
|
|
|
}
|