解决用户
This commit is contained in:
parent
310988d583
commit
9870fb0ae7
@ -1,5 +0,0 @@
|
|||||||
{
|
|
||||||
"sdk": {
|
|
||||||
"version": "8.0.303"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@ -19,7 +19,7 @@
|
|||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ProjectReference Include="..\TrackCenter.Application\TrackCenter.Application.csproj" />
|
<ProjectReference Include="..\TrackCenter.Application\TrackCenter.Application.csproj" />
|
||||||
<ProjectReference Include="..\TrackCenter.Repository\TrackCenter.Repository.csproj" />
|
<ProjectReference Include="..\TrackCenter.Repository\TrackCenter.Repository.csproj" />
|
||||||
<PackageReference Include="Fake.Autofac" Version="8.0.0-preview12" />
|
<PackageReference Include="Fake.Autofac" Version="8.0.0-preview17" />
|
||||||
<PackageReference Include="Serilog.AspNetCore" Version="9.0.0" />
|
<PackageReference Include="Serilog.AspNetCore" Version="9.0.0" />
|
||||||
<PackageReference Include="Serilog.Sinks.Elasticsearch" Version="10.0.0" />
|
<PackageReference Include="Serilog.Sinks.Elasticsearch" Version="10.0.0" />
|
||||||
<PackageReference Include="Serilog.Sinks.Console" Version="6.0.0" />
|
<PackageReference Include="Serilog.Sinks.Console" Version="6.0.0" />
|
||||||
|
|||||||
@ -7,6 +7,7 @@ using FluentValidation.AspNetCore;
|
|||||||
using Hangfire;
|
using Hangfire;
|
||||||
using TrackCenter.Application;
|
using TrackCenter.Application;
|
||||||
using TrackCenter.Application.Hangfire;
|
using TrackCenter.Application.Hangfire;
|
||||||
|
using TrackCenter.Domain.Extensions;
|
||||||
using TrackCenter.Repository;
|
using TrackCenter.Repository;
|
||||||
|
|
||||||
namespace TrackCenter.Api;
|
namespace TrackCenter.Api;
|
||||||
@ -28,6 +29,7 @@ public class TrackCenterApiModule : FakeModule
|
|||||||
options.ScanApplicationServices<TrackCenterApplicationModule>();
|
options.ScanApplicationServices<TrackCenterApplicationModule>();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
services.AddMvc().AddNewtonsoftJson();
|
||||||
|
|
||||||
services.AddFakeExceptionFilter()
|
services.AddFakeExceptionFilter()
|
||||||
.AddFakeValidationActionFilter()
|
.AddFakeValidationActionFilter()
|
||||||
@ -67,12 +69,17 @@ public class TrackCenterApiModule : FakeModule
|
|||||||
{
|
{
|
||||||
DisplayStorageConnectionString = false,
|
DisplayStorageConnectionString = false,
|
||||||
IgnoreAntiforgeryToken = true,
|
IgnoreAntiforgeryToken = true,
|
||||||
AppPath = configuration["Swagger:JsonUrlPrefix"]! + "/",
|
AppPath = "",
|
||||||
PrefixPath = System.Diagnostics.Debugger.IsAttached
|
PrefixPath = "",
|
||||||
? ""
|
|
||||||
: configuration["Swagger:JsonUrlPrefix"]!,
|
|
||||||
DashboardTitle = "轨迹预警任务",
|
DashboardTitle = "轨迹预警任务",
|
||||||
Authorization = [new AnonymousHangfireAuthorizationFilter()]
|
Authorization = [new AnonymousHangfireAuthorizationFilter()]
|
||||||
});
|
});
|
||||||
|
|
||||||
|
LogHelper.Info("Application started", true);
|
||||||
|
}
|
||||||
|
|
||||||
|
public override void Shutdown(ApplicationShutdownContext context)
|
||||||
|
{
|
||||||
|
LogHelper.Info("Application stoped", true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,6 +1,5 @@
|
|||||||
using DotNetCore.CAP;
|
using DotNetCore.CAP;
|
||||||
using InterfaceForward.Domain.Shared.Helpers;
|
using InterfaceForward.Domain.Shared.Helpers;
|
||||||
using Microsoft.Extensions.Logging;
|
|
||||||
using TrackCenter.Application.Events;
|
using TrackCenter.Application.Events;
|
||||||
using TrackCenter.Application.Kafka;
|
using TrackCenter.Application.Kafka;
|
||||||
using TrackCenter.Application.Queries;
|
using TrackCenter.Application.Queries;
|
||||||
|
|||||||
@ -8,11 +8,6 @@ public class UpsertOrderInput : UpdateOrderInput
|
|||||||
/// 客户
|
/// 客户
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public string Customer { get; set; }
|
public string Customer { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 当前操作人
|
|
||||||
/// </summary>
|
|
||||||
public int OptionUserId { get; set; }
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public class BatchUpsertOrderInput
|
public class BatchUpsertOrderInput
|
||||||
|
|||||||
@ -132,11 +132,6 @@ public class UpsertTrackInput : OrderNoInfo
|
|||||||
[Range(-12, 12)]
|
[Range(-12, 12)]
|
||||||
public float? DestinationTimeZone { get; set; }
|
public float? DestinationTimeZone { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 当前操作人
|
|
||||||
/// </summary>
|
|
||||||
public int OptionUserId { get; set; }
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 重复的情况下,用什么比较
|
/// 重复的情况下,用什么比较
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|||||||
@ -47,7 +47,7 @@ public class TrackDeleteEvent
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// 操作人id
|
/// 操作人id
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public Guid OperationManId { get; set; }
|
public int OperationManId { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 已经处理过的订单
|
/// 已经处理过的订单
|
||||||
|
|||||||
@ -32,7 +32,7 @@ public class TrackUpsertEvent
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// 操作人id
|
/// 操作人id
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public Guid OperationManId { get; set; }
|
public int OperationManId { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// true新增,false更新
|
/// true新增,false更新
|
||||||
|
|||||||
@ -1,5 +1,8 @@
|
|||||||
|
using System.Security.Claims;
|
||||||
|
|
||||||
namespace TrackCenter.Application.Services;
|
namespace TrackCenter.Application.Services;
|
||||||
|
|
||||||
public class ApplicationServiceBase : ApplicationService
|
public class ApplicationServiceBase : ApplicationService
|
||||||
{
|
{
|
||||||
|
public int CurrentUserId => CurrentUser.GetId<int>();
|
||||||
}
|
}
|
||||||
|
|||||||
@ -74,7 +74,7 @@ public partial class OrderService
|
|||||||
x.Id,
|
x.Id,
|
||||||
x.OrderNo,
|
x.OrderNo,
|
||||||
x.OrderType,
|
x.OrderType,
|
||||||
AppKey = x.AppKey,
|
x.AppKey,
|
||||||
x.Customer
|
x.Customer
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@ -64,7 +64,7 @@ public partial class OrderService : ApplicationServiceBase
|
|||||||
OrderNo = input.OrderNo,
|
OrderNo = input.OrderNo,
|
||||||
OptionType = OrderOperationType.修改订单.ToString(),
|
OptionType = OrderOperationType.修改订单.ToString(),
|
||||||
Content = input.ToJson(),
|
Content = input.ToJson(),
|
||||||
CreateUserId = CurrentUser.Id ?? Guid.Empty,
|
CreateUserId = CurrentUserId,
|
||||||
CreateUserName = CurrentUser.UserName ?? string.Empty,
|
CreateUserName = CurrentUser.UserName ?? string.Empty,
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -90,7 +90,7 @@ public partial class OrderService : ApplicationServiceBase
|
|||||||
OrderNo = input.OrderNo,
|
OrderNo = input.OrderNo,
|
||||||
OptionType = nameof(OrderOperationType.创建订单),
|
OptionType = nameof(OrderOperationType.创建订单),
|
||||||
Content = input.ToJson(),
|
Content = input.ToJson(),
|
||||||
CreateUserId = CurrentUser.Id ?? Guid.Empty,
|
CreateUserId = CurrentUserId,
|
||||||
CreateUserName = CurrentUser.UserName ?? string.Empty,
|
CreateUserName = CurrentUser.UserName ?? string.Empty,
|
||||||
CreateTime = DateTime.Now
|
CreateTime = DateTime.Now
|
||||||
};
|
};
|
||||||
@ -142,7 +142,7 @@ public partial class OrderService : ApplicationServiceBase
|
|||||||
OrderNo = order.OrderNo,
|
OrderNo = order.OrderNo,
|
||||||
OptionType = nameof(OrderOperationType.修改订单),
|
OptionType = nameof(OrderOperationType.修改订单),
|
||||||
Content = input2.ToJson(),
|
Content = input2.ToJson(),
|
||||||
CreateUserId = CurrentUser.Id ?? Guid.Empty,
|
CreateUserId = CurrentUserId,
|
||||||
CreateUserName = CurrentUser.UserName ?? string.Empty,
|
CreateUserName = CurrentUser.UserName ?? string.Empty,
|
||||||
CreateTime = DateTime.Now
|
CreateTime = DateTime.Now
|
||||||
});
|
});
|
||||||
@ -176,7 +176,7 @@ public partial class OrderService : ApplicationServiceBase
|
|||||||
OrderNo = order.OrderNo,
|
OrderNo = order.OrderNo,
|
||||||
OptionType = OrderOperationType.创建订单.ToString(),
|
OptionType = OrderOperationType.创建订单.ToString(),
|
||||||
Content = insertInput.ToJson(),
|
Content = insertInput.ToJson(),
|
||||||
CreateUserId = CurrentUser.Id ?? Guid.Empty,
|
CreateUserId = CurrentUserId,
|
||||||
CreateUserName = CurrentUser.UserName ?? string.Empty,
|
CreateUserName = CurrentUser.UserName ?? string.Empty,
|
||||||
CreateTime = DateTime.Now
|
CreateTime = DateTime.Now
|
||||||
});
|
});
|
||||||
|
|||||||
@ -139,7 +139,7 @@ public partial class TrackService : ApplicationServiceBase
|
|||||||
AppKey = tracks.First().AppKey,
|
AppKey = tracks.First().AppKey,
|
||||||
Source = input.Source,
|
Source = input.Source,
|
||||||
OperationMan = CurrentUser.UserName,
|
OperationMan = CurrentUser.UserName,
|
||||||
OperationManId = CurrentUser.Id ?? Guid.Empty,
|
OperationManId = CurrentUserId,
|
||||||
};
|
};
|
||||||
await _capPublisher.PublishAsync(GlobalConst.TrackDeleteSubscribe, @event);
|
await _capPublisher.PublishAsync(GlobalConst.TrackDeleteSubscribe, @event);
|
||||||
}
|
}
|
||||||
@ -341,7 +341,7 @@ public partial class TrackService : ApplicationServiceBase
|
|||||||
NewTrackTime = input.NewTrackTime,
|
NewTrackTime = input.NewTrackTime,
|
||||||
TrackTimeZone = input.TrackTimeZone ?? GlobalConst.NoneTrackTimeZone, //时区为空使用一个特殊值填充
|
TrackTimeZone = input.TrackTimeZone ?? GlobalConst.NoneTrackTimeZone, //时区为空使用一个特殊值填充
|
||||||
OperationMan = CurrentUser.UserName,
|
OperationMan = CurrentUser.UserName,
|
||||||
OperationManId = CurrentUser.Id ?? Guid.Empty,
|
OperationManId = CurrentUserId,
|
||||||
IsExternal = input.IsExternal,
|
IsExternal = input.IsExternal,
|
||||||
Source = input.Source,
|
Source = input.Source,
|
||||||
Remarks = input.Remarks,
|
Remarks = input.Remarks,
|
||||||
|
|||||||
@ -8,9 +8,9 @@
|
|||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="Fake.AspNetCore" Version="8.0.0-preview12" />
|
<PackageReference Include="Fake.AspNetCore" Version="8.0.0-preview17" />
|
||||||
<PackageReference Include="Fake.EventBus.RabbitMQ" Version="8.0.0-preview12" />
|
<PackageReference Include="Fake.EventBus.RabbitMQ" Version="8.0.0-preview17" />
|
||||||
<PackageReference Include="Fake.ObjectMapping.AutoMapper" Version="8.0.0-preview12" />
|
<PackageReference Include="Fake.ObjectMapping.AutoMapper" Version="8.0.0-preview17" />
|
||||||
|
|
||||||
<PackageReference Include="Aliyun.OSS.SDK.NetCore" Version="2.14.1" />
|
<PackageReference Include="Aliyun.OSS.SDK.NetCore" Version="2.14.1" />
|
||||||
<PackageReference Include="Confluent.Kafka" Version="2.10.0" />
|
<PackageReference Include="Confluent.Kafka" Version="2.10.0" />
|
||||||
|
|||||||
@ -59,9 +59,7 @@ public class TrackCenterApplicationModule : FakeModule
|
|||||||
|
|
||||||
options.UseDashboard(dashboardOptions =>
|
options.UseDashboard(dashboardOptions =>
|
||||||
{
|
{
|
||||||
dashboardOptions.PathBase = System.Diagnostics.Debugger.IsAttached
|
dashboardOptions.PathBase = "";
|
||||||
? ""
|
|
||||||
: configuration["Swagger:JsonUrlPrefix"]!;
|
|
||||||
});
|
});
|
||||||
options.FailedThresholdCallback = faileCalback =>
|
options.FailedThresholdCallback = faileCalback =>
|
||||||
{
|
{
|
||||||
|
|||||||
@ -4,7 +4,7 @@ using Fake.Domain.Entities.Auditing;
|
|||||||
namespace TrackCenter.Domain.Aggregates.KPIAreaAggregate;
|
namespace TrackCenter.Domain.Aggregates.KPIAreaAggregate;
|
||||||
|
|
||||||
[SugarTable("t_area", TableDescription = "KPI分区主表")]
|
[SugarTable("t_area", TableDescription = "KPI分区主表")]
|
||||||
public class RuleAreaEntity : AggregateRoot<int>, IHasCreateUserId, IHasCreateTime, IHasUpdateUserId, IHasUpdateTime
|
public class RuleAreaEntity : AggregateRoot<int>, IHasCreateUserId<int>, IHasCreateTime, IHasUpdateUserId<int>, IHasUpdateTime
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 自增主键
|
/// 自增主键
|
||||||
@ -28,7 +28,7 @@ public class RuleAreaEntity : AggregateRoot<int>, IHasCreateUserId, IHasCreateTi
|
|||||||
/// 创建人
|
/// 创建人
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[SugarColumn(ColumnName = "CreateUserId", ColumnDescription = "创建人")]
|
[SugarColumn(ColumnName = "CreateUserId", ColumnDescription = "创建人")]
|
||||||
public Guid CreateUserId { get; set; }
|
public int CreateUserId { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 创建时间
|
/// 创建时间
|
||||||
@ -40,7 +40,7 @@ public class RuleAreaEntity : AggregateRoot<int>, IHasCreateUserId, IHasCreateTi
|
|||||||
/// 更新人
|
/// 更新人
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[SugarColumn(ColumnName = "UpdateUserId", ColumnDescription = "更新人")]
|
[SugarColumn(ColumnName = "UpdateUserId", ColumnDescription = "更新人")]
|
||||||
public Guid UpdateUserId { get; set; }
|
public int UpdateUserId { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 更新时间
|
/// 更新时间
|
||||||
|
|||||||
@ -4,7 +4,7 @@ using Fake.Domain.Entities.Auditing;
|
|||||||
namespace TrackCenter.Domain.Aggregates.KPIAreaAggregate;
|
namespace TrackCenter.Domain.Aggregates.KPIAreaAggregate;
|
||||||
|
|
||||||
[SugarTable("t_area_details", TableDescription = "kpi 区域子表")]
|
[SugarTable("t_area_details", TableDescription = "kpi 区域子表")]
|
||||||
public class RuleAreaInfoEntity : Entity<int>, IHasCreateUserId, IHasCreateTime, IHasUpdateUserId, IHasUpdateTime
|
public class RuleAreaInfoEntity : Entity<int>, IHasCreateUserId<int>, IHasCreateTime, IHasUpdateUserId<int>, IHasUpdateTime
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 自增主键
|
/// 自增主键
|
||||||
@ -58,7 +58,7 @@ public class RuleAreaInfoEntity : Entity<int>, IHasCreateUserId, IHasCreateTime,
|
|||||||
/// 创建人
|
/// 创建人
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[SugarColumn(ColumnName = "CreateUserId", ColumnDescription = "创建人")]
|
[SugarColumn(ColumnName = "CreateUserId", ColumnDescription = "创建人")]
|
||||||
public Guid CreateUserId { get; set; }
|
public int CreateUserId { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 创建时间
|
/// 创建时间
|
||||||
@ -70,7 +70,7 @@ public class RuleAreaInfoEntity : Entity<int>, IHasCreateUserId, IHasCreateTime,
|
|||||||
/// 更新人
|
/// 更新人
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[SugarColumn(ColumnName = "UpdateUserId", IsNullable = false, ColumnDescription = "更新人")]
|
[SugarColumn(ColumnName = "UpdateUserId", IsNullable = false, ColumnDescription = "更新人")]
|
||||||
public Guid UpdateUserId { get; set; }
|
public int UpdateUserId { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 更新时间
|
/// 更新时间
|
||||||
|
|||||||
@ -7,7 +7,7 @@ namespace TrackCenter.Domain.Aggregates.OrderAggregate;
|
|||||||
/// 轨迹订单主表
|
/// 轨迹订单主表
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[SugarTable("t_order")]
|
[SugarTable("t_order")]
|
||||||
public class OrderEntity : FullAuditedAggregateRoot<int>
|
public class OrderEntity : FullAuditedAggregateRoot<int, int>
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 自增主键
|
/// 自增主键
|
||||||
|
|||||||
@ -7,7 +7,7 @@ namespace TrackCenter.Domain.Aggregates.OrderAggregate;
|
|||||||
/// 订单航班表(1:N)
|
/// 订单航班表(1:N)
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[SugarTable("t_order_flight")]
|
[SugarTable("t_order_flight")]
|
||||||
public class OrderFlightEntity : CreateAuditedEntity<int>, ISoftDelete
|
public class OrderFlightEntity : CreateAuditedEntity<int, int>, ISoftDelete
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 自增主键
|
/// 自增主键
|
||||||
@ -33,18 +33,6 @@ public class OrderFlightEntity : CreateAuditedEntity<int>, ISoftDelete
|
|||||||
[SugarColumn(ColumnName = "OrderId")]
|
[SugarColumn(ColumnName = "OrderId")]
|
||||||
public int OrderId { get; set; }
|
public int OrderId { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 创建人
|
|
||||||
/// </summary>
|
|
||||||
[SugarColumn(ColumnName = "CreateUserId")]
|
|
||||||
public override Guid CreateUserId { get; set; }
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 创建时间
|
|
||||||
/// </summary>
|
|
||||||
[SugarColumn(ColumnName = "CreateTime")]
|
|
||||||
public override DateTime CreateTime { get; set; }
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 是否删除
|
/// 是否删除
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|||||||
@ -6,7 +6,7 @@ namespace TrackCenter.Domain.Aggregates.OrderAggregate;
|
|||||||
/// 轨迹订单关联表(1:N)
|
/// 轨迹订单关联表(1:N)
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[SugarTable("t_order_link")]
|
[SugarTable("t_order_link")]
|
||||||
public class OrderLinkEntity : CreateAuditedEntity<int>, ISoftDelete
|
public class OrderLinkEntity : CreateAuditedEntity<int, int>, ISoftDelete
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 自增主键
|
/// 自增主键
|
||||||
@ -26,18 +26,6 @@ public class OrderLinkEntity : CreateAuditedEntity<int>, ISoftDelete
|
|||||||
[SugarColumn(ColumnName = "LinkOrderId")]
|
[SugarColumn(ColumnName = "LinkOrderId")]
|
||||||
public int LinkOrderId { get; set; }
|
public int LinkOrderId { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 创建人
|
|
||||||
/// </summary>
|
|
||||||
[SugarColumn(ColumnName = "CreateUserId")]
|
|
||||||
public int CreateUserId { get; set; }
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 创建时间
|
|
||||||
/// </summary>
|
|
||||||
[SugarColumn(ColumnName = "CreateTime")]
|
|
||||||
public DateTime CreateTime { get; set; }
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 是否删除
|
/// 是否删除
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|||||||
@ -38,7 +38,7 @@ public class OrderOperationRecordIndex : IdBaseIndex
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// 创建人
|
/// 创建人
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public Guid CreateUserId { get; set; }
|
public int CreateUserId { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 创建人姓名
|
/// 创建人姓名
|
||||||
|
|||||||
@ -79,7 +79,7 @@ public class OrderPullStatusEntity : FullAuditedEntity<int>
|
|||||||
/// 创建人
|
/// 创建人
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[SugarColumn(ColumnName = "CreateUserId")]
|
[SugarColumn(ColumnName = "CreateUserId")]
|
||||||
public Guid CreateUserId { get; set; }
|
public int CreateUserId { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 创建时间
|
/// 创建时间
|
||||||
@ -91,5 +91,5 @@ public class OrderPullStatusEntity : FullAuditedEntity<int>
|
|||||||
public DateTime? UpdateTime { get; set; }
|
public DateTime? UpdateTime { get; set; }
|
||||||
|
|
||||||
[SugarColumn(ColumnName = "UpdateUserId")]
|
[SugarColumn(ColumnName = "UpdateUserId")]
|
||||||
public Guid UpdateUserId { get; set; }
|
public int UpdateUserId { get; set; }
|
||||||
}
|
}
|
||||||
|
|||||||
@ -7,7 +7,7 @@ namespace TrackCenter.Domain.Aggregates.TrackContentAggregate;
|
|||||||
/// 轨迹内容
|
/// 轨迹内容
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[SugarTable("t_track_content")]
|
[SugarTable("t_track_content")]
|
||||||
public class TrackContentEntity : FullAuditedAggregateRoot<int>
|
public class TrackContentEntity : FullAuditedAggregateRoot<int, int>
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 自增主键
|
/// 自增主键
|
||||||
|
|||||||
@ -7,7 +7,7 @@ namespace TrackCenter.Domain.Aggregates.TrackFlagAggregate;
|
|||||||
/// 轨迹标记表
|
/// 轨迹标记表
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[SugarTable("t_track_flag")]
|
[SugarTable("t_track_flag")]
|
||||||
public class TrackFlagEntity : FullAuditedAggregateRoot<int>
|
public class TrackFlagEntity : FullAuditedAggregateRoot<int, int>
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 自增主键
|
/// 自增主键
|
||||||
|
|||||||
@ -7,7 +7,7 @@ namespace TrackCenter.Domain.Aggregates.TrackNodeAggregate;
|
|||||||
/// 轨迹节点主表
|
/// 轨迹节点主表
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[SugarTable("t_track_node", TableDescription = "轨迹节点主表")]
|
[SugarTable("t_track_node", TableDescription = "轨迹节点主表")]
|
||||||
public class TrackNodeEntity : FullAuditedAggregateRoot<int>
|
public class TrackNodeEntity : FullAuditedAggregateRoot<int, int>
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 自增主键
|
/// 自增主键
|
||||||
|
|||||||
@ -6,7 +6,7 @@ namespace TrackCenter.Domain.Aggregates.TrackPullAggregate;
|
|||||||
/// 轨迹拉取配置表
|
/// 轨迹拉取配置表
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[SugarTable("t_track_pull_config")]
|
[SugarTable("t_track_pull_config")]
|
||||||
public class TrackPullConfigEntity : FullAuditedAggregateRoot<int>
|
public class TrackPullConfigEntity : FullAuditedAggregateRoot<int, int>
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 自增主键
|
/// 自增主键
|
||||||
|
|||||||
@ -7,7 +7,7 @@ namespace TrackCenter.Domain.Aggregates.TrackPushAggregate;
|
|||||||
/// 轨迹推送配置表
|
/// 轨迹推送配置表
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[SugarTable("t_track_push_config")]
|
[SugarTable("t_track_push_config")]
|
||||||
public class TrackPushConfigEntity : FullAuditedAggregateRoot<int>
|
public class TrackPushConfigEntity : FullAuditedAggregateRoot<int, int>
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 自增主键
|
/// 自增主键
|
||||||
|
|||||||
@ -7,7 +7,7 @@ namespace TrackCenter.Domain.Aggregates.TrackStatusAggregate;
|
|||||||
/// 轨迹状态表
|
/// 轨迹状态表
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[SugarTable("t_track_status")]
|
[SugarTable("t_track_status")]
|
||||||
public class TrackStatusEntity : FullAuditedAggregateRoot<int>
|
public class TrackStatusEntity : FullAuditedAggregateRoot<int, int>
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 自增主键
|
/// 自增主键
|
||||||
|
|||||||
@ -4,7 +4,7 @@ using TrackCenter.Domain.SeedWork;
|
|||||||
namespace TrackCenter.Domain.Aggregates.WarningAggregate;
|
namespace TrackCenter.Domain.Aggregates.WarningAggregate;
|
||||||
|
|
||||||
[SugarTable("t_warning_notify_task", TableDescription = "预警通知任务")]
|
[SugarTable("t_warning_notify_task", TableDescription = "预警通知任务")]
|
||||||
public sealed class WarningNotifyTaskEntity : FullAuditedAggregateRoot<int>
|
public sealed class WarningNotifyTaskEntity : FullAuditedAggregateRoot<int, int>
|
||||||
{
|
{
|
||||||
[SugarColumn(ColumnName = "Id", IsPrimaryKey = true, IsIdentity = true)]
|
[SugarColumn(ColumnName = "Id", IsPrimaryKey = true, IsIdentity = true)]
|
||||||
public int Id { get; set; }
|
public int Id { get; set; }
|
||||||
|
|||||||
@ -6,7 +6,7 @@ namespace TrackCenter.Domain.Aggregates.WarningAggregate;
|
|||||||
// 预警规则主体
|
// 预警规则主体
|
||||||
[SugarTable("t_warning", TableDescription = "预警规则主体")]
|
[SugarTable("t_warning", TableDescription = "预警规则主体")]
|
||||||
[SugarIndex("IDX_Customer_AppKey", nameof(Customer), OrderByType.Asc, nameof(AppKey), OrderByType.Asc)]
|
[SugarIndex("IDX_Customer_AppKey", nameof(Customer), OrderByType.Asc, nameof(AppKey), OrderByType.Asc)]
|
||||||
public sealed class WarningRuleEntity : FullAuditedAggregateRoot<int>
|
public sealed class WarningRuleEntity : FullAuditedAggregateRoot<int, int>
|
||||||
{
|
{
|
||||||
[SugarColumn(ColumnName = "Id", IsPrimaryKey = true, IsIdentity = true)]
|
[SugarColumn(ColumnName = "Id", IsPrimaryKey = true, IsIdentity = true)]
|
||||||
public int Id { get; set; }
|
public int Id { get; set; }
|
||||||
|
|||||||
@ -9,11 +9,11 @@
|
|||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="NEST" Version="7.17.5" />
|
<PackageReference Include="NEST" Version="7.17.5" />
|
||||||
<PackageReference Include="Fake.SqlSugarCore" Version="8.0.0-preview12" />
|
<PackageReference Include="Fake.SqlSugarCore" Version="8.0.0-preview17" />
|
||||||
|
|
||||||
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
|
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
|
||||||
<PackageReference Include="Serilog" Version="4.2.3" />
|
<PackageReference Include="Serilog" Version="4.2.3" />
|
||||||
<PackageReference Include="Fake.DomainDrivenDesign" Version="8.0.0-preview12" />
|
<PackageReference Include="Fake.DomainDrivenDesign" Version="8.0.0-preview17" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
</Project>
|
</Project>
|
||||||
|
|||||||
@ -6,7 +6,7 @@ namespace TrackCenter.Domain.VEntities;
|
|||||||
/// 应用表
|
/// 应用表
|
||||||
///</summary>
|
///</summary>
|
||||||
[SugarTable("v_app")]
|
[SugarTable("v_app")]
|
||||||
public class VAppEntity : FullAuditedAggregateRoot<int>
|
public class VAppEntity : FullAuditedAggregateRoot<int, int>
|
||||||
{
|
{
|
||||||
///<summary>
|
///<summary>
|
||||||
/// 自增主键
|
/// 自增主键
|
||||||
|
|||||||
391
src/TrackCenter.Domain/VEntities/VUserEntity.cs
Normal file
391
src/TrackCenter.Domain/VEntities/VUserEntity.cs
Normal file
@ -0,0 +1,391 @@
|
|||||||
|
namespace TrackCenter.Domain.VEntities;
|
||||||
|
|
||||||
|
public class VUserEntity
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Desc:Id
|
||||||
|
/// Default:
|
||||||
|
/// Nullable:False
|
||||||
|
/// </summary>
|
||||||
|
[SugarColumn(IsPrimaryKey = true)]
|
||||||
|
public long Id { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Desc:头像
|
||||||
|
/// Default:
|
||||||
|
/// Nullable:True
|
||||||
|
/// </summary>
|
||||||
|
public string? Avatar { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Desc:签名
|
||||||
|
/// Default:
|
||||||
|
/// Nullable:True
|
||||||
|
/// </summary>
|
||||||
|
public string? Signature { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Desc:账号
|
||||||
|
/// Default:
|
||||||
|
/// Nullable:False
|
||||||
|
/// </summary>
|
||||||
|
public string Account { get; set; } = null!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Desc:密码
|
||||||
|
/// Default:
|
||||||
|
/// Nullable:False
|
||||||
|
/// </summary>
|
||||||
|
public string Password { get; set; } = null!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Desc:姓名
|
||||||
|
/// Default:
|
||||||
|
/// Nullable:True
|
||||||
|
/// </summary>
|
||||||
|
public string? Name { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Desc:昵称
|
||||||
|
/// Default:
|
||||||
|
/// Nullable:True
|
||||||
|
/// </summary>
|
||||||
|
public string? Nickname { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Desc:性别
|
||||||
|
/// Default:
|
||||||
|
/// Nullable:True
|
||||||
|
/// </summary>
|
||||||
|
public string? Gender { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Desc:出生日期
|
||||||
|
/// Default:
|
||||||
|
/// Nullable:True
|
||||||
|
/// </summary>
|
||||||
|
public string? Birthday { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Desc:民族
|
||||||
|
/// Default:
|
||||||
|
/// Nullable:True
|
||||||
|
/// </summary>
|
||||||
|
public string? Nation { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Desc:籍贯
|
||||||
|
/// Default:
|
||||||
|
/// Nullable:True
|
||||||
|
/// </summary>
|
||||||
|
public string? NativePlace { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Desc:家庭住址
|
||||||
|
/// Default:
|
||||||
|
/// Nullable:True
|
||||||
|
/// </summary>
|
||||||
|
public string? HomeAddress { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Desc:通信地址
|
||||||
|
/// Default:
|
||||||
|
/// Nullable:True
|
||||||
|
/// </summary>
|
||||||
|
public string? MailingAddress { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Desc:证件类型
|
||||||
|
/// Default:
|
||||||
|
/// Nullable:True
|
||||||
|
/// </summary>
|
||||||
|
public string? IdCardType { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Desc:证件号码
|
||||||
|
/// Default:
|
||||||
|
/// Nullable:True
|
||||||
|
/// </summary>
|
||||||
|
public string? IdCardNumber { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Desc:文化程度
|
||||||
|
/// Default:
|
||||||
|
/// Nullable:True
|
||||||
|
/// </summary>
|
||||||
|
public string? CultureLevel { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Desc:政治面貌
|
||||||
|
/// Default:
|
||||||
|
/// Nullable:True
|
||||||
|
/// </summary>
|
||||||
|
public string? PoliticalOutlook { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Desc:毕业院校
|
||||||
|
/// Default:
|
||||||
|
/// Nullable:True
|
||||||
|
/// </summary>
|
||||||
|
public string? College { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Desc:学历
|
||||||
|
/// Default:
|
||||||
|
/// Nullable:True
|
||||||
|
/// </summary>
|
||||||
|
public string? Education { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Desc:学制
|
||||||
|
/// Default:
|
||||||
|
/// Nullable:True
|
||||||
|
/// </summary>
|
||||||
|
public string? EduLength { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Desc:学位
|
||||||
|
/// Default:
|
||||||
|
/// Nullable:True
|
||||||
|
/// </summary>
|
||||||
|
public string? Degree { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Desc:手机
|
||||||
|
/// Default:
|
||||||
|
/// Nullable:True
|
||||||
|
/// </summary>
|
||||||
|
public string? Phone { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Desc:邮箱
|
||||||
|
/// Default:
|
||||||
|
/// Nullable:True
|
||||||
|
/// </summary>
|
||||||
|
public string? Email { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Desc:家庭电话
|
||||||
|
/// Default:
|
||||||
|
/// Nullable:True
|
||||||
|
/// </summary>
|
||||||
|
public string? HomeTel { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Desc:办公电话
|
||||||
|
/// Default:
|
||||||
|
/// Nullable:True
|
||||||
|
/// </summary>
|
||||||
|
public string? OfficeTel { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Desc:紧急联系人
|
||||||
|
/// Default:
|
||||||
|
/// Nullable:True
|
||||||
|
/// </summary>
|
||||||
|
public string? EmergencyContact { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Desc:紧急联系人电话
|
||||||
|
/// Default:
|
||||||
|
/// Nullable:True
|
||||||
|
/// </summary>
|
||||||
|
public string? EmergencyPhone { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Desc:紧急联系人地址
|
||||||
|
/// Default:
|
||||||
|
/// Nullable:True
|
||||||
|
/// </summary>
|
||||||
|
public string? EmergencyAddress { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Desc:员工编号
|
||||||
|
/// Default:
|
||||||
|
/// Nullable:True
|
||||||
|
/// </summary>
|
||||||
|
public string? EmpNo { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Desc:入职日期
|
||||||
|
/// Default:
|
||||||
|
/// Nullable:True
|
||||||
|
/// </summary>
|
||||||
|
public string? EntryDate { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Desc:机构id
|
||||||
|
/// Default:
|
||||||
|
/// Nullable:False
|
||||||
|
/// </summary>
|
||||||
|
public long OrgId { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Desc:职位id
|
||||||
|
/// Default:
|
||||||
|
/// Nullable:False
|
||||||
|
/// </summary>
|
||||||
|
public long PositionId { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Desc:职级
|
||||||
|
/// Default:
|
||||||
|
/// Nullable:True
|
||||||
|
/// </summary>
|
||||||
|
public string? PositionLevel { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Desc:主管id
|
||||||
|
/// Default:
|
||||||
|
/// Nullable:True
|
||||||
|
/// </summary>
|
||||||
|
public long? DirectorId { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Desc:密码提醒修改时间
|
||||||
|
/// Default:
|
||||||
|
/// Nullable:True
|
||||||
|
/// </summary>
|
||||||
|
public DateTime? PwdRemindUpdateTime { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Desc:上次登录ip
|
||||||
|
/// Default:
|
||||||
|
/// Nullable:True
|
||||||
|
/// </summary>
|
||||||
|
public string? LastLoginIp { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Desc:上次登录地点
|
||||||
|
/// Default:
|
||||||
|
/// Nullable:True
|
||||||
|
/// </summary>
|
||||||
|
public string? LastLoginAddress { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Desc:上次登录时间
|
||||||
|
/// Default:
|
||||||
|
/// Nullable:True
|
||||||
|
/// </summary>
|
||||||
|
public DateTime? LastLoginTime { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Desc:上次登录设备
|
||||||
|
/// Default:
|
||||||
|
/// Nullable:True
|
||||||
|
/// </summary>
|
||||||
|
public string? LastLoginDevice { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Desc:最新登录ip
|
||||||
|
/// Default:
|
||||||
|
/// Nullable:True
|
||||||
|
/// </summary>
|
||||||
|
public string? LatestLoginIp { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Desc:最新登录地点
|
||||||
|
/// Default:
|
||||||
|
/// Nullable:True
|
||||||
|
/// </summary>
|
||||||
|
public string? LatestLoginAddress { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Desc:最新登录时间
|
||||||
|
/// Default:
|
||||||
|
/// Nullable:True
|
||||||
|
/// </summary>
|
||||||
|
public DateTime? LatestLoginTime { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Desc:最新登录设备
|
||||||
|
/// Default:
|
||||||
|
/// Nullable:True
|
||||||
|
/// </summary>
|
||||||
|
public string? LatestLoginDevice { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Desc:排序码
|
||||||
|
/// Default:
|
||||||
|
/// Nullable:True
|
||||||
|
/// </summary>
|
||||||
|
public int? SortCode { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Desc:默认模块
|
||||||
|
/// Default:
|
||||||
|
/// Nullable:True
|
||||||
|
/// </summary>
|
||||||
|
public long? DefaultModule { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Desc:状态
|
||||||
|
/// Default:ENABLE
|
||||||
|
/// Nullable:True
|
||||||
|
/// </summary>
|
||||||
|
public string? Status { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Desc:创建时间
|
||||||
|
/// Default:
|
||||||
|
/// Nullable:True
|
||||||
|
/// </summary>
|
||||||
|
public DateTime? CreateTime { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Desc:更新时间
|
||||||
|
/// Default:
|
||||||
|
/// Nullable:True
|
||||||
|
/// </summary>
|
||||||
|
public DateTime? UpdateTime { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Desc:创建者Id
|
||||||
|
/// Default:
|
||||||
|
/// Nullable:True
|
||||||
|
/// </summary>
|
||||||
|
public long? CreateUserId { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Desc:修改者Id
|
||||||
|
/// Default:
|
||||||
|
/// Nullable:True
|
||||||
|
/// </summary>
|
||||||
|
public long? UpdateUserId { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Desc:创建人
|
||||||
|
/// Default:
|
||||||
|
/// Nullable:True
|
||||||
|
/// </summary>
|
||||||
|
public string? CreateUser { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Desc:更新人
|
||||||
|
/// Default:
|
||||||
|
/// Nullable:True
|
||||||
|
/// </summary>
|
||||||
|
public string? UpdateUser { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Desc:软删除
|
||||||
|
/// Default:true
|
||||||
|
/// Nullable:True
|
||||||
|
/// </summary>
|
||||||
|
public bool? IsDelete { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Desc:扩展信息
|
||||||
|
/// Default:
|
||||||
|
/// Nullable:True
|
||||||
|
/// </summary>
|
||||||
|
public string? ExtJson { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Desc:用户id(特意映射)
|
||||||
|
/// Default:
|
||||||
|
/// Nullable:False
|
||||||
|
/// </summary>
|
||||||
|
[SugarColumn(IsIdentity = true)]
|
||||||
|
public int UserId { get; set; }
|
||||||
|
}
|
||||||
@ -63,15 +63,15 @@ public class KpiAreaRepository : BasicRepository<RuleAreaEntity>, IKpiAreaReposi
|
|||||||
public async Task<PagedResult<RuleAreaInfoDto>> GetAreaInfos(QueryAreaInfoRequest query)
|
public async Task<PagedResult<RuleAreaInfoDto>> GetAreaInfos(QueryAreaInfoRequest query)
|
||||||
{
|
{
|
||||||
return await Context.Queryable<RuleAreaInfoEntity>()
|
return await Context.Queryable<RuleAreaInfoEntity>()
|
||||||
.InnerJoin<VCountryEntity>((x, c) => x.CountryCode == c.Digit2Code)
|
//.InnerJoin<VCountryEntity>((x, c) => x.CountryCode == c.Digit2Code)
|
||||||
.Where(x => x.AreaId == query.AreaId)
|
.Where(x => x.AreaId == query.AreaId)
|
||||||
.OrderBy(x => x.UpdateTime, OrderByType.Desc)
|
.OrderBy(x => x.UpdateTime, OrderByType.Desc)
|
||||||
.Select<RuleAreaInfoDto>((x, c) => new RuleAreaInfoDto()
|
.Select<RuleAreaInfoDto>((x) => new RuleAreaInfoDto()
|
||||||
{
|
{
|
||||||
Id = x.Id,
|
Id = x.Id,
|
||||||
AreaId = x.AreaId,
|
AreaId = x.AreaId,
|
||||||
City = x.City,
|
City = x.City,
|
||||||
CountryId = c.Id,
|
//CountryId = c.Id,
|
||||||
CountryCode = x.CountryCode,
|
CountryCode = x.CountryCode,
|
||||||
CountryName = x.CountryName,
|
CountryName = x.CountryName,
|
||||||
LeftPostcode = x.LeftPostcode,
|
LeftPostcode = x.LeftPostcode,
|
||||||
|
|||||||
@ -49,8 +49,8 @@ public class TrackContentRepository : BasicRepository<TrackContentEntity>, ITrac
|
|||||||
{
|
{
|
||||||
var pagedList = await Context.Queryable<TrackContentEntity>()
|
var pagedList = await Context.Queryable<TrackContentEntity>()
|
||||||
.LeftJoin<TrackStatusEntity>((a, b) => a.TrackStatusId == b.Id && b.IsDeleted == false)
|
.LeftJoin<TrackStatusEntity>((a, b) => a.TrackStatusId == b.Id && b.IsDeleted == false)
|
||||||
.LeftJoin<VUserEntity>((a, b, e) => a.CreateUserId == e.Id && e.IsDeleted == false)
|
.LeftJoin<VUserEntity>((a, b, e) => a.CreateUserId == e.UserId && e.IsDelete == false)
|
||||||
.LeftJoin<VUserEntity>((a, b, e, f) => a.UpdateUserId == f.Id && f.IsDeleted == false)
|
.LeftJoin<VUserEntity>((a, b, e, f) => a.UpdateUserId == f.UserId && f.IsDelete == false)
|
||||||
.WhereIF(!input.AppKey.IsNullOrWhiteSpace(), (a, b, e, f) => a.AppKey == input.AppKey)
|
.WhereIF(!input.AppKey.IsNullOrWhiteSpace(), (a, b, e, f) => a.AppKey == input.AppKey)
|
||||||
.WhereIF(!input.Keywords.IsNullOrWhiteSpace(),
|
.WhereIF(!input.Keywords.IsNullOrWhiteSpace(),
|
||||||
(a, b, e, f) => a.Code.Contains(input.Keywords!) || a.Content.Contains(input.Keywords!)
|
(a, b, e, f) => a.Code.Contains(input.Keywords!) || a.Content.Contains(input.Keywords!)
|
||||||
|
|||||||
@ -39,8 +39,8 @@ public class TrackFlagRepository : BasicRepository<TrackFlagEntity>, ITrackFlagR
|
|||||||
PagedResult<GetTrackFlagListVO> pagedList = new PagedResult<GetTrackFlagListVO>();
|
PagedResult<GetTrackFlagListVO> pagedList = new PagedResult<GetTrackFlagListVO>();
|
||||||
pagedList = await Context.Queryable<TrackFlagEntity>()
|
pagedList = await Context.Queryable<TrackFlagEntity>()
|
||||||
.LeftJoin<VAppEntity>((a, b) => a.AppKey == b.AppKey && b.IsDeleted == false)
|
.LeftJoin<VAppEntity>((a, b) => a.AppKey == b.AppKey && b.IsDeleted == false)
|
||||||
.LeftJoin<VUserEntity>((a, b, c) => a.CreateUserId == c.Id && c.IsDeleted == false)
|
.LeftJoin<VUserEntity>((a, b, c) => a.CreateUserId == c.UserId && c.IsDelete == false)
|
||||||
.LeftJoin<VUserEntity>((a, b, c, d) => a.UpdateUserId == d.Id && d.IsDeleted == false)
|
.LeftJoin<VUserEntity>((a, b, c, d) => a.UpdateUserId == d.UserId && d.IsDelete == false)
|
||||||
.WhereIF(!input.AppKey.IsNullOrWhiteSpace(), (a, b, c, d) => a.AppKey == input.AppKey)
|
.WhereIF(!input.AppKey.IsNullOrWhiteSpace(), (a, b, c, d) => a.AppKey == input.AppKey)
|
||||||
.WhereIF(!input.Keywords.IsNullOrWhiteSpace(), (a, b, c, d) => SqlFunc.Contains(a.Code, input.Keywords))
|
.WhereIF(!input.Keywords.IsNullOrWhiteSpace(), (a, b, c, d) => SqlFunc.Contains(a.Code, input.Keywords))
|
||||||
.OrderByIF(input.SelectIds.IsNullOrEmpty(), (a, b, c, d) => a.CreateTime, OrderByType.Desc)
|
.OrderByIF(input.SelectIds.IsNullOrEmpty(), (a, b, c, d) => a.CreateTime, OrderByType.Desc)
|
||||||
|
|||||||
@ -1,6 +1,7 @@
|
|||||||
using TrackCenter.Domain.Aggregates.TrackNodeAggregate;
|
using TrackCenter.Domain.Aggregates.TrackNodeAggregate;
|
||||||
using TrackCenter.Domain.Aggregates.TrackStatusAggregate;
|
using TrackCenter.Domain.Aggregates.TrackStatusAggregate;
|
||||||
using TrackCenter.Domain.Dtos.TrackStatus;
|
using TrackCenter.Domain.Dtos.TrackStatus;
|
||||||
|
using TrackCenter.Domain.VEntities;
|
||||||
|
|
||||||
namespace TrackCenter.Repository.Repositories;
|
namespace TrackCenter.Repository.Repositories;
|
||||||
|
|
||||||
@ -40,8 +41,8 @@ public class TrackStatusRepository : BasicRepository<TrackStatusEntity>, ITrackS
|
|||||||
public async Task<PagedResult<GetTrackStatusListVO>> GetPageTrackStatus(GetPagedTrackStatusVO input)
|
public async Task<PagedResult<GetTrackStatusListVO>> GetPageTrackStatus(GetPagedTrackStatusVO input)
|
||||||
{
|
{
|
||||||
var pagedList = await Context.Queryable<TrackStatusEntity>()
|
var pagedList = await Context.Queryable<TrackStatusEntity>()
|
||||||
.LeftJoin<VUserEntity>((a, b) => a.CreateUserId == b.Id && b.IsDeleted == false)
|
.LeftJoin<VUserEntity>((a, b) => a.CreateUserId == b.UserId && b.IsDelete == false)
|
||||||
.LeftJoin<VUserEntity>((a, b, d) => a.UpdateUserId == d.Id && d.IsDeleted == false)
|
.LeftJoin<VUserEntity>((a, b, d) => a.UpdateUserId == d.UserId && d.IsDelete == false)
|
||||||
.InnerJoin<TrackNodeEntity>((a, b, d, e) => a.Node == e.Id && a.AppKey == e.AppKey)
|
.InnerJoin<TrackNodeEntity>((a, b, d, e) => a.Node == e.Id && a.AppKey == e.AppKey)
|
||||||
.WhereIF(!input.AppKey.IsNullOrWhiteSpace(), (a, b, d) => a.AppKey == input.AppKey)
|
.WhereIF(!input.AppKey.IsNullOrWhiteSpace(), (a, b, d) => a.AppKey == input.AppKey)
|
||||||
.WhereIF(!input.Keywords.IsNullOrWhiteSpace(),
|
.WhereIF(!input.Keywords.IsNullOrWhiteSpace(),
|
||||||
|
|||||||
@ -5,7 +5,7 @@ using TrackCenter.Domain.Aggregates.WarningAggregate.Transport;
|
|||||||
|
|
||||||
namespace TrackCenter.Repository.Repositories;
|
namespace TrackCenter.Repository.Repositories;
|
||||||
|
|
||||||
public sealed class WarningTaskRepository : BasicRepository<WarningNotifyTaskEntity>, IWarningTaskRepository, ITransientDependency
|
public class WarningTaskRepository : BasicRepository<WarningNotifyTaskEntity>, IWarningTaskRepository, ITransientDependency
|
||||||
{
|
{
|
||||||
#region 预警通知任务
|
#region 预警通知任务
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user