Browse Source

Merge branch 'develop' of http://18t7i08736.yicp.fun:10018/Coder/24Hour.Service into develop

develop
胡超1 2 years ago
parent
commit
0df44a93c6
  1. 6
      24Hour.sln
  2. 95
      Dto/AjgldsrxxDto.cs
  3. 12
      Dto/Class1.cs
  4. 9
      Dto/Dto.csproj
  5. 50
      Dto/FileResultDto.cs
  6. 55
      Dto/FindBhdlGzblDto.cs
  7. 71
      Dto/RegisterDto.cs
  8. 47
      Dto/SaveBhdlclxxDto.cs
  9. 35
      Dto/UploadDto.cs
  10. 21
      Dto/UploadImageDto.cs
  11. 23
      Dto/bin/Debug/net6.0/Dto.deps.json
  12. 4
      Dto/obj/Debug/net6.0/.NETCoreApp,Version=v6.0.AssemblyAttributes.cs
  13. 23
      Dto/obj/Debug/net6.0/Dto.AssemblyInfo.cs
  14. 1
      Dto/obj/Debug/net6.0/Dto.AssemblyInfoInputs.cache
  15. 11
      Dto/obj/Debug/net6.0/Dto.GeneratedMSBuildEditorConfig.editorconfig
  16. 8
      Dto/obj/Debug/net6.0/Dto.GlobalUsings.g.cs
  17. BIN
      Dto/obj/Debug/net6.0/Dto.assets.cache
  18. BIN
      Dto/obj/Debug/net6.0/Dto.csproj.AssemblyReference.cache
  19. 1
      Dto/obj/Debug/net6.0/Dto.csproj.CoreCompileInputs.cache
  20. 64
      Dto/obj/Dto.csproj.nuget.dgspec.json
  21. 15
      Dto/obj/Dto.csproj.nuget.g.props
  22. 2
      Dto/obj/Dto.csproj.nuget.g.targets
  23. 69
      Dto/obj/project.assets.json
  24. 8
      Dto/obj/project.nuget.cache
  25. 301
      WebApplication1/Controllers/TwentySystemController.cs
  26. 6
      WebApplication1/Models/ResultDto.cs
  27. 4
      WebApplication1/WebApplication1.csproj
  28. 2
      WebApplication1/WebApplication1.csproj.user
  29. 2
      WebApplication1/obj/Debug/net6.0/WebApplication1.csproj.CoreCompileInputs.cache

6
24Hour.sln

