You've already forked guangan
更改为巡检异常上报
This commit is contained in:
@ -3,6 +3,7 @@
|
||||
namespace plugin\inspection\model;
|
||||
|
||||
use Cassandra\Date;
|
||||
use plugin\ticket\model\TicketInspectionShare;
|
||||
use plugin\ticket\model\TicketTicket;
|
||||
use think\admin\Model;
|
||||
|
||||
@ -73,7 +74,7 @@ class InspectionRecord extends Model
|
||||
|
||||
public function ticket()
|
||||
{
|
||||
return $this->morphMany(TicketTicket::class, 'source');
|
||||
return $this->hasMany(TicketInspectionShare::class, 'record_id', 'id');
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user