验收工单

This commit is contained in:
2025-03-27 14:56:55 +08:00
parent f63d2e0353
commit 935351d4fc

View File

@ -3,14 +3,16 @@
namespace plugin\inspection\controller\api\auth;
use plugin\inspection\controller\api\Auth;
use plugin\ticket\model\TicketVerify as Model;
use plugin\ticket\model\ApprovalInstance as Model;
//use plugin\ticket\model\TicketVerify as Model;
class TicketVerify extends Auth
{
public function list()
{
$query = Model::query()->with(['ticket'])->where(['staff_id'=>$this->staff->id]);
$query = Model::query()->where("type", '=', "YSSH")->with(['ticket'])
->whereIn("ticket_id", \plugin\ticket\model\TicketRepair::query()->where('staff_id', '=', $this->staff->id)->column('ticket_id'));
$query->order('create_at', 'desc');
$status = $this->request->get('status/i', null);
if (is_numeric($status)) {