- 基础环境:Docker 部署配置,源码挂载实时同步 - 修复:super_admin 权限补全、登录重定向循环 - 开发:店铺营销账户账单 - 抖音账户(15字段汇总账单) - 开发:店铺营销账户账单 - 淘系支付宝账户(8字段流水账单) - 开发:店铺营销账户账单 - 拼多多账户(7字段流水账单) - 业务页面导航集成:config/business_navigation.php + Business\Pages 控制器 - 各平台独立表结构和视图,互不影响
57 lines
1.5 KiB
PHP
57 lines
1.5 KiB
PHP
<?php
|
|
|
|
namespace App\Models\Banking;
|
|
|
|
use App\Abstracts\Model;
|
|
|
|
class MarketingAccountBill extends Model
|
|
{
|
|
protected $table = 'marketing_account_bills';
|
|
|
|
protected $fillable = [
|
|
'company_id',
|
|
'platform',
|
|
'store_name',
|
|
'bill_date',
|
|
'total_deposit',
|
|
'total_transfer_in',
|
|
'total_transfer_out',
|
|
'non_grant_consumption',
|
|
'grant_consumption',
|
|
'rebate_redpack_consumption',
|
|
'discount_redpack_consumption',
|
|
'shared_wallet_consumption',
|
|
'shared_grant_consumption',
|
|
'daily_total_amount',
|
|
'period_end_balance',
|
|
'grant_balance',
|
|
'non_grant_balance',
|
|
'notes',
|
|
'created_from',
|
|
'created_by',
|
|
];
|
|
|
|
protected $casts = [
|
|
'bill_date' => 'date',
|
|
'total_deposit' => 'double',
|
|
'total_transfer_in' => 'double',
|
|
'total_transfer_out' => 'double',
|
|
'non_grant_consumption' => 'double',
|
|
'grant_consumption' => 'double',
|
|
'rebate_redpack_consumption' => 'double',
|
|
'discount_redpack_consumption' => 'double',
|
|
'shared_wallet_consumption' => 'double',
|
|
'shared_grant_consumption' => 'double',
|
|
'daily_total_amount' => 'double',
|
|
'period_end_balance' => 'double',
|
|
'grant_balance' => 'double',
|
|
'non_grant_balance' => 'double',
|
|
'deleted_at' => 'datetime',
|
|
];
|
|
|
|
public function scopePlatform($query, string $platform)
|
|
{
|
|
return $query->where('platform', $platform);
|
|
}
|
|
}
|