我审核的

This commit is contained in:
2025-03-17 10:32:42 +08:00
parent 825d0df7bf
commit 87aa221719
2 changed files with 119 additions and 0 deletions

View File

@ -348,4 +348,19 @@ class Ticket extends Controller
}
$this->success('审核成功!');
}
public function my() {
$this->title = '待我审核';
$this->type_list = TicketType::getList();
$this->user_id = $this->request->session('user')['id'];
TicketTicket::mQuery()->layTable(function () {
}, function (QueryHelper $query) {
$query->like(['title|content|contact_name|ticket_address|contact_phone#keyword'])
->dateBetween(['create_at'])
->equal(['status', 'type_id']);
$query->whereIn("id", ApprovalStep::query()->where(['approver_id' => $this->user_id, 'status' => 0, 'approver_type' => 1, 'instance.status' => 0]))
->append(['imgs_arr', 'source_type_name', 'status_text', 'type_name', 'last_reply'])->with('approval');
});
}
}