Browse Source

项目优化

master
赵鹏 3 days ago
parent
commit
2d74e50db8
  1. 33
      ReZero.sln
  2. 2
      SuperAPI/Controllers/MyApiController.cs
  3. 2
      SuperAPI/Controllers/MyApiWithIocController.cs
  4. 2
      SuperAPI/Controllers/MyApiWithUnitOfWorkController.cs
  5. 21
      SuperAPI/Controllers/StdObjectMappingController.cs
  6. 18
      SuperAPI/Controllers/WeatherForecastController.cs
  7. 67
      SuperAPI/Models/MethodConfig.cs
  8. 62
      SuperAPI/Models/ObjectAssembly.cs
  9. 109
      SuperAPI/Models/ObjectMapping.cs
  10. 3
      SuperAPI/Program.cs
  11. 4
      SuperAPI/medical.insu.transfomer.csproj
  12. 4
      medical.jzyb.entity/STD/STD_METHOD_CONFIG.cs
  13. 3
      medical.jzyb.entity/STD/STD_OBJECT_ASSEMBLY.cs
  14. 3
      medical.jzyb.entity/STD/STD_OBJECT_MAPPING.cs
  15. 13
      medical.jzyb.entity/medical.transfomer.entity.csproj
  16. 4
      medical.transfomer.business/InsuranceBusinessServices/IInsuranceBusinessService.cs
  17. 7
      medical.transfomer.business/MedicalInsuranceService.cs
  18. 3
      medical.transfomer.business/TransformerService.cs
  19. 16
      medical.transfomer.business/medical.transfomer.business.csproj
  20. 27
      medical.transfomer.business/std_object_mapping_business.cs
  21. 13
      medical.transfomer.dal/medical.transfomer.dal.csproj
  22. 2
      medical.transfomer.dto/Insurance/InsuranceRequest.cs
  23. 2
      medical.transfomer.dto/Insurance/InsuranceResponse.cs
  24. 2
      medical.transfomer.dto/MedicalTransactionSystem.cs
  25. 7
      medical.transfomer.dto/TransformationConfig.cs
  26. 17
      medical.transfomer.dto/medical.transfomer.dto.csproj
  27. 7
      medical.transfomer.service/Class1.cs
  28. 9
      medical.transfomer.service/medical.transfomer.service.csproj

33
ReZero.sln

