You've already forked guangan
工单
This commit is contained in:
@ -37,6 +37,21 @@ class TicketOuter extends Controller
|
||||
});
|
||||
}
|
||||
|
||||
public function my()
|
||||
{
|
||||
$this->title = '我的工单';
|
||||
$this->user_id = $this->request->session('user')['id'];
|
||||
TicketTicketOuter::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->append(['imgs_arr', 'source_type_name', 'status_text', 'type_name']);
|
||||
$query->where(['current_admin_id' => $this->user_id]);
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* 查看工单
|
||||
* @auth true
|
||||
|
Reference in New Issue
Block a user