调整项目依赖
This commit is contained in:
@@ -10,6 +10,7 @@ using JNPF.Logging.Attributes;
|
||||
using JNPF.Systems.Entitys.Permission;
|
||||
using JNPF.TaskScheduler;
|
||||
using Microsoft.AspNetCore.Authorization;
|
||||
using Microsoft.AspNetCore.Cors;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using SqlSugar;
|
||||
|
||||
@@ -22,20 +23,21 @@ namespace JNPF.Systems.Common;
|
||||
[Route("api")]
|
||||
public class TestService : IDynamicApiController, ITransient
|
||||
{
|
||||
private readonly ISqlSugarRepository<UserEntity> _sqlSugarRepository;
|
||||
private readonly ISqlSugarRepository<UserEntity> _repository;
|
||||
private readonly SqlSugarScope _sugar;
|
||||
private readonly IDataBaseManager _databaseService;
|
||||
private readonly ITenant _db;
|
||||
|
||||
public TestService(ISqlSugarRepository<UserEntity> sqlSugarRepository, ISqlSugarClient context, IDataBaseManager databaseService)
|
||||
public TestService(ISqlSugarRepository<UserEntity> repository, IDataBaseManager databaseService)
|
||||
{
|
||||
_sqlSugarRepository = sqlSugarRepository;
|
||||
_repository = repository;
|
||||
_sugar = (SqlSugarScope)repository.AsSugarClient();
|
||||
_databaseService = databaseService;
|
||||
_db = context.AsTenant();
|
||||
}
|
||||
|
||||
[HttpGet("test")]
|
||||
[AllowAnonymous]
|
||||
[IgnoreLog]
|
||||
[DisableCors]
|
||||
public async Task<dynamic> test()
|
||||
{
|
||||
try
|
||||
@@ -44,7 +46,7 @@ public class TestService : IDynamicApiController, ITransient
|
||||
//var xx = App.HttpContext.Request.Host.ToString();
|
||||
//var sql = "SELECT TOP 1 [F_PARENTID],[F_PROCESSID],[F_ENCODE],[F_FULLNAME],[F_FLOWURGENT],[F_FLOWID],[F_FLOWCODE],[F_FLOWNAME],[F_FLOWTYPE],[F_FLOWCATEGORY],[F_FLOWFORM],[F_FLOWFORMCONTENTJSON],[F_FLOWTEMPLATEJSON],[F_FLOWVERSION],[F_STARTTIME],[F_ENDTIME],[F_THISSTEP],[F_THISSTEPID],[F_GRADE],[F_STATUS],[F_COMPLETION],[F_DESCRIPTION],[F_SORTCODE],[F_ISASYNC],[F_ISBATCH],[F_TASKNODEID],[F_TEMPLATEID],[F_REJECTDATAID],[F_DELEGATEUSER],[F_CREATORTIME],[F_CREATORUSERID],[F_ENABLEDMARK],[F_LastModifyTime],[F_LastModifyUserId],[F_DeleteMark],[F_DeleteTime],[F_DeleteUserId],[F_Id] FROM [FLOW_TASK] WHERE (( [F_DeleteMark] IS NULL ) AND ( [F_Id] = N'367536153122855173' ))";
|
||||
//var darta = _sqlSugarRepository.AsSugarClient().Ado.SqlQuery<dynamic>(sql);
|
||||
var data = _sqlSugarRepository.GetFirst(a => true);
|
||||
var data = await _repository.GetFirstAsync(a => true);
|
||||
var json = App.GetService<IJsonSerializerProvider>();
|
||||
return data;
|
||||
}
|
||||
|
||||
@@ -12,7 +12,6 @@
|
||||
<ProjectReference Include="..\..\common\Tnb.CollectiveOAuth\Tnb.CollectiveOAuth.csproj" />
|
||||
<ProjectReference Include="..\..\message\Tnb.Message.Interfaces\Tnb.Message.Interfaces.csproj" />
|
||||
<ProjectReference Include="..\..\visualdev\Tnb.VisualDev.Engine\Tnb.VisualDev.Engine.csproj" />
|
||||
<ProjectReference Include="..\Tnb.Systems.Interfaces\Tnb.Systems.Interfaces.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
|
||||
Reference in New Issue
Block a user