28 changed files with 185 additions and 277 deletions
@ -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); |
||||
} |
||||
} |
||||
} |
@ -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; } |
||||
|
||||
|
||||
} |
||||
|
||||
} |
@ -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!; |
||||
} |
||||
} |
@ -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; } |
||||
|
||||
|
||||
} |
||||
|
||||
} |
@ -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> |
@ -1,7 +1,7 @@
|
||||
using YbTest.Models.Insurance; |
||||
|
||||
using medical.transfomer.dto; |
||||
|
||||
namespace YbTest.Services.InsuranceBusinessServices; |
||||
namespace medical.insu.transfomer.InsuranceBusinessServices; |
||||
|
||||
public interface IInsuranceBusinessService |
||||
{ |
@ -1,13 +1,14 @@
|
||||
using System.Text; |
||||
using System.Text.RegularExpressions; |
||||
using System.ComponentModel.DataAnnotations; |
||||
using YbTest.Models.Insurance; |
||||
using YbTest.Services.InsuranceBusinessServices; |
||||
using System.Collections.Concurrent; |
||||
using System.Security.Cryptography; |
||||
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 |
||||
{ |
@ -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> |
@ -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(); |
||||
} |
||||
} |
||||
} |
@ -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> |
@ -1,6 +1,6 @@
|
||||
using System.ComponentModel.DataAnnotations; |
||||
|
||||
namespace YbTest.Models.Insurance |
||||
namespace medical.transfomer.dto |
||||
{ |
||||
public class InsuranceRequest |
||||
{ |
@ -1,6 +1,6 @@
|
||||
using System; |
||||
|
||||
namespace YbTest.Models.Insurance |
||||
namespace medical.transfomer.dto |
||||
{ |
||||
public class Response |
||||
{ |
@ -1,7 +1,7 @@
|
||||
using System.ComponentModel.DataAnnotations.Schema; |
||||
using System.ComponentModel.DataAnnotations; |
||||
|
||||
namespace YbTest.Models |
||||
namespace medical.transfomer.dto |
||||
{ |
||||
public class MedicalTransactionSystem |
||||
{ |
@ -1,6 +1,7 @@
|
||||
using Models; |
||||
using ReZero.SuperAPI.STD; |
||||
namespace YbTest.Models |
||||
|
||||
using medical.transfomer.entity; |
||||
|
||||
namespace medical.transfomer.dto |
||||
{ |
||||
public class TransformationConfig |
||||
{ |
@ -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> |
@ -0,0 +1,7 @@
|
||||
namespace medical.transfomer.service |
||||
{ |
||||
public class Class1 |
||||
{ |
||||
|
||||
} |
||||
} |
Loading…
Reference in new issue