From a71338cd4c927667fa34680c752d1fff54fef57e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=BD=87=E9=98=B3=20=E9=82=B9?= Date: Tue, 5 Dec 2023 16:21:16 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=96=B9=E6=B3=95=E8=8E=B7?= =?UTF-8?q?=E5=8F=96=E6=89=80=E6=9C=89=E7=9A=84=E5=BE=8B=E5=B8=88=E4=BF=A1?= =?UTF-8?q?=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Controllers/TwentySystemController.cs | 22 +++++++++++++++++++ WebApplication1/Program.cs | 6 ++--- 2 files changed, 25 insertions(+), 3 deletions(-) diff --git a/WebApplication1/Controllers/TwentySystemController.cs b/WebApplication1/Controllers/TwentySystemController.cs index 97754a0..7f28f2a 100644 --- a/WebApplication1/Controllers/TwentySystemController.cs +++ b/WebApplication1/Controllers/TwentySystemController.cs @@ -567,6 +567,28 @@ namespace WebApplication1.Controllers } return SqrDto; } + [HttpGet] + public async Task> GetAllLsList() + { + ResultDataDto result = new ResultDataDto(); + ///申请人信息 + var findSqrxx = new + { + gjz = "", + pageNum = 0, + pageSize = 200000 + }; + var sqrrequest = await httpClient.PostAsJsonAsync("/bhdl-service/api/bhdlDj/findSqrxx", findSqrxx); + var sqrRuslt = await sqrrequest.EnsureSuccessStatusCode().Content.ReadAsStringAsync(); + var SqrDto = JsonConvert.DeserializeObject>(sqrRuslt); + if (SqrDto.success == false && SqrDto.code != "0" && SqrDto.data.content.Count == 0) + { + result.success = false; + result.message = "律师数据不存在"; + return result; + } + return SqrDto; + } /// /// 登记 diff --git a/WebApplication1/Program.cs b/WebApplication1/Program.cs index 64b30ad..e1f75d7 100644 --- a/WebApplication1/Program.cs +++ b/WebApplication1/Program.cs @@ -14,10 +14,10 @@ var app = builder.Build(); // Configure the HTTP request pipeline. if (app.Environment.IsDevelopment()) { - app.UseSwagger(); - app.UseSwaggerUI(); -} +} +app.UseSwagger(); +app.UseSwaggerUI(); app.UseAuthorization();