|
|
@@ -4,6 +4,7 @@ namespace App\Http\Controllers\admin;
|
|
|
|
|
|
use App\Constants\HttpStatus;
|
|
|
use App\Http\Controllers\Controller;
|
|
|
+use App\Services\PcIssueService;
|
|
|
use Illuminate\Validation\ValidationException;
|
|
|
use Exception;
|
|
|
use App\Models\PcIssue as PcIssueModel;
|
|
|
@@ -36,6 +37,9 @@ class PcIssue extends Controller
|
|
|
$result['total'] = PcIssueModel::where(PcIssueModel::getWhere($search))->count();
|
|
|
$result['data'] = PcIssueModel::where(PcIssueModel::getWhere($search))
|
|
|
->orderByDesc('id')->forPage($page, $limit)->get();
|
|
|
+
|
|
|
+ $result['rrr'] = PcIssueService::getMatchingNumbers(23);
|
|
|
+
|
|
|
} catch (ValidationException $e) {
|
|
|
return $this->error(HttpStatus::CUSTOM_ERROR, $e->validator->errors()->first());
|
|
|
} catch (Exception $e) {
|