@ -13,6 +13,8 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Elight.Utility", "Elight.Ut
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "WebApplication1", "WebApplication1\WebApplication1.csproj", "{BB831806-197B-4508-9AD5-5D3EDB7FCA27}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Dto", "Dto\Dto.csproj", "{995583AC-3F9C-46F3-8B9F-4CE62B01044A}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
@ -39,6 +41,10 @@ Global
{BB831806-197B-4508-9AD5-5D3EDB7FCA27}.Debug|Any CPU.Build.0 = Debug|Any CPU
{BB831806-197B-4508-9AD5-5D3EDB7FCA27}.Release|Any CPU.ActiveCfg = Release|Any CPU
{BB831806-197B-4508-9AD5-5D3EDB7FCA27}.Release|Any CPU.Build.0 = Release|Any CPU
{995583AC-3F9C-46F3-8B9F-4CE62B01044A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{995583AC-3F9C-46F3-8B9F-4CE62B01044A}.Debug|Any CPU.Build.0 = Debug|Any CPU
{995583AC-3F9C-46F3-8B9F-4CE62B01044A}.Release|Any CPU.ActiveCfg = Release|Any CPU
{995583AC-3F9C-46F3-8B9F-4CE62B01044A}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE

95
Dto/AjgldsrxxDto.cs

@ -0,0 +1,95 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Dto
{
public class AjgldsrxxDto
{
public int endRow { get; set; }
public int firstPage { get; set; }
public bool hasNextPage { get; set; }
public bool isFirstPage { get; set; }
public bool isLastPage { get; set; }
public int lastPage { get; set; }
public List<AjglBaseDto> list { get; set; }
public int navigateFirstPage { get; set; }
public int navigateLastPage { get; set; }
public int navigatePages { get; set; }
public List<int> navigatepageNums { get; set; }
public int nextPage { get; set; }
public int pageNum { get; set; }
public int pageSize { get; set; }
public int pages { get; set; }
public int prePage { get; set; }
public int size { get; set; }
public int startRow { get; set; }
public int total { get; set; }
}
public class AjglBaseDto
{
/// <summary>
/// 部门受案号
/// </summary>
public string bmsah { get; set; }
/// <summary>
/// 国籍代码
/// </summary>
public string gjdm { get; set; }
/// <summary>
/// 国籍名称
/// </summary>
public string gjmc { get; set; }
/// <summary>
/// 民族代码
/// </summary>
public string mzdm { get; set; }
/// <summary>
/// 民族名称
/// </summary>
public string mzmc { get; set; }
/// <summary>
/// 性别代码
/// </summary>
public string xbdm { get; set; }
/// <summary>
/// / 性别
/// </summary>
public string xbmc { get; set; }
/// <summary>
/// 姓名
/// </summary>
public string xm { get; set; }
/// <summary>
/// 证件号码
/// </summary>
public string zjhm { get; set; }
/// <summary>
/// 证件类型代码
/// </summary>
public string zjlxdm { get; set; }
/// <summary>
/// 证件类型
/// </summary>
public string zjlxmc { get; set; }
/// <summary>
///
/// </summary>
public string zrrbm { get; set; }
/// <summary>
/// 当事人类型代码
/// </summary>
public string zrrlxdm { get; set; }
/// <summary>
/// 当事人类型
/// </summary>
public string zrrlxmc { get; set; }
}
}

12
Dto/Class1.cs

@ -0,0 +1,12 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Dto
{
internal class Class1
{
}
}

9
Dto/Dto.csproj

@ -0,0 +1,9 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
</Project>

50
Dto/FileResultDto.cs

@ -0,0 +1,50 @@
namespace Dto
{
public class FileResultDto
{
public string code { get; set; }
public string message { get; set; }
public bool? success { get; set; }
public FileResultBaseDto data { get; set; }
}
public class FileResultBaseDto
{
public string dir { get; set; }
public string name { get; set; }
public int size { get; set; }
public object storageDeleteResult { get; set; }
public StorageResultDto storageResult { get; set; }
}
public class StorageResultDto
{
public object length { get; set; }
public string md5 { get; set; }
public bool success { get; set; }
}
}

55
Dto/FindBhdlGzblDto.cs

@ -0,0 +1,55 @@
namespace Dto
{
public class FindBhdlGzblDto
{
public string ajmc { get; set; }
/// <summary>
/// 必要参数
/// </summary>
public string bhdlbh { get; set; }
public string bmsah { get; set; }
public string cbbmbm { get; set; }
public string cbbmmc { get; set; }
public string cbdwbm { get; set; }
public string cbdwmc { get; set; }
public string cbjcgbm { get; set; }
public string cbjcgmc { get; set; }
public string clqkbm { get; set; }
public string dsr { get; set; }
public string sfkcz { get; set; }
public string sqrbh { get; set; }
public string sqrq { get; set; }
public string sqrxm { get; set; }
public string sxbh { get; set; }
public string sxlsbh { get; set; }
public string sxlxdm { get; set; }
public string sxlxmc { get; set; }
public int? sxqx { get; set; }
public int? syrq { get; set; }
public string zjhm { get; set; }
public string zt { get; set; }
}
public class ResultGzbl
{
public bool? success { get; set; }
public string message { get; set; }
public string code { get; set; }
public GzblDto data { get; set; }
}
public class GzblDto
{
public int total { get; set; }
public List<FindBhdlGzblDto> coumment { get; set; }
}
}

71
Dto/RegisterDto.cs

@ -0,0 +1,71 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Dto
{
public class RegisterDto
{
/// <summary>
/// 部门受案号
/// </summary>
public string Bmsah { get; set; }
/// <summary>
/// 单位编码
/// </summary>
public string UnitCode { get; set; }
/// <summary>
/// 单位编码
/// </summary>
public string UnitName { get; set; }
/// <summary>
/// 当事人身份证
/// </summary>
public string PartyIdCard { get; set; }
/// <summary>
/// 当事人-委托人
/// </summary>
public int PartyConsignor { get; set; }
/// <summary>
/// 当事人-委托人关系
/// </summary>
public int PartyPrincipalRelationship { get; set; }
/// <summary>
/// 申请人-身份证
/// </summary>
public string ProposerIdCard { get; set; }
/// <summary>
/// 申请人类型
/// </summary>
public string ProposerType { get; set; }
/// <summary>
/// 申请人-联系电话
/// </summary>
public string ProposerTel { get; set; }
/// <summary>
/// 律师事务所统一社会信用代码
/// </summary>
public string ProposerSCC { get; set; }
}
}

47
Dto/SaveBhdlclxxDto.cs

@ -0,0 +1,47 @@
namespace Dto
{
public class SaveBhdlclxxDto
{
public List<BhdlClxxInputDTOList> bhdlClxxInputDTOList { get; set; }
public string bhdlbh { get; set; }
public string bmsah { get; set; }
public string cllxdm { get; set; }
public string cllxmc { get; set; }
public string dwbm { get; set; }
public string dwmc { get; set; }
public string sxbh { get; set; }
}
public class BhdlClxxInputDTOList
{
public string clbh { get; set; }
public string fwqwjmc { get; set; }
public string md5 { get; set; }
public string wjkzm { get; set; }
public string wjlj { get; set; }
public string wjmc { get; set; }
public int wjzjs { get; set; }
}
}

35
Dto/UploadDto.cs

@ -0,0 +1,35 @@
namespace Dto
{
public class UploadDto
{
/// <summary>
/// 部门受案号
/// </summary>
public string Bmsah { get; set; }
/// <summary>
/// base64字符串
/// </summary>
public string ImageStr { get; set; }
/// <summary>
/// 1423000000100-律师执业证书,1423000000200-律师事务所证, 1423000000300- 授权委托书, 1423000000400- 法律援助公函,1423000000500-身份证件 ,1423000000600-关系证明材料, 1423000000700- 其他
/// </summary>
public string Code { get; set; }
/// <summary>
/// 文件名称
/// </summary>
public string FileName { get; set; }
/// <summary>
/// 单位编码
/// </summary>
public string UnitCode { get; set; }
/// <summary>
/// 单位名称
/// </summary>
public string UnitName { get; set; }
}
}

21
Dto/UploadImageDto.cs

@ -0,0 +1,21 @@
namespace Dto
{
public class UploadImageDto
{
/// <summary>
/// 0
/// </summary>
public int blzt { get; set; }
public string dwbm { get; set; } // 410503,
public string bmsah { get; set; }
public string ajmc { get; set; }
public string zrrxm { get; set; }
public string sqrxm { get; set; }
public string gjz { get; set; }
public string sxlxdm { get; set; }
public object ksrq { get; set; }
public object jsrq { get; set; }
public int pageNum { get; set; }
public int pageSize { get; set; }
}
}

23
Dto/bin/Debug/net6.0/Dto.deps.json

@ -0,0 +1,23 @@
{
"runtimeTarget": {
"name": ".NETCoreApp,Version=v6.0",
"signature": ""
},
"compilationOptions": {},
"targets": {
".NETCoreApp,Version=v6.0": {
"Dto/1.0.0": {
"runtime": {
"Dto.dll": {}
}
}
}
},
"libraries": {
"Dto/1.0.0": {
"type": "project",
"serviceable": false,
"sha512": ""
}
}
}

4
Dto/obj/Debug/net6.0/.NETCoreApp,Version=v6.0.AssemblyAttributes.cs

@ -0,0 +1,4 @@
// <autogenerated />
using System;
using System.Reflection;
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v6.0", FrameworkDisplayName = ".NET 6.0")]

23
Dto/obj/Debug/net6.0/Dto.AssemblyInfo.cs

@ -0,0 +1,23 @@
//------------------------------------------------------------------------------
// <auto-generated>
// 此代码由工具生成。
// 运行时版本:4.0.30319.42000
//
// 对此文件的更改可能会导致不正确的行为,并且如果
// 重新生成代码,这些更改将会丢失。
// </auto-generated>
//------------------------------------------------------------------------------
using System;
using System.Reflection;
[assembly: System.Reflection.AssemblyCompanyAttribute("Dto")]
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")]
[assembly: System.Reflection.AssemblyProductAttribute("Dto")]
[assembly: System.Reflection.AssemblyTitleAttribute("Dto")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
// 由 MSBuild WriteCodeFragment 类生成。

1
Dto/obj/Debug/net6.0/Dto.AssemblyInfoInputs.cache

@ -0,0 +1 @@
24467ac260176f765658abbc64d2580ba42c4bc0

11
Dto/obj/Debug/net6.0/Dto.GeneratedMSBuildEditorConfig.editorconfig

@ -0,0 +1,11 @@
is_global = true
build_property.TargetFramework = net6.0
build_property.TargetPlatformMinVersion =
build_property.UsingMicrosoftNETSdkWeb =
build_property.ProjectTypeGuids =
build_property.InvariantGlobalization =
build_property.PlatformNeutralAssembly =
build_property.EnforceExtendedAnalyzerRules =
build_property._SupportedPlatformList = Linux,macOS,Windows
build_property.RootNamespace = Dto
build_property.ProjectDir = C:\core\24Hour.Service\Dto\

8
Dto/obj/Debug/net6.0/Dto.GlobalUsings.g.cs

@ -0,0 +1,8 @@
// <auto-generated/>
global using global::System;
global using global::System.Collections.Generic;
global using global::System.IO;
global using global::System.Linq;
global using global::System.Net.Http;
global using global::System.Threading;
global using global::System.Threading.Tasks;

BIN
Dto/obj/Debug/net6.0/Dto.assets.cache

Binary file not shown.

BIN
Dto/obj/Debug/net6.0/Dto.csproj.AssemblyReference.cache

Binary file not shown.

1
Dto/obj/Debug/net6.0/Dto.csproj.CoreCompileInputs.cache

@ -0,0 +1 @@
ccca575b8362d1b2377ddd7db4c9085ea077e8d3

64
Dto/obj/Dto.csproj.nuget.dgspec.json

@ -0,0 +1,64 @@
{
"format": 1,
"restore": {
"C:\\core\\24Hour.Service\\Dto\\Dto.csproj": {}
},
"projects": {
"C:\\core\\24Hour.Service\\Dto\\Dto.csproj": {
"version": "1.0.0",
"restore": {
"projectUniqueName": "C:\\core\\24Hour.Service\\Dto\\Dto.csproj",
"projectName": "Dto",
"projectPath": "C:\\core\\24Hour.Service\\Dto\\Dto.csproj",
"packagesPath": "C:\\Users\\Administrator\\.nuget\\packages\\",
"outputPath": "C:\\core\\24Hour.Service\\Dto\\obj\\",
"projectStyle": "PackageReference",
"configFilePaths": [
"C:\\Users\\Administrator\\AppData\\Roaming\\NuGet\\NuGet.Config",
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config"
],
"originalTargetFrameworks": [
"net6.0"
],
"sources": {
"C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
"C:\\游戏文件夹\\Dll": {},
"https://api.nuget.org/v3/index.json": {}
},
"frameworks": {
"net6.0": {
"targetAlias": "net6.0",
"projectReferences": {}
}
},
"warningProperties": {
"warnAsError": [
"NU1605"
]
}
},
"frameworks": {
"net6.0": {
"targetAlias": "net6.0",
"imports": [
"net461",
"net462",
"net47",
"net471",
"net472",
"net48",
"net481"
],
"assetTargetFallback": true,
"warn": true,
"frameworkReferences": {
"Microsoft.NETCore.App": {
"privateAssets": "all"
}
},
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\7.0.306\\RuntimeIdentifierGraph.json"
}
}
}
}
}

15
Dto/obj/Dto.csproj.nuget.g.props

@ -0,0 +1,15 @@
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
<RestoreSuccess Condition=" '$(RestoreSuccess)' == '' ">True</RestoreSuccess>
<RestoreTool Condition=" '$(RestoreTool)' == '' ">NuGet</RestoreTool>
<ProjectAssetsFile Condition=" '$(ProjectAssetsFile)' == '' ">$(MSBuildThisFileDirectory)project.assets.json</ProjectAssetsFile>
<NuGetPackageRoot Condition=" '$(NuGetPackageRoot)' == '' ">$(UserProfile)\.nuget\packages\</NuGetPackageRoot>
<NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">C:\Users\Administrator\.nuget\packages\</NuGetPackageFolders>
<NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle>
<NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">6.6.0</NuGetToolVersion>
</PropertyGroup>
<ItemGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
<SourceRoot Include="C:\Users\Administrator\.nuget\packages\" />
</ItemGroup>
</Project>

2
Dto/obj/Dto.csproj.nuget.g.targets

@ -0,0 +1,2 @@
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" />

69
Dto/obj/project.assets.json

@ -0,0 +1,69 @@
{
"version": 3,
"targets": {
"net6.0": {}
},
"libraries": {},
"projectFileDependencyGroups": {
"net6.0": []
},
"packageFolders": {
"C:\\Users\\Administrator\\.nuget\\packages\\": {}
},
"project": {
"version": "1.0.0",
"restore": {
"projectUniqueName": "C:\\core\\24Hour.Service\\Dto\\Dto.csproj",
"projectName": "Dto",
"projectPath": "C:\\core\\24Hour.Service\\Dto\\Dto.csproj",
"packagesPath": "C:\\Users\\Administrator\\.nuget\\packages\\",
"outputPath": "C:\\core\\24Hour.Service\\Dto\\obj\\",
"projectStyle": "PackageReference",
"configFilePaths": [
"C:\\Users\\Administrator\\AppData\\Roaming\\NuGet\\NuGet.Config",
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config"
],
"originalTargetFrameworks": [
"net6.0"
],
"sources": {
"C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
"C:\\游戏文件夹\\Dll": {},
"https://api.nuget.org/v3/index.json": {}
},
"frameworks": {
"net6.0": {
"targetAlias": "net6.0",
"projectReferences": {}
}
},
"warningProperties": {
"warnAsError": [
"NU1605"
]
}
},
"frameworks": {
"net6.0": {
"targetAlias": "net6.0",
"imports": [
"net461",
"net462",
"net47",
"net471",
"net472",
"net48",
"net481"
],
"assetTargetFallback": true,
"warn": true,
"frameworkReferences": {
"Microsoft.NETCore.App": {
"privateAssets": "all"
}
},
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\7.0.306\\RuntimeIdentifierGraph.json"
}
}
}
}

8
Dto/obj/project.nuget.cache

@ -0,0 +1,8 @@
{
"version": 2,
"dgSpecHash": "aBP4DpXaMgoARxZa7jC+2/OpB8f0apQvutUjpKvCZq5BqhIvN/WzLcvuunyUhHgo503i8NiV6jJvit7a9mkSCQ==",
"success": true,
"projectFilePath": "C:\\core\\24Hour.Service\\Dto\\Dto.csproj",
"expectedPackageFiles": [],
"logs": []
}

301
WebApplication1/Controllers/TwentySystemController.cs

@ -1,9 +1,19 @@
using Dto;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.ModelBinding;
using Microsoft.AspNetCore.Mvc.ViewFeatures;
using Microsoft.Win32;
using Newtonsoft.Json;
using System.Collections.Specialized;
using System.Data;
using System.Dynamic;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Reflection.Metadata;
using System.Runtime;
using System.Runtime.Serialization;
using System.Text;
using System.Web;
using test;
using WebApplication1.Models;
@ -21,7 +31,7 @@ namespace WebApplication1.Controllers
ip = configuration.GetSection("Configs:SystemIp").Value;
port = configuration.GetSection("Configs:Port").Value;
httpClient = httpClientFactory.CreateClient();
httpClient.BaseAddress = new Uri($"http://{ip}:{port}");
httpClient.BaseAddress = new Uri("http://143.120.5.116:8080"); // new Uri($"http://{ip}:{port}");
httpClient.DefaultRequestHeaders.Add("Accept", "application/json");
httpClient.DefaultRequestHeaders.Add("User-Agent", "HttpClientFactory-Sample");
httpClient.DefaultRequestHeaders.ConnectionClose = true;
@ -299,8 +309,297 @@ namespace WebApplication1.Controllers
}
/// <summary>
/// 申请人资格资料
/// </summary>
/// <returns></returns>
[HttpPost("UploadImage")]
public async Task<Result> UploadImage([FromBody] UploadDto dto)
{
// var client = new HttpClient();
Result result = new Result();
if (dto == null)
{
result.IsSucceed = false;
result.Message = "接收数据失败";
return result;
}
if (string.IsNullOrEmpty(dto.Code) || dto.Code == "0")
{
result.IsSucceed = false;
result.Message = "类型编码不能为空";
return result;
}
if (string.IsNullOrEmpty(dto.ImageStr) || dto.ImageStr == "0")
{
result.IsSucceed = false;
result.Message = "base64图片不能为空";
return result;
}
if (string.IsNullOrEmpty(dto.Bmsah) || dto.Bmsah == "0")
{
result.IsSucceed = false;
result.Message = "部门受案号不能为空";
return result;
}
if (string.IsNullOrEmpty(dto.UnitCode) || dto.UnitCode == "0")
{
result.IsSucceed = false;
result.Message = "单位编码不能为空";
return result;
}
if (string.IsNullOrEmpty(dto.FileName) || dto.FileName == "0")
{
result.IsSucceed = false;
result.Message = "文件名称不能为空";
return result;
}
if (string.IsNullOrEmpty(dto.UnitName) || dto.UnitName == "0")
{
result.IsSucceed = false;
result.Message = "单位名称不能为空";
return result;
}
UploadImageDto uploadImageDto = new UploadImageDto()
{
pageSize = 10,
pageNum = 1,
blzt = 0,
dwbm = "410503",
bmsah = dto.Bmsah,
ajmc = "",
gjz = "",
jsrq = null,
ksrq = null,
sqrxm = "",
sxlxdm = "",
zrrxm = "",
};
// 事项跟踪信息
var request = await httpClient.PostAsJsonAsync("/bhdl-service/api/bhdlGl/findBhdlGzbl", uploadImageDto);
var findBhdlGzbl = await request.EnsureSuccessStatusCode().Content.ReadAsStringAsync();
var resultGzbl = JsonConvert.DeserializeObject<ResultGzbl>(findBhdlGzbl);
if (resultGzbl.success == false && resultGzbl.code != "0")
{
result.IsSucceed = false;
result.Message = "数据不存在";
return result;
}
if (resultGzbl.data != null && resultGzbl.data.coumment != null && resultGzbl.data.coumment.Count > 0)
{
foreach (var item in resultGzbl.data.coumment)
{
//文件名称
string fileName = dto.FileName.Split('.')[0];
//后缀
string suffix = dto.FileName.Split('.')[1];
string id = Guid.NewGuid().ToString().Replace("-", null);
//重要参数
//item.bhdlbh
string dir = "yxsj/" + dto.UnitCode + "/bhdl-service/cl/" + dto.Bmsah + "/" + item.bhdlbh;
///解码
// var base64Iamge = HttpUtility.UrlDecode(dto.ImageStr);
byte[] DocBytes = Convert.FromBase64String(dto.ImageStr);
var memoryStream = new MemoryStream(DocBytes);
System.IO.File.WriteAllBytes(id + "." + suffix, DocBytes);
var content = new MultipartFormDataContent();
var fileContent = new StreamContent(memoryStream);
content.Add(fileContent, "file", id + "." + suffix);
content.Add(new StringContent(dir), "dir");
content.Add(new StringContent(id + "." + suffix), "name");
content.Add(new StringContent("true"), "overrideOnExists");
var responses = await httpClient.PostAsync("/wjfw-service/raw/file/save", content);
var sresponse = await responses.Content.ReadAsStringAsync();
if (!string.IsNullOrEmpty(sresponse))
{
var fileResultDto = JsonConvert.DeserializeObject<FileResultDto>(sresponse);
if (fileResultDto.success == true && fileResultDto.code == "0")
{
SaveBhdlclxxDto saveBhdlclxxDto = new SaveBhdlclxxDto()
{
bhdlbh = item.bhdlbh,
bmsah = dto.Bmsah,
dwbm = dto.UnitCode,
dwmc = dto.UnitName,
sxbh = "",
};
if (dto.Code == "1423000000100")
{
saveBhdlclxxDto.cllxdm = "1423000000100";
saveBhdlclxxDto.cllxmc = "律师执业证书";
}
else if (dto.Code == "1423000000200")
{
saveBhdlclxxDto.cllxdm = "1423000000200";
saveBhdlclxxDto.cllxmc = "律师事务所证";
}
else if (dto.Code == "1423000000300")
{
saveBhdlclxxDto.cllxdm = "1423000000300";
saveBhdlclxxDto.cllxmc = "授权委托书";
}
else if (dto.Code == "1423000000400")
{
saveBhdlclxxDto.cllxdm = "1423000000400";
saveBhdlclxxDto.cllxmc = "法律援助公函";
}
else if (dto.Code == "1423000000500")
{
saveBhdlclxxDto.cllxdm = "1423000000500";
saveBhdlclxxDto.cllxmc = "身份证件";
}
else if (dto.Code == "1423000000600")
{
saveBhdlclxxDto.cllxdm = "1423000000600";
saveBhdlclxxDto.cllxmc = "关系证明材料";
}
else if (dto.Code == "1423000000700")
{
saveBhdlclxxDto.cllxdm = "1423000000700";
saveBhdlclxxDto.cllxmc = "其他";
}
List<BhdlClxxInputDTOList> bhdlClxxInputDTOLists = new List<BhdlClxxInputDTOList>();
bhdlClxxInputDTOLists.Add(new BhdlClxxInputDTOList()
{
clbh = id,
fwqwjmc = id + "." + suffix,// dto.FileName,
md5 = fileResultDto.data.storageResult.md5,
wjkzm = suffix,
wjlj = dir,
wjmc = fileName,
wjzjs = fileResultDto.data.size
});
saveBhdlclxxDto.bhdlClxxInputDTOList = bhdlClxxInputDTOLists;
var httpResponse = await httpClient.PostAsJsonAsync("/bhdl-service/api/bhdlCl/saveBhdlclxx", saveBhdlclxxDto);
var resultDataDto = await httpResponse.EnsureSuccessStatusCode().Content.ReadAsStringAsync();
var dataDto = JsonConvert.DeserializeObject<ResultDataDto<AjgldsrxxDto>>(resultDataDto);
if (dataDto.success == true && dataDto.code == "0")
{
result.IsSucceed = true;
result.Message = "上传成功";
}
else
{
result.IsSucceed = false;
result.Message = dataDto.message;
}
}
}
}
}
else
{
result.IsSucceed = false;
result.Message = resultGzbl.message;
}
return result;
}
/// <summary>
/// 等级
/// </summary>
/// <param name="dto"></param>
/// <returns></returns>
[HttpPost("Register")]
public async Task<Result> Register([FromBody] RegisterDto dto)
{
Result result = new Result();
#region 判断
if (dto != null)
{
result.IsSucceed = false;
result.Message = "接收数据失败";
return result;
}
if (string.IsNullOrEmpty(dto.UnitName))
{
result.IsSucceed = false;
result.Message = "单位名称不能为空";
return result;
}
if (string.IsNullOrEmpty(dto.UnitCode))
{
result.IsSucceed = false;
result.Message = "单位编码不能为空";
return result;
}
if (string.IsNullOrEmpty(dto.Bmsah))
{
result.IsSucceed = false;
result.Message = "部门受案号不能为空";
return result;
}
if (string.IsNullOrEmpty(dto.PartyIdCard))
{
result.IsSucceed = false;
result.Message = "当事人身份证不能为空";
return result;
}
if (string.IsNullOrEmpty(dto.ProposerSCC))
{
result.IsSucceed = false;
result.Message = "律师事务所统一社会信用代码不能为空";
return result;
}
if (string.IsNullOrEmpty(dto.ProposerTel))
{
result.IsSucceed = false;
result.Message = "申请人联系电话不能为空";
return result;
}
if (string.IsNullOrEmpty(dto.ProposerIdCard))
{
result.IsSucceed = false;
result.Message = "申请人身份证不能为空";
return result;
}
#endregion
var findAjgldsrxx = new
{
bmsah = dto.Bmsah,
dwbm = dto.UnitCode,
gjz = dto.PartyIdCard,
pageNum = 1,
pageSize = 20
};
var request = await httpClient.PostAsJsonAsync("/bhdl-service/api/bhdlGl/findAjgldsrxx", findAjgldsrxx);
var findBhdlGzbl = await request.EnsureSuccessStatusCode().Content.ReadAsStringAsync();
var resultGzbl = JsonConvert.DeserializeObject<ResultGzbl>(findBhdlGzbl);
return result;
}
/// 将 Stream 转成 byte[]
private static byte[] StreamToBytes(Stream stream)
{
byte[] bytes = new byte[stream.Length];
stream.Read(bytes, 0, bytes.Length);
// 设置当前流的位置为流的开始
stream.Seek(0, SeekOrigin.Begin);
return bytes;
}
/// 将 byte[] 转成 Stream
private static Stream BytesToStream(byte[] bytes)
{
Stream stream = new MemoryStream(bytes);
return stream;
}
}
public class Paging<T>

