bourse stock

25 lines
552 B

3 months ago
<?php
namespace app\model;
class UserStockFundInterestReceiptModel extends BaseModel
{
protected $name = 'user_stock_fund_interest_receipt';
protected $pk = 'id';
const STATUS_ONE = 1; // 待返息
const STATUS_TWO = 2; // 已结束
public static $statusList = [
self::STATUS_ONE => '待返息',
self::STATUS_TWO => '已结束',
];
public function getStatusTextAttr($value, $data)
{
$status = UserStockFundInterestReceiptModel::$statusList[$data['status']];
return $status;
}
}