From c933ccd4c3c5e9057894f78bd82ad79ffbd24132 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E4=BC=9F?= <421281095@qq.com> Date: Thu, 20 Feb 2025 11:39:35 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E8=BF=87=E6=BB=A4=E5=8F=82?= =?UTF-8?q?=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- OpenAuth.App/ServiceApp/GoView/GoViewProjectApp.cs | 2 ++ OpenAuth.App/ServiceApp/GoView/Request/GoViewProjectPage.cs | 4 ++++ .../Controllers/ServiceControllers/GoView/GoViewController.cs | 1 + 3 files changed, 7 insertions(+) diff --git a/OpenAuth.App/ServiceApp/GoView/GoViewProjectApp.cs b/OpenAuth.App/ServiceApp/GoView/GoViewProjectApp.cs index dd9cdc0..f0703b5 100644 --- a/OpenAuth.App/ServiceApp/GoView/GoViewProjectApp.cs +++ b/OpenAuth.App/ServiceApp/GoView/GoViewProjectApp.cs @@ -11,6 +11,7 @@ using OpenAuth.App.ServiceApp.GoView.Response; using OpenAuth.Repository; using OpenAuth.Repository.Domain; using OpenAuth.Repository.Domain.GoView; +using Org.BouncyCastle.Ocsp; using SqlSugar; namespace OpenAuth.App.ServiceApp.GoView; @@ -81,6 +82,7 @@ public class GoViewProjectApp : SqlSugarBaseApp { RefAsync total = 0; var list = await Repository.AsQueryable() + .WhereIF(page.state != null,a=>a.State == page.state) .ToPageListAsync(page.page, page.limit, total); return new Response>>() { diff --git a/OpenAuth.App/ServiceApp/GoView/Request/GoViewProjectPage.cs b/OpenAuth.App/ServiceApp/GoView/Request/GoViewProjectPage.cs index fb70a5f..6810357 100644 --- a/OpenAuth.App/ServiceApp/GoView/Request/GoViewProjectPage.cs +++ b/OpenAuth.App/ServiceApp/GoView/Request/GoViewProjectPage.cs @@ -5,4 +5,8 @@ namespace OpenAuth.App.ServiceApp.GoView.Request; public class GoViewProjectPage : PageReq { + /// + /// -1 1 + /// + public int? state { get; set; } } \ No newline at end of file diff --git a/OpenAuth.WebApi/Controllers/ServiceControllers/GoView/GoViewController.cs b/OpenAuth.WebApi/Controllers/ServiceControllers/GoView/GoViewController.cs index 44dade5..57d6b71 100644 --- a/OpenAuth.WebApi/Controllers/ServiceControllers/GoView/GoViewController.cs +++ b/OpenAuth.WebApi/Controllers/ServiceControllers/GoView/GoViewController.cs @@ -69,6 +69,7 @@ public class GoViewProjectController : ControllerBase /// /// 获取项目list集合 /// + /// -1 1 /// /// ///