|
@@ -259,4 +259,25 @@ class TicketController extends BaseController |
|
@@ -259,4 +259,25 @@ class TicketController extends BaseController |
|
259
|
}
|
259
|
}
|
|
260
|
$this->response('success',Code::SUCCESS,$data);
|
260
|
$this->response('success',Code::SUCCESS,$data);
|
|
261
|
}
|
261
|
}
|
|
|
|
262
|
+
|
|
|
|
263
|
+ /**
|
|
|
|
264
|
+ * @remark :获取项目uuid
|
|
|
|
265
|
+ * @name :getProjectUuid
|
|
|
|
266
|
+ * @author :lyh
|
|
|
|
267
|
+ * @method :post
|
|
|
|
268
|
+ * @time :2025/11/19 11:35
|
|
|
|
269
|
+ */
|
|
|
|
270
|
+ public function getProjectUuid()
|
|
|
|
271
|
+ {
|
|
|
|
272
|
+ $this->request->validate([
|
|
|
|
273
|
+ 'table_id'=>'required',
|
|
|
|
274
|
+ 'project_cate'=>'required'
|
|
|
|
275
|
+ ],[
|
|
|
|
276
|
+ 'table_id.required' => '项目ID不能为空',
|
|
|
|
277
|
+ 'project_cate.required' => '项目类型不能为空'
|
|
|
|
278
|
+ ]);
|
|
|
|
279
|
+ $ticketProjectModel = new TicketProject();
|
|
|
|
280
|
+ $uuid = $ticketProjectModel->getValue(['table_id'=>$this->param['table_id'],'project_cate'=>$this->param['project_cate']],'uuid');
|
|
|
|
281
|
+ $this->response('success',Code::SUCCESS,['project_id'=>$uuid]);
|
|
|
|
282
|
+ }
|
|
262
|
} |
283
|
} |