You've already forked guangan
工单关联内容
This commit is contained in:
24
plugs/think-plugs-ticket/src/model/TicketVerify.php
Normal file
24
plugs/think-plugs-ticket/src/model/TicketVerify.php
Normal file
@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
namespace plugin\ticket\model;
|
||||
|
||||
use plugin\inspection\model\InspectionStaff;
|
||||
use think\admin\Model;
|
||||
|
||||
class TicketVerify extends Model
|
||||
{
|
||||
public function ticket()
|
||||
{
|
||||
return $this->belongsTo(TicketTicket::class, 'ticket_id');
|
||||
}
|
||||
|
||||
public function staff()
|
||||
{
|
||||
return $this->belongsTo(InspectionStaff::class, 'staff_id');
|
||||
}
|
||||
|
||||
public function getImgsArrAttr($value, $data)
|
||||
{
|
||||
return str2arr($data['imgs'] ?: '', '|');
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user