fix
This commit is contained in:
parent
a8b2c38b3b
commit
979250b912
@ -10,7 +10,7 @@
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\InterfaceForward.Application\InterfaceForward.Application.csproj" />
|
||||
<ProjectReference Include="..\InterfaceForward.ServiceDefaults\InterfaceForward.ServiceDefaults.csproj"/>
|
||||
<PackageReference Include="Fake.Autofac" Version="8.0.0-preview.5" />
|
||||
<PackageReference Include="Fake.Autofac" Version="8.0.0-preview10" />
|
||||
<PackageReference Include="Serilog.AspNetCore" Version="9.0.0" />
|
||||
<PackageReference Include="Serilog.Sinks.Elasticsearch" Version="10.0.0" />
|
||||
<PackageReference Include="Serilog.Sinks.Console" Version="6.0.0" />
|
||||
|
||||
@ -48,7 +48,8 @@
|
||||
"HostName": "129.204.22.146",
|
||||
"Port": 5672,
|
||||
"UserName": "rabbit",
|
||||
"Password": "itd!@#123"
|
||||
"Password": "itd!@#123",
|
||||
"DispatchConsumersAsync": true
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
@ -17,9 +17,9 @@
|
||||
<PackageReference Include="DiffPlex" Version="1.7.2" />
|
||||
<PackageReference Include="Aliyun.OSS.SDK.NetCore" Version="2.14.1" />
|
||||
<PackageReference Include="DotNetCore.Natasha.CSharp" Version="5.2.2.1"/>
|
||||
<PackageReference Include="Fake.AspNetCore" Version="8.0.0-preview.5" />
|
||||
<PackageReference Include="Fake.EventBus.RabbitMQ" Version="8.0.0-preview.6" />
|
||||
<PackageReference Include="Fake.ObjectMapping.AutoMapper" Version="8.0.0-preview.5" />
|
||||
<PackageReference Include="Fake.AspNetCore" Version="8.0.0-preview10" />
|
||||
<PackageReference Include="Fake.EventBus.RabbitMQ" Version="8.0.0-preview10" />
|
||||
<PackageReference Include="Fake.ObjectMapping.AutoMapper" Version="8.0.0-preview10" />
|
||||
<PackageReference Include="FreeRedis" Version="1.3.6" />
|
||||
</ItemGroup>
|
||||
|
||||
|
||||
@ -51,7 +51,7 @@ public class ServiceProviderService : ApplicationService
|
||||
/// <returns></returns>
|
||||
[HttpGet("ServiceProvider/GetServiceProviderInterfaceCascadedList")]
|
||||
public async Task<List<ServiceProviderInterfaceCascadedObjectValue>>
|
||||
GetServiceProviderInterfaceCascadedListAsync([Required] int interfaceId, string serviceProviderName)
|
||||
GetServiceProviderInterfaceCascadedListAsync([Required] int interfaceId, string? serviceProviderName)
|
||||
{
|
||||
return await _serviceProviderRepository.GetServiceProviderInterfaceCascadedListAsync(interfaceId,
|
||||
serviceProviderName);
|
||||
|
||||
@ -11,6 +11,6 @@
|
||||
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Fake.DomainDrivenDesign" Version="8.0.0-preview.5" />
|
||||
<PackageReference Include="Fake.DomainDrivenDesign" Version="8.0.0-preview10" />
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
using Fake.Modularity;
|
||||
using Fake.DomainDrivenDesign;
|
||||
using Fake.Modularity;
|
||||
using InterfaceForward.Domain.Shared.Helpers;
|
||||
using InterfaceForward.Domain.Shared.Options;
|
||||
using Microsoft.Extensions.Configuration;
|
||||
@ -6,6 +7,7 @@ using Microsoft.Extensions.DependencyInjection;
|
||||
|
||||
namespace InterfaceForward.Domain.Shared
|
||||
{
|
||||
[DependsOn(typeof(FakeDomainDrivenDesignModule))]
|
||||
public class InterfaceForwardDomainSharedModule : FakeModule
|
||||
{
|
||||
public override void ConfigureServices(ServiceConfigurationContext context)
|
||||
|
||||
@ -10,7 +10,7 @@ namespace InterfaceForward.Repositories;
|
||||
/// <typeparam name="T"></typeparam>
|
||||
public class BasicRepository<T> : SqlSugarRepository<InterfaceForwardDbContext, T>, IBasicRepository<T>where T : class, IAggregateRoot, new()
|
||||
{
|
||||
protected ISqlSugarClient Context => GetDbContextAsync().Result.SqlSugarClient;
|
||||
protected ISqlSugarClient Context => GetDbContextAsync().Result;
|
||||
|
||||
public ISugarQueryable<T> AsQueryable()
|
||||
{
|
||||
@ -37,7 +37,7 @@ public class BasicRepository<T> : SqlSugarRepository<InterfaceForwardDbContext,
|
||||
Expression<Func<T, TResult>> resultExpression)
|
||||
{
|
||||
var ctx = await GetDbContextAsync();
|
||||
return await ctx.SqlSugarClient.Queryable<T>().Where(whereExpression).Select(resultExpression).ToListAsync();
|
||||
return await ctx.Queryable<T>().Where(whereExpression).Select(resultExpression).ToListAsync();
|
||||
}
|
||||
|
||||
public async Task<int> CountAsync(Expression<Func<T, bool>> exp)
|
||||
|
||||
@ -8,5 +8,5 @@ public class GetMapListInputVO : PagedQueryInput
|
||||
[Required]
|
||||
public int InterfaceId { get; set; }
|
||||
|
||||
public string NameOrCode { get; set; }
|
||||
public string? NameOrCode { get; set; }
|
||||
}
|
||||
@ -15,6 +15,6 @@ namespace InterfaceForward.Repositories.Interface.ValueObjects
|
||||
///<summary>
|
||||
/// 接口名
|
||||
///</summary>
|
||||
public string NameOrCode { get; set; }
|
||||
public string? NameOrCode { get; set; }
|
||||
}
|
||||
}
|
||||
@ -7,7 +7,7 @@
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Fake.SqlSugarCore" Version="8.0.0-preview.5" />
|
||||
<PackageReference Include="Fake.SqlSugarCore" Version="8.0.0-preview10" />
|
||||
<PackageReference Include="NEST" Version="7.17.5" />
|
||||
</ItemGroup>
|
||||
|
||||
|
||||
@ -24,4 +24,11 @@ public class InterfaceForwardDbContext:SugarDbContext<InterfaceForwardDbContext>
|
||||
|
||||
base.ConfigureEntityService(property, column);
|
||||
}
|
||||
|
||||
protected override void ConfigureGlobalFilters()
|
||||
{
|
||||
//需自定义扩展
|
||||
SqlSugarClient.QueryFilter.AddTableFilter<ISoftDelete>(u =>
|
||||
DataFilter.IsEnabled<ISoftDelete>() == false || !u.IsDeleted);
|
||||
}
|
||||
}
|
||||
@ -22,7 +22,7 @@ namespace InterfaceForward.Repositories.ServiceProvider.Services
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
Task<List<ServiceProviderInterfaceCascadedObjectValue>> GetServiceProviderInterfaceCascadedListAsync(
|
||||
int interfaceId, string serviceProviderName);
|
||||
int interfaceId, string? serviceProviderName);
|
||||
|
||||
/// <summary>
|
||||
/// 更新服务商
|
||||
|
||||
@ -46,7 +46,7 @@ public class ServiceProviderRepository : BasicRepository<ServiceProviderEntity>,
|
||||
|
||||
/// <inheritdoc />
|
||||
public async Task<List<ServiceProviderInterfaceCascadedObjectValue>>
|
||||
GetServiceProviderInterfaceCascadedListAsync(int interfaceId, string serviceProviderName)
|
||||
GetServiceProviderInterfaceCascadedListAsync(int interfaceId, string? serviceProviderName)
|
||||
{
|
||||
var mappedIds = await Context.Queryable<InterfaceMapEntity>()
|
||||
.LeftJoin<InterfaceEntity>((x, y) => x.DownStreamId == y.Id)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user