6
WebApplication1/Models/ResultDto.cs

@ -29,4 +29,10 @@ namespace WebApplication1.Models
public T Data { get; set; }
}
public class ResultDataDto<T> : ResultDto {
public T data { get; set; }
}
}

4
WebApplication1/WebApplication1.csproj

@ -16,6 +16,10 @@
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.0.0" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Dto\Dto.csproj" />
</ItemGroup>
<ItemGroup>
<None Update="Dockerfile">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>

2
WebApplication1/WebApplication1.csproj.user

@ -4,7 +4,7 @@
<DebuggerFlavor>ProjectDebugger</DebuggerFlavor>
</PropertyGroup>
<PropertyGroup>
<ActiveDebugProfile>WebApplication1</ActiveDebugProfile>
<ActiveDebugProfile>IIS Express</ActiveDebugProfile>
<NameOfLastUsedPublishProfile>C:\Users\callm\source\repos\24Hour.Service\WebApplication1\Properties\PublishProfiles\FolderProfile.pubxml</NameOfLastUsedPublishProfile>
</PropertyGroup>
</Project>

2
WebApplication1/obj/Debug/net6.0/WebApplication1.csproj.CoreCompileInputs.cache

@ -1 +1 @@
4fbf06549b48e311fd9f932b7cdd22c5126584bd
fc6a57648ae2715e3ffa56ead59576c5c6cfeb81

Loading…
Cancel
Save