@ -7,7 +7,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
EndProject EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ReZero", "ReZero\ReZero.csproj", "{55D7478B-38DD-47A9-B1AA-4E7EAAF7DDC2}" Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ReZero", "ReZero\ReZero.csproj", "{55D7478B-38DD-47A9-B1AA-4E7EAAF7DDC2}"
EndProject EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "SuperAPITest", "SuperAPI\SuperAPITest.csproj", "{A04287D1-F1AF-4102-924A-A9EB3B9B7A66}" Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "medical.insu.transfomer", "SuperAPI\medical.insu.transfomer.csproj", "{A04287D1-F1AF-4102-924A-A9EB3B9B7A66}"
EndProject EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "NugetTest", "NugetTest\NugetTest.csproj", "{BA1AD8C9-8AEC-4E0E-9F68-FC0D1403731C}" Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "NugetTest", "NugetTest\NugetTest.csproj", "{BA1AD8C9-8AEC-4E0E-9F68-FC0D1403731C}"
EndProject EndProject
@ -17,6 +17,16 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "DemoTest", "DemoTest", "{10
EndProject EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "DependencyInjectionTest", "DependencyInjectionTest\DependencyInjectionTest.csproj", "{E7355DEA-E652-4C6A-960C-CECF4B4EB673}" Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "DependencyInjectionTest", "DependencyInjectionTest\DependencyInjectionTest.csproj", "{E7355DEA-E652-4C6A-960C-CECF4B4EB673}"
EndProject EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "medical.transfomer.entity", "medical.jzyb.entity\medical.transfomer.entity.csproj", "{0755F58C-76F9-43DC-A4BE-BEA52DE28439}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "medical.transfomer.business", "medical.transfomer.business\medical.transfomer.business.csproj", "{9518ADBB-507D-4530-891B-7C2423006624}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "medical.transfomer.dto", "medical.transfomer.dto\medical.transfomer.dto.csproj", "{2906FADC-1A72-45AB-BD65-215AA1288EC0}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "medical.transfomer.dal", "medical.transfomer.dal\medical.transfomer.dal.csproj", "{066B2678-5991-4B7A-B5DE-636529E988FE}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "medical.transfomer", "medical.transfomer", "{02EA681E-C7D8-13C7-8484-4AC65E1B71E8}"
EndProject
Global Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU Debug|Any CPU = Debug|Any CPU
@ -43,13 +53,34 @@ Global
{E7355DEA-E652-4C6A-960C-CECF4B4EB673}.Debug|Any CPU.Build.0 = Debug|Any CPU {E7355DEA-E652-4C6A-960C-CECF4B4EB673}.Debug|Any CPU.Build.0 = Debug|Any CPU
{E7355DEA-E652-4C6A-960C-CECF4B4EB673}.Release|Any CPU.ActiveCfg = Release|Any CPU {E7355DEA-E652-4C6A-960C-CECF4B4EB673}.Release|Any CPU.ActiveCfg = Release|Any CPU
{E7355DEA-E652-4C6A-960C-CECF4B4EB673}.Release|Any CPU.Build.0 = Release|Any CPU {E7355DEA-E652-4C6A-960C-CECF4B4EB673}.Release|Any CPU.Build.0 = Release|Any CPU
{0755F58C-76F9-43DC-A4BE-BEA52DE28439}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{0755F58C-76F9-43DC-A4BE-BEA52DE28439}.Debug|Any CPU.Build.0 = Debug|Any CPU
{0755F58C-76F9-43DC-A4BE-BEA52DE28439}.Release|Any CPU.ActiveCfg = Release|Any CPU
{0755F58C-76F9-43DC-A4BE-BEA52DE28439}.Release|Any CPU.Build.0 = Release|Any CPU
{9518ADBB-507D-4530-891B-7C2423006624}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{9518ADBB-507D-4530-891B-7C2423006624}.Debug|Any CPU.Build.0 = Debug|Any CPU
{9518ADBB-507D-4530-891B-7C2423006624}.Release|Any CPU.ActiveCfg = Release|Any CPU
{9518ADBB-507D-4530-891B-7C2423006624}.Release|Any CPU.Build.0 = Release|Any CPU
{2906FADC-1A72-45AB-BD65-215AA1288EC0}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{2906FADC-1A72-45AB-BD65-215AA1288EC0}.Debug|Any CPU.Build.0 = Debug|Any CPU
{2906FADC-1A72-45AB-BD65-215AA1288EC0}.Release|Any CPU.ActiveCfg = Release|Any CPU
{2906FADC-1A72-45AB-BD65-215AA1288EC0}.Release|Any CPU.Build.0 = Release|Any CPU
{066B2678-5991-4B7A-B5DE-636529E988FE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{066B2678-5991-4B7A-B5DE-636529E988FE}.Debug|Any CPU.Build.0 = Debug|Any CPU
{066B2678-5991-4B7A-B5DE-636529E988FE}.Release|Any CPU.ActiveCfg = Release|Any CPU
{066B2678-5991-4B7A-B5DE-636529E988FE}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection EndGlobalSection
GlobalSection(SolutionProperties) = preSolution GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE HideSolutionNode = FALSE
EndGlobalSection EndGlobalSection
GlobalSection(NestedProjects) = preSolution GlobalSection(NestedProjects) = preSolution
{BA1AD8C9-8AEC-4E0E-9F68-FC0D1403731C} = {1032E893-22CF-4883-8857-049526541333}
{EA58EB55-47DD-44FD-A12A-0231F97F06C5} = {1032E893-22CF-4883-8857-049526541333} {EA58EB55-47DD-44FD-A12A-0231F97F06C5} = {1032E893-22CF-4883-8857-049526541333}
{E7355DEA-E652-4C6A-960C-CECF4B4EB673} = {1032E893-22CF-4883-8857-049526541333} {E7355DEA-E652-4C6A-960C-CECF4B4EB673} = {1032E893-22CF-4883-8857-049526541333}
{0755F58C-76F9-43DC-A4BE-BEA52DE28439} = {02EA681E-C7D8-13C7-8484-4AC65E1B71E8}
{9518ADBB-507D-4530-891B-7C2423006624} = {02EA681E-C7D8-13C7-8484-4AC65E1B71E8}
{2906FADC-1A72-45AB-BD65-215AA1288EC0} = {02EA681E-C7D8-13C7-8484-4AC65E1B71E8}
{066B2678-5991-4B7A-B5DE-636529E988FE} = {02EA681E-C7D8-13C7-8484-4AC65E1B71E8}
EndGlobalSection EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {C3ACCBAF-6C08-4037-A398-1D5A9188B7E9} SolutionGuid = {C3ACCBAF-6C08-4037-A398-1D5A9188B7E9}

2
SuperAPI/Controllers/MyApiController.cs

@ -1,7 +1,7 @@
using Microsoft.AspNetCore.Mvc.RazorPages; using Microsoft.AspNetCore.Mvc.RazorPages;
using ReZero.SuperAPI; using ReZero.SuperAPI;
using System.Security.Policy; using System.Security.Policy;
namespace SuperAPITest.Controllers namespace medical.insu.transfomer
{ {
/// <summary> /// <summary>
/// 动态接口 /// 动态接口

2
SuperAPI/Controllers/MyApiWithIocController.cs

@ -1,6 +1,6 @@
using ReZero.DependencyInjection; using ReZero.DependencyInjection;
using ReZero.SuperAPI; using ReZero.SuperAPI;
namespace SuperAPITest.Controllers namespace medical.insu.transfomer
{ {
/// <summary> /// <summary>
/// 动态接口+IOC /// 动态接口+IOC

2
SuperAPI/Controllers/MyApiWithUnitOfWorkController.cs

@ -2,7 +2,7 @@
using ReZero.SuperAPI; using ReZero.SuperAPI;
using SqlSugar; using SqlSugar;
namespace SuperAPITest.Controllers namespace medical.insu.transfomer
{ {
/// <summary> /// <summary>
/// 动态接口+工作单元 /// 动态接口+工作单元

21
SuperAPI/Controllers/StdObjectMappingController.cs

@ -0,0 +1,21 @@
using medical.transfomer.business;
using medical.transfomer.entity;
using Microsoft.AspNetCore.Mvc;
using ReZero.DependencyInjection;
using ReZero.SuperAPI;
namespace medical.insu.transfomer.Controllers
{
[Api(200100, GroupName = "分组0")]
public class StdObjectMappingController
{
[DI]
public std_object_mapping_business _StdObjectMappingBusiness { get; set; }
[ApiMethod("批量插入映射关系")]
public int insertList([FromBody]List<STD_OBJECT_MAPPING> list)
{
return _StdObjectMappingBusiness.ListInsert(list);
}
}
}

18
SuperAPI/Controllers/WeatherForecastController.cs

@ -1,18 +0,0 @@
using Microsoft.AspNetCore.Mvc;
namespace ReZeroWeb.Controllers
{
/// <summary>
/// Ô­Éú½Ó¿Ú
/// </summary>
[ApiController]
[Route("[controller]")]
public class WeatherForecastController : ControllerBase
{
[HttpGet(Name = "GetWeatherForecast")]
public string Get()
{
return "Hello word" ;
}
}
}

67
SuperAPI/Models/MethodConfig.cs

@ -1,67 +0,0 @@
using System;
using System.Collections.Generic;
using System.Linq;
using SqlSugar;
namespace YbTest.Models
{
/// <summary>
/// 方法信息表
///</summary>
[SugarTable("STD_METHOD_CONFIG")]
public class MethodConfig
{
/// <summary>
/// 备 注:唯一标识符(UUID)
/// 默认值:
///</summary>
[SugarColumn(ColumnName="METHOD_ID" ,IsPrimaryKey = true) ]
public string MethodId { get; set; } = null!;
/// <summary>
/// 备 注:方法名称(需符合医保规范)
/// 默认值:
///</summary>
[SugarColumn(ColumnName="METHOD_NAME" ) ]
public string MethodName { get; set; } = null!;
/// <summary>
/// 备 注:方法调用路径
/// 默认值:
///</summary>
[SugarColumn(ColumnName="METHOD_VALUE" ) ]
public string MethodValue { get; set; } = null!;
/// <summary>
/// 备 注:是否保存入参(0-否,1-是)
/// 默认值:
///</summary>
[SugarColumn(ColumnName="SAVE_INPUT" ) ]
public short SaveInput { get; set; }
/// <summary>
/// 备 注:是否保存出参(0-否,1-是)
/// 默认值:
///</summary>
[SugarColumn(ColumnName="SAVE_OUTPUT" ) ]
public short SaveOutPut { get; set; }
/// <summary>
/// 备 注:所属对接对象(外键关联)
/// 默认值:
///</summary>
[SugarColumn(ColumnName="BIND_OBJECT" ) ]
public long BindObject { get; set; }
/// <summary>
/// 备 注:系统方法名
/// 默认值:
///</summary>
[SugarColumn(ColumnName="BIND_SYS_CODE" ) ]
public string? BindSysCode { get; set; }
}
}

62
SuperAPI/Models/ObjectAssembly.cs

@ -1,62 +0,0 @@
using System;
using System.Collections.Generic;
using System.Linq;
using SqlSugar;
namespace YbTest.Models
{
/// <summary>
/// 对象组装表
///</summary>
[SugarTable("STD_OBJECT_ASSEMBLY")]
public class ObjectAssembly
{
/// <summary>
/// 备 注:表名
/// 默认值:
///</summary>
[SugarColumn(ColumnName = "MAPPING_TABLE")]
public string MappingTable { get; set; } = null!;
/// <summary>
/// 备 注:表归属于那(例如:系统内、医保)
/// 默认值:
///</summary>
[SugarColumn(ColumnName = "ASSEMBLY_TYPE")]
public string AssemblyType { get; set; } = null!;
/// <summary>
/// 备 注:STD_METHOD_CONFIG表ID
/// 默认值:
///</summary>
[SugarColumn(ColumnName = "METHOD_REF")]
public string MethodRef { get; set; } = null!;
/// <summary>
/// 备 注:1 对象 2 列表
/// 默认值:
///</summary>
[SugarColumn(ColumnName = "OBJECT_TYPE")]
public int ObjectType { get; set; }
/// <summary>
/// 备 注:1 入参 2 出参
/// 默认值:
///</summary>
[SugarColumn(ColumnName = "PARAMETR_TYPE")]
public int ParameterType { get; set; }
/// <summary>
/// 备 注:id
/// 默认值:
///</summary>
[SugarColumn(ColumnName = "ID", IsPrimaryKey = true, IsIdentity = true)]
public decimal Id { get; set; }
/// <summary>
/// 备 注:属性路径(对象[属性名])
/// 默认值:
///</summary>
[SugarColumn(ColumnName = "OBJECT_PATH")]
public string ObjectPath { get; set; } = null!;
}
}

109
SuperAPI/Models/ObjectMapping.cs

@ -1,109 +0,0 @@
using System;
using System.Collections.Generic;
using System.Linq;
using SqlSugar;
namespace YbTest.Models
{
/// <summary>
/// 对象映射关系表
///</summary>
[SugarTable("STD_OBJECT_MAPPING")]
public class ObjectMapping
{
/// <summary>
/// 备 注:主键
/// 默认值:
///</summary>
[SugarColumn(ColumnName="ID" ,IsPrimaryKey = true,IsIdentity = true) ]
public decimal Id { get; set; }
/// <summary>
/// 备 注:本地系统名称(如姓名 年龄)
/// 默认值:
///</summary>
[SugarColumn(ColumnName="SYSTEM_NAME" ) ]
public string? SystemName { get; set; }
/// <summary>
/// 备 注:本地系统字段名(如name age)
/// 默认值:
///</summary>
[SugarColumn(ColumnName="SYSTEM_FIELD" ) ]
public string? SystemField { get; set; }
/// <summary>
/// 备 注:对接系统名称
/// 默认值:
///</summary>
[SugarColumn(ColumnName="INTERFACE_NAME" ) ]
public string? InterfaceName { get; set; }
/// <summary>
/// 备 注:对接系统字段名
/// 默认值:
///</summary>
[SugarColumn(ColumnName="INTERFACE_FIELD" ) ]
public string? InterfaceField { get; set; }
/// <summary>
/// 备 注:对接系统表英文名
/// 默认值:
///</summary>
[SugarColumn(ColumnName="OBJECT_TABLE_NAME" ) ]
public string? ObjectTableName { get; set; }
/// <summary>
/// 备 注:对接系统表中文名
/// 默认值:
///</summary>
[SugarColumn(ColumnName="OBJECT_TABLE_CNNAME" ) ]
public string? ObjectTableCnName { get; set; }
/// <summary>
/// 备 注:本地系统表中文名
/// 默认值:
///</summary>
[SugarColumn(ColumnName="SYSTEM_TABLE_CNNAME" ) ]
public string? SystemTableCnName { get; set; }
/// <summary>
/// 备 注:本地系统表英文名
/// 默认值:
///</summary>
[SugarColumn(ColumnName="SYSTEM_TABLE_NAME" ) ]
public string? SystemTableName { get; set; }
/// <summary>
/// 备 注:本地系统字段类型
/// 默认值:
///</summary>
[SugarColumn(ColumnName="SYSTEM_FIELD_TYPE" ) ]
public string? SystemFieldType { get; set; }
/// <summary>
/// 备 注:本地系统字典名称
/// 默认值:
///</summary>
[SugarColumn(ColumnName="SYSTEM_DICT_NAME" ) ]
public string? SystemDictName { get; set; }
/// <summary>
/// 备 注:对接系统字段类型
/// 默认值:
///</summary>
[SugarColumn(ColumnName="OBJECT_FIELD_TYPE" ) ]
public string? ObjectFieldType { get; set; }
/// <summary>
/// 备 注:对接系统字典名称
/// 默认值:
///</summary>
[SugarColumn(ColumnName="OBJECT_DICT_NAME" ) ]
public string? ObjectDictName { get; set; }
}
}

3
SuperAPI/Program.cs

@ -6,7 +6,6 @@ using ReZero;
using ReZero.Configuration; using ReZero.Configuration;
using ReZero.SuperAPI; using ReZero.SuperAPI;
using SqlSugar; using SqlSugar;
using SuperAPITest;
using System.Reflection; using System.Reflection;
using System.Runtime.CompilerServices; using System.Runtime.CompilerServices;
using System.Text; using System.Text;
@ -43,7 +42,7 @@ builder.Services.AddReZeroServices(api =>
//IOC业务等所有需要的所有集程集 //IOC业务等所有需要的所有集程集
var assemblyList = Assembly.GetExecutingAssembly() var assemblyList = Assembly.GetExecutingAssembly()
.GetAllDependentAssemblies(it => it.Contains("SuperAPITest")) .GetAllDependentAssemblies(it => it.Contains("medical.insu.transfomer"))
.ToArray(); .ToArray();
apiObj!.DependencyInjectionOptions = new DependencyInjectionOptions(assemblyList); apiObj!.DependencyInjectionOptions = new DependencyInjectionOptions(assemblyList);

4
SuperAPI/SuperAPITest.csproj → SuperAPI/medical.insu.transfomer.csproj

@ -18,6 +18,10 @@
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<ProjectReference Include="..\medical.jzyb.entity\medical.transfomer.entity.csproj" />
<ProjectReference Include="..\medical.transfomer.business\medical.transfomer.business.csproj" />
<ProjectReference Include="..\medical.transfomer.dal\medical.transfomer.dal.csproj" />
<ProjectReference Include="..\medical.transfomer.dto\medical.transfomer.dto.csproj" />
<ProjectReference Include="..\ReZero\ReZero.csproj" /> <ProjectReference Include="..\ReZero\ReZero.csproj" />
</ItemGroup> </ItemGroup>

4
ReZero/SuperAPI/DatabseModels/Entities/STD/STD_METHOD_CONFIG.cs → medical.jzyb.entity/STD/STD_METHOD_CONFIG.cs

@ -2,7 +2,9 @@
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq; using System.Linq;
using SqlSugar; using SqlSugar;
namespace ReZero.SuperAPI.STD namespace medical.transfomer.entity
{ {
/// <summary> /// <summary>
/// 方法信息表 /// 方法信息表

3
ReZero/SuperAPI/DatabseModels/Entities/STD/STD_OBJECT_ASSEMBLY.cs → medical.jzyb.entity/STD/STD_OBJECT_ASSEMBLY.cs

@ -2,7 +2,8 @@
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq; using System.Linq;
using SqlSugar; using SqlSugar;
namespace ReZero.SuperAPI.STD namespace medical.transfomer.entity
{ {
/// <summary> /// <summary>
/// 对象组装表 /// 对象组装表

3
ReZero/SuperAPI/DatabseModels/Entities/STD/STD_OBJECT_MAPPING.cs → medical.jzyb.entity/STD/STD_OBJECT_MAPPING.cs

@ -2,7 +2,8 @@
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq; using System.Linq;
using SqlSugar; using SqlSugar;
namespace Models namespace medical.transfomer.entity
{ {
/// <summary> /// <summary>
/// 对象映射关系表 /// 对象映射关系表

13
medical.jzyb.entity/medical.transfomer.entity.csproj

@ -0,0 +1,13 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="SqlSugarCore" Version="5.1.4.154" />
</ItemGroup>
</Project>

4
SuperAPI/Services/InsuranceBusinessServices/IInsuranceBusinessService.cs → medical.transfomer.business/InsuranceBusinessServices/IInsuranceBusinessService.cs

@ -1,7 +1,7 @@
using YbTest.Models.Insurance;
using medical.transfomer.dto;
namespace YbTest.Services.InsuranceBusinessServices; namespace medical.insu.transfomer.InsuranceBusinessServices;
public interface IInsuranceBusinessService public interface IInsuranceBusinessService
{ {

7
SuperAPI/Services/MedicalInsuranceService.cs → medical.transfomer.business/MedicalInsuranceService.cs

@ -1,13 +1,14 @@
using System.Text; using System.Text;
using System.Text.RegularExpressions; using System.Text.RegularExpressions;
using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations;
using YbTest.Models.Insurance;
using YbTest.Services.InsuranceBusinessServices;
using System.Collections.Concurrent; using System.Collections.Concurrent;
using System.Security.Cryptography; using System.Security.Cryptography;
using System.Text.Json; using System.Text.Json;
using medical.insu.transfomer.InsuranceBusinessServices;
using System.Net.Http.Json;
using medical.transfomer.dto;
namespace YbTest.Services namespace medical.insu.transfomer
{ {
public class MedicalInsuranceService public class MedicalInsuranceService
{ {

3
SuperAPI/Services/TransformerService.cs → medical.transfomer.business/TransformerService.cs

@ -5,13 +5,14 @@
// Copyright (c) Manus. All rights reserved. // Copyright (c) Manus. All rights reserved.
// </copyright> // </copyright>
using medical.transfomer.dto;
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq; using System.Linq;
using System.Text.Json; using System.Text.Json;
using System.Text.Json.Nodes; using System.Text.Json.Nodes;
namespace YbTest.Models namespace medical.insu.transfomer
{ {
/// <summary> /// <summary>
/// JSON配置转换服务类 /// JSON配置转换服务类

16
medical.transfomer.business/medical.transfomer.business.csproj

@ -0,0 +1,16 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\medical.jzyb.entity\medical.transfomer.entity.csproj" />
<ProjectReference Include="..\medical.transfomer.dal\medical.transfomer.dal.csproj" />
<ProjectReference Include="..\medical.transfomer.dto\medical.transfomer.dto.csproj" />
<ProjectReference Include="..\ReZero\ReZero.csproj" />
</ItemGroup>
</Project>

27
medical.transfomer.business/std_object_mapping_business.cs

@ -0,0 +1,27 @@
using medical.transfomer.entity;
using ReZero.DependencyInjection;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace medical.transfomer.business
{
public class std_object_mapping_business : IScopeContract
{
//属性注入
[DI]
public ISqlSugarClient? db { get; set; }
// 批量插入信息
public int ListInsert(List<STD_OBJECT_MAPPING> list)
{
var result = new List<STD_OBJECT_MAPPING>();
return db.Insertable<STD_OBJECT_MAPPING>(list).ExecuteCommand();
}
}
}

13
medical.transfomer.dal/medical.transfomer.dal.csproj

@ -0,0 +1,13 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="SqlSugarCore" Version="5.1.4.154" />
</ItemGroup>
</Project>

2
SuperAPI/Models/Insurance/InsuranceRequest.cs → medical.transfomer.dto/Insurance/InsuranceRequest.cs

@ -1,6 +1,6 @@
using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations;
namespace YbTest.Models.Insurance namespace medical.transfomer.dto
{ {
public class InsuranceRequest public class InsuranceRequest
{ {

2
SuperAPI/Models/Insurance/InsuranceResponse.cs → medical.transfomer.dto/Insurance/InsuranceResponse.cs

@ -1,6 +1,6 @@
using System; using System;
namespace YbTest.Models.Insurance namespace medical.transfomer.dto
{ {
public class Response public class Response
{ {

2
SuperAPI/Models/MedicalTransactionSystem.cs → medical.transfomer.dto/MedicalTransactionSystem.cs

@ -1,7 +1,7 @@
using System.ComponentModel.DataAnnotations.Schema; using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations;
namespace YbTest.Models namespace medical.transfomer.dto
{ {
public class MedicalTransactionSystem public class MedicalTransactionSystem
{ {

7
SuperAPI/Models/TransformationConfig.cs → medical.transfomer.dto/TransformationConfig.cs

@ -1,6 +1,7 @@
using Models; 
using ReZero.SuperAPI.STD; using medical.transfomer.entity;
namespace YbTest.Models
namespace medical.transfomer.dto
{ {
public class TransformationConfig public class TransformationConfig
{ {

17
medical.transfomer.dto/medical.transfomer.dto.csproj

@ -0,0 +1,17 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="SqlSugarCore" Version="5.1.4.154" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\medical.jzyb.entity\medical.transfomer.entity.csproj" />
</ItemGroup>
</Project>

7
medical.transfomer.service/Class1.cs

@ -0,0 +1,7 @@
namespace medical.transfomer.service
{
public class Class1
{
}
}

9
medical.transfomer.service/medical.transfomer.service.csproj

@ -0,0 +1,9 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
</Project>
Loading…
Cancel
Save