作者 ZhengBing He

projectV6

... ... @@ -28,6 +28,7 @@ class AsideTicketController extends BaseController
$lists = Tickets::with([
'logs.engineer',
'project.pm',
'project.projectV6',
])
->when(!empty($validated['engineer_id']), function ($query) use ($validated) {
// 查 gl_tickets 表 submit_user_id 或 gl_ticket_logs 表 engineer_id
... ...
... ... @@ -19,7 +19,7 @@ class TicketProject extends Base
public function projectV6()
{
return $this->hasOne(Project::class, 'id', 'table_id')
->where('version', 6);
->select(['id', 'title', 'company', 'is_upgrade', 'project_type']);
}
// 项目经理
... ...