You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
<?php
declare (strict_types=1);namespace App\Model;
/** */class FinancialRecord extends Model{ /** * 当面付商户首单奖励限制的订单金额 */ const OFL_FIRST_AWARD_LIMIT_AMOUNT = 3;
/** * 虚拟账户 */ const ACCOUNT_LEDGER = -1;
/** * 账户类型 * * 总账 * USER_TYPE_LEDGER / -1 * * 用户/商户账户 * USER_TYPE_USER / 1 * * MP用户账户,服务商、市场经理、服务站点等 * USER_TYPE_MP / 2 */ const USER_TYPE_LEDGER = -1; const USER_TYPE_USER = 1; const USER_TYPE_MP = 2;
/** * 关联类型 * * 订单 * SOURCE_TYPE_ORDER / 1 */ const SOURCE_TYPE_ORDER = 1;
/** * 流水类型,大的分类,<=50是奖励,>50是分账 * * MONEY_TYPE_PLAT_NEW_USER * 社区服务点新用户奖励(线上订单完成) / 1 * * MONEY_TYPE_FIRST_ORDER * 社区服务点新用户线上首单奖励(线上订单完成) / 2 * * MONEY_TYPE_OL_ORDER * 社区服务点用户线上订单分账(线上订单完成) / 51 */ const MONEY_TYPE_PLAT_NEW_USER = 1; const MONEY_TYPE_FIRST_ORDER = 2; const MONEY_TYPE_OL_ORDER = 3; const MONEY_TYPE_STORE_PLAT_NEW_USER = 4; const MONEY_TYPE_STORE_FIRST_ORDER = 5; const MONEY_TYPE_USER_OFL_ORDER = 100; const MONEY_TYPE_USER_OL_ORDER = 101;
/** * 状态 */ const STATUS_NORMAL = 1; const STATUS_ABNORMAL = 2;
/** * The table associated with the model. * * @var string */ protected $table = 'lanzu_financial_record'; /** * The attributes that are mass assignable. * * @var array */ protected $fillable = [ 'user_id', 'user_type', 'money', 'money_type', 'source_id', 'source_type', 'desc', 'comment', 'status', ]; /** * The attributes that should be cast to native types. * * @var array */ protected $casts = [];}
|