|
|
@@ -39,6 +39,29 @@ class Issue extends Controller
|
|
|
return $this->success($result);
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * @description: 异常分页数据
|
|
|
+ * @return {*}
|
|
|
+ */
|
|
|
+ function abnormal()
|
|
|
+ {
|
|
|
+ try {
|
|
|
+ request()->validate([
|
|
|
+ 'issue_no' => ['nullable', 'string'],
|
|
|
+ 'id' => ['nullable', 'string'],
|
|
|
+ 'status' => ['nullable', 'string'],
|
|
|
+ ]);
|
|
|
+ $search = request()->all();
|
|
|
+ $search['abnormal'] = 1;
|
|
|
+ $result = IssueService::paginate($search);
|
|
|
+ } catch (ValidationException $e) {
|
|
|
+ return $this->error(HttpStatus::VALIDATION_FAILED, $e->validator->errors()->first());
|
|
|
+ } catch (Exception $e) {
|
|
|
+ return $this->error(intval($e->getCode()));
|
|
|
+ }
|
|
|
+ return $this->success($result);
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* @description: 修改|新增
|
|
|
* @return {*}
|