$fualtList = Fault::with(['business','notices'=>function($query){
$query->order('id desc')->has('notices', '<', 3);
}])
->where('fault.status' ,'=', '0')
->select();
method not exist:app\crontab\model\Notice->has[D:\wamp\www\ServerMonitor\thinkphp\library\think\db\Query.php:180]