Files
guangan/plugs/think-plugs-ticket/src/model/TicketDept.php
2025-03-18 11:50:53 +08:00

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');
}
}