You've already forked guangan
19 lines
335 B
PHP
19 lines
335 B
PHP
<?php
|
|
|
|
namespace plugin\ticket\model;
|
|
|
|
use think\admin\Model;
|
|
use think\admin\model\SystemUser;
|
|
|
|
class TicketDept extends Model
|
|
{
|
|
public function scopeAvail($query)
|
|
{
|
|
$query->where('status', '=', 1);
|
|
}
|
|
|
|
public function fz_user()
|
|
{
|
|
return $this->hasOne(SystemUser::class, 'id', 'fz_user_id');
|
|
}
|
|
} |