1.修复多账套对接时报工切换账套不生效(严重bug)
2.切换底层逻辑,增加外部增加数据源的接口 3.增加缓存,减少频繁登录导致可能存在的突发数据库连接异常
This commit is contained in:
@@ -0,0 +1,78 @@
|
||||
using SqlSugar;
|
||||
using UFIDA.U8.Framework.Api.ControlObject.Models;
|
||||
|
||||
namespace UFIDA.U8.Framework.Api.Common.Entity
|
||||
{
|
||||
/// <summary>
|
||||
/// 系统U8账套对接参数配置表
|
||||
/// </summary>
|
||||
[SugarTable("SysU8AccountConfig", "系统U8账套对接参数配置表")]
|
||||
[SugarIndex("index_{table}_I", nameof(Id), OrderByType.Asc)]
|
||||
public class SysU8AccountConfig :ControlObject.Models.SysU8AccountConfig
|
||||
{
|
||||
|
||||
[SugarColumn(IsIdentity = true, IsPrimaryKey = true, ColumnDescription = "主键", ColumnName = "Id", IsNullable = false)]
|
||||
public int Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 系统号
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnDescription = "系统号", Length = 100)]
|
||||
public override string cAccountNo { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 账套号
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnDescription = "账套号", Length = 100)]
|
||||
public override string cAcc_Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 账套名称
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnDescription = "账套名称", Length = 255)]
|
||||
public override string cAcc_Name { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 账套数据源
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnDescription = "账套数据源", Length = 255)]
|
||||
public override string cAcc_DataSource { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 用户ID
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnDescription = "用户ID", Length = 100)]
|
||||
public override string cUser_Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 用户名
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnDescription = "用户名", Length = 255)]
|
||||
public override string cUser_Name { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 密码
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnDescription = "密码", Length = 255)]
|
||||
public override string cPassword { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 服务器地址
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnDescription = "服务器地址", Length = 255)]
|
||||
public override string cSrv { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 状态
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnDescription = "状态")]
|
||||
public override StatusEnum Status { get; set; } = StatusEnum.Enable;
|
||||
|
||||
/// <summary>
|
||||
/// 备注
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnDescription = "备注", Length = 255)]
|
||||
public override string Remark { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
@@ -38,6 +38,12 @@
|
||||
<Reference Include="log4net, Version=2.0.17.0, Culture=neutral, PublicKeyToken=669e0ddf0bb1aa2a, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\log4net.2.0.17\lib\net45\log4net.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Newtonsoft.Json, Version=13.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Newtonsoft.Json.13.0.3\lib\net45\Newtonsoft.Json.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="SqlSugar, Version=5.1.4.162, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\SqlSugar.5.1.4.162\lib\SqlSugar.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Configuration" />
|
||||
<Reference Include="System.Core" />
|
||||
@@ -50,6 +56,7 @@
|
||||
<Reference Include="System.Xml" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="Entity\SysU8AccountConfig.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
<Compile Include="Unit\GM\GM.cs" />
|
||||
<Compile Include="Unit\GM\GMUtil.cs" />
|
||||
@@ -57,6 +64,14 @@
|
||||
<ItemGroup>
|
||||
<None Include="packages.config" />
|
||||
</ItemGroup>
|
||||
<ItemGroup />
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\UFIDA.U8.Framework.Api.ControlObject\UFIDA.U8.Framework.Api.ControlObject.csproj">
|
||||
<Project>{22c84be9-1613-4e32-9e98-237e96fd3540}</Project>
|
||||
<Name>UFIDA.U8.Framework.Api.ControlObject</Name>
|
||||
</ProjectReference>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Folder Include="Enum\" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
</Project>
|
||||
@@ -2,4 +2,6 @@
|
||||
<packages>
|
||||
<package id="BouncyCastle.Cryptography" version="2.4.0" targetFramework="net48" />
|
||||
<package id="log4net" version="2.0.17" targetFramework="net48" />
|
||||
<package id="Newtonsoft.Json" version="13.0.3" targetFramework="net48" />
|
||||
<package id="SqlSugar" version="5.1.4.162" targetFramework="net48" />
|
||||
</packages>
|
||||
Reference in New Issue
Block a user