bourse stock
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.

24 lines
552 B

<?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;
}
}