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.
31 lines
586 B
31 lines
586 B
|
3 months ago
|
<?php
|
||
|
|
|
||
|
|
namespace App\Models;
|
||
|
|
|
||
|
|
class StockCompany extends SoftDeletesModel
|
||
|
|
{
|
||
|
|
protected $fillable = [
|
||
|
|
'admin_id',
|
||
|
|
'department_id',
|
||
|
|
'company_name',
|
||
|
|
'stock_date',
|
||
|
|
'enrollment_date',
|
||
|
|
'is_after_enrollment',
|
||
|
|
];
|
||
|
|
|
||
|
|
protected $appends = ['is_after_enrollment_text'];
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 获取是否入学后上市的文本
|
||
|
|
*/
|
||
|
|
public function getIsAfterEnrollmentTextAttribute()
|
||
|
|
{
|
||
|
|
$array = [
|
||
|
|
0 => '否',
|
||
|
|
1 => '是',
|
||
|
|
];
|
||
|
|
return $array[$this->is_after_enrollment] ?? '否';
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|