You've already forked guangan
工单分类
This commit is contained in:
@ -0,0 +1,22 @@
|
||||
<?php
|
||||
|
||||
namespace plugin\inspection\controller\api\auth;
|
||||
|
||||
use plugin\inspection\controller\api\Auth;
|
||||
use plugin\ticket\model\TicketView as Model;
|
||||
|
||||
class TicketView extends Auth
|
||||
{
|
||||
|
||||
public function list()
|
||||
{
|
||||
$query = Model::query()->scope(['notFinish'])->with(['ticket'])->where(['staff_id'=>$this->staff->id]);
|
||||
$keyword = $this->request->get('keyword', null);
|
||||
if ($keyword) {
|
||||
$query->where('title', 'like', "%{$keyword}%");
|
||||
}
|
||||
$pageData = $query->paginate();
|
||||
$this->success('获取工单列表', $pageData);
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user