<?php
/**
 * Created by PhpStorm.
 * User: tandunzhao
 * Date: 2017/12/26
 * Time: 下午5:37
 */

namespace App\Http\Controllers\Manage\Channel\Transformers;


class BusinessCompanyStatTransformer
{
    public function transform($channelItem)
    {
        return [
            'city'=>$channelItem->city,
            'manage_name'=>$channelItem->manage_name,
            'company_name'=>$channelItem->company_name,
            'company_id'=>$channelItem->company_id,
            'fans_gender'=>$channelItem->fans_gender,
            'company_total_charge_amount'=>$channelItem->company_total_charge_amount,
            'company_total_charge_amount_current_month'=>$channelItem->company_total_charge_amount_current_month,
            'business_channel_stats_today_register_user_num'=>(float)$channelItem->business_channel_stats_today_register_user_num,
            'business_channel_stats_yesterday_register_user_num'=>(float)$channelItem->business_channel_stats_yesterday_register_user_num,
            'business_channel_stats_current_month_register_user_num'=>(float)$channelItem->business_channel_stats_current_month_register_user_num,
            'business_channel_stats_last_month_register_user_num'=>(float)$channelItem->business_channel_stats_last_month_register_user_num,
            'business_channel_stats_total_register_user_num'=>(float)$channelItem->business_channel_stats_total_register_user_num,
            'business_channel_stats_total_send_order_num'=>(float)$channelItem->business_channel_stats_total_send_order_num,
            'business_channel_stats_service_account_sum'=>(float)$channelItem->service_account_sum,
            'business_channel_stats_last_week_actual_send_orders_sum'=>(float)$channelItem->last_week_actual_send_orders_sum,
            'business_channel_stats_current_week_actual_send_orders_sum'=>(float)$channelItem->current_week_actual_send_orders_sum,
            'business_channel_stats_yesterday_create_orders_sum'=>(float)$channelItem->yesterday_create_orders_sum,
            'business_channel_stats_last_week_login_day_sum'=>(float)$channelItem->last_week_login_day_sum,
            'business_channel_stats_current_week_login_days_sum'=>(float)$channelItem->current_week_login_days_sum,
            'business_channel_stats_is_yesterday_login'=>$channelItem->is_yesterday_login,
            'last_month_recharge_sum'=> $channelItem->last_month_channel_recharge_sum
        ];
    }

}