You've already forked guangan
我审核的
This commit is contained in:
@ -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');
|
||||
});
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user