创建领域
This commit is contained in:
parent
bac642c96e
commit
ced9b2144b
@ -1,6 +1,6 @@
|
||||
using SJZY.Track.Domain;
|
||||
using SJZY.Expand.ABP.Core.Localization;
|
||||
using SJZY.Expand.ABP.Core.Localization;
|
||||
using SJZY.Track.Application.Localization;
|
||||
using SJZY.Track.Domain;
|
||||
using SJZY.UserCenter.Contracts;
|
||||
using SJZY.UserCenter.SharedModel;
|
||||
using Volo.Abp.AspNetCore.Mvc;
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
using AutoMapper;
|
||||
using SJZY.Track.Application.Dtos.Demo;
|
||||
using SJZY.Track.Domain.DemoAggregate;
|
||||
using SJZY.Track.Domain.DemoAggregate.Dtos;
|
||||
using SJZY.Track.Application.Dtos.Demo;
|
||||
|
||||
namespace SJZY.Track.Application.AutoMapper;
|
||||
|
||||
|
||||
@ -1,10 +1,4 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace SJZY.Track.Application.Dtos.TrackTemplates
|
||||
namespace SJZY.Track.Application.Dtos.TrackTemplates
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取轨迹模版分页输入
|
||||
|
||||
@ -1,11 +1,4 @@
|
||||
using Microsoft.OpenApi.Writers;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace SJZY.Track.Application.Dtos.TrackTemplates
|
||||
namespace SJZY.Track.Application.Dtos.TrackTemplates
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取轨迹模版详情
|
||||
|
||||
@ -2,7 +2,6 @@
|
||||
global using Microsoft.Extensions.DependencyInjection;
|
||||
global using SJZY.Expand.ABP.Common.Enums;
|
||||
global using SJZY.Expand.ABP.Core.Common.Dto;
|
||||
global using SJZY.Track.Repository;
|
||||
global using Volo.Abp;
|
||||
global using Volo.Abp.Application.Services;
|
||||
global using Volo.Abp.Validation;
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
using SJZY.Track.Domain.DemoAggregate;
|
||||
using SJZY.Track.Domain.DemoAggregate.Dtos;
|
||||
using SJZY.Expand.ABP.Core.Common;
|
||||
using SJZY.Expand.ABP.Core.Common;
|
||||
using SJZY.Track.Application.Dtos.Demo;
|
||||
using SJZY.Track.Domain.DemoAggregate;
|
||||
using SJZY.Track.Domain.DemoAggregate.Dtos;
|
||||
|
||||
namespace SJZY.Track.Application.Services.Demo
|
||||
{
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
using SJZY.Track.Domain.OrderAggregate;
|
||||
using SJZY.Track.Domain.TrackTemplateAggregate;
|
||||
using SJZY.Track.Application.Dtos.ProvideServices;
|
||||
using SJZY.Track.Domain;
|
||||
using SJZY.Track.Domain.OrderAggregate;
|
||||
using SJZY.Track.Domain.TrackTemplateAggregate;
|
||||
using SJZY.Track.Repository.TrackDetails;
|
||||
|
||||
namespace SJZY.Track.Application.Services.ProvideServices;
|
||||
|
||||
@ -1,10 +1,4 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace SJZY.Track.Application.Services.TrackTemplates
|
||||
namespace SJZY.Track.Application.Services.TrackTemplates
|
||||
{
|
||||
public interface ITrackTemplateService
|
||||
{
|
||||
|
||||
@ -9,11 +9,12 @@ namespace SJZY.Track.Application.Services.TrackTemplates;
|
||||
/// 轨迹模版
|
||||
/// </summary>
|
||||
[ApiExplorerSettings(GroupName = "轨迹模版")]
|
||||
[Route("/Track")]
|
||||
[Route("/Track/Template")]
|
||||
public class TrackTemplateService : ApplicationService, ITrackTemplateService, IScopedDependency
|
||||
{
|
||||
private readonly ITrackTemplateRepository _trackTemplateRepository;
|
||||
|
||||
/// <inheritdoc/>
|
||||
public TrackTemplateService(
|
||||
ITrackTemplateRepository trackTemplateRepository
|
||||
)
|
||||
@ -25,7 +26,7 @@ public class TrackTemplateService : ApplicationService, ITrackTemplateService, I
|
||||
/// 轨迹模版编辑
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[HttpPost("/Template/Edit")]
|
||||
[HttpPost("Edit")]
|
||||
public async Task<UnifyResultDto> EditAsync(EditTrackTemplateInput input)
|
||||
{
|
||||
return input.Options switch
|
||||
@ -42,7 +43,7 @@ public class TrackTemplateService : ApplicationService, ITrackTemplateService, I
|
||||
/// </summary>
|
||||
/// <param name="id"></param>
|
||||
/// <returns></returns>
|
||||
[HttpGet("/Template/GetDetail")]
|
||||
[HttpGet("GetDetail")]
|
||||
public async Task<UnifyResultDto<GetTrackTemplateDetailDto>> GetDetailAsync(int id)
|
||||
{
|
||||
var detailInfo = await _trackTemplateRepository.GetDetailAsync(id);
|
||||
@ -60,7 +61,7 @@ public class TrackTemplateService : ApplicationService, ITrackTemplateService, I
|
||||
/// </summary>
|
||||
/// <param name="input"></param>
|
||||
/// <returns></returns>
|
||||
[HttpPost("/Template/GetList")]
|
||||
[HttpPost("GetList")]
|
||||
public async Task<UnifyPageResultDto<GetTrackTemplateListDto>> GetPageTrackTemplate(GetPageTrackTemplateInput input)
|
||||
{
|
||||
var vo = ObjectMapper.Map<GetPageTrackTemplateInput, GetPageTrackTemplateVO>(input);
|
||||
@ -98,5 +99,16 @@ public class TrackTemplateService : ApplicationService, ITrackTemplateService, I
|
||||
return new UnifyResultDto("200", "删除成功", isTrue);
|
||||
}
|
||||
|
||||
#endregion
|
||||
#endregion 私有方法
|
||||
|
||||
/// <summary>
|
||||
/// 轨迹模板内容列表
|
||||
/// </summary>
|
||||
/// <param name="input"></param>
|
||||
/// <returns></returns>
|
||||
[HttpPost("GetContentPage")]
|
||||
public async Task<UnifyPageResultDto<GetContentPageOutputVO>> GetContentPageAsync([FromBody] GetContentPageInputVO input)
|
||||
{
|
||||
return await _trackTemplateRepository.GetContentPageAsync(input);
|
||||
}
|
||||
}
|
||||
@ -1,11 +1,5 @@
|
||||
using FluentValidation;
|
||||
using SJZY.Track.Application.Dtos.Demo;
|
||||
using SJZY.Track.Application.Dtos.TrackTemplates;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace SJZY.Track.Application.Validations.TrackTemplates
|
||||
{
|
||||
|
||||
@ -1,9 +1,9 @@
|
||||
// Global using directives
|
||||
|
||||
global using SJZY.Expand.ABP.Core.Common.Dto;
|
||||
global using SJZY.Expand.ABP.Core.SqlSugar.Entitys;
|
||||
global using SqlSugar;
|
||||
global using System;
|
||||
global using System.Collections.Generic;
|
||||
global using System.Linq.Expressions;
|
||||
global using System.Threading.Tasks;
|
||||
global using SJZY.Expand.ABP.Core.Common.Dto;
|
||||
global using SJZY.Expand.ABP.Core.SqlSugar.Entitys;
|
||||
global using SqlSugar;
|
||||
@ -11,4 +11,12 @@
|
||||
<PackageReference Include="SJZY.Expand.ElasticSearch" Version="7.0.17" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Folder Include="TrackContentAggregate\Dtos\" />
|
||||
<Folder Include="TrackFlagAggregate\Dtos\" />
|
||||
<Folder Include="TrackPullAggregate\Dtos\" />
|
||||
<Folder Include="TrackPushAggregate\Dtos\" />
|
||||
<Folder Include="TrackStatusAggregate\Dtos\" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
|
||||
@ -0,0 +1,6 @@
|
||||
namespace SJZY.Track.Domain.TrackContentAggregate
|
||||
{
|
||||
public interface ITrackContentRepository : IBasicRepository<TrackContentEntity>
|
||||
{
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,50 @@
|
||||
namespace SJZY.Track.Domain.TrackContentAggregate;
|
||||
|
||||
/// <summary>
|
||||
/// 轨迹内容
|
||||
/// </summary>
|
||||
[SugarTable("t_track_content")]
|
||||
public class TrackContentEntity : IFullAuditedBasicEntitys
|
||||
{
|
||||
/// <summary>
|
||||
/// 自增主键
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "Id", IsPrimaryKey = true, IsIdentity = true)]
|
||||
public int Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 轨迹内容代码
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "Code")]
|
||||
public string Code { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 轨迹内容
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "Content")]
|
||||
public string Content { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 轨迹内容英文
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "EnContent")]
|
||||
public string EnContent { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 子系统id
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "SubSystemId")]
|
||||
public int SubSystemId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 轨迹标记id
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "TrackFlagId")]
|
||||
public int TrackFlagId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 所属轨迹状态id
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "TrackStatusId")]
|
||||
public int TrackStatusId { get; set; }
|
||||
}
|
||||
@ -0,0 +1,26 @@
|
||||
namespace SJZY.Track.Domain.TrackContentAggregate;
|
||||
|
||||
/// <summary>
|
||||
/// 轨迹内容映射表
|
||||
/// </summary>
|
||||
[SugarTable("t_track_content_map")]
|
||||
public class TrackContentMapEntity : IFullAuditedBasicEntitys
|
||||
{
|
||||
/// <summary>
|
||||
/// 自增主键
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "Id", IsPrimaryKey = true, IsIdentity = true)]
|
||||
public int Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 映射轨迹内容id
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "MapTrackContentId")]
|
||||
public int MapTrackContentId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 源轨迹内容id
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "TrackContentId")]
|
||||
public int TrackContentId { get; set; }
|
||||
}
|
||||
@ -0,0 +1,5 @@
|
||||
namespace SJZY.Track.Domain.TrackFlagAggregate;
|
||||
|
||||
public interface ITrackFlagRepository : IBasicRepository<TrackFlagEntity>
|
||||
{
|
||||
}
|
||||
32
src/SJZY.Track.Domain/TrackFlagAggregate/TrackFlagEntity.cs
Normal file
32
src/SJZY.Track.Domain/TrackFlagAggregate/TrackFlagEntity.cs
Normal file
@ -0,0 +1,32 @@
|
||||
namespace SJZY.Track.Domain.TrackFlagAggregate;
|
||||
|
||||
/// <summary>
|
||||
/// 轨迹标记表
|
||||
/// </summary>
|
||||
[SugarTable("t_track_flag")]
|
||||
public class TrackFlagEntity : IFullAuditedBasicEntitys
|
||||
{
|
||||
/// <summary>
|
||||
/// 自增主键
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "Id", IsPrimaryKey = true, IsIdentity = true)]
|
||||
public int Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 标记代码
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "Code")]
|
||||
public string Code { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 标记名称
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "Name")]
|
||||
public string Name { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 子系统id
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "SubSystemId")]
|
||||
public int SubSystemId { get; set; }
|
||||
}
|
||||
@ -0,0 +1,80 @@
|
||||
namespace SJZY.Track.Domain.TrackPullAggregate;
|
||||
|
||||
/// <summary>
|
||||
/// 轨迹拉取/推送参数配置
|
||||
/// </summary>
|
||||
[SugarTable("t_track_push_pull_params_config")]
|
||||
public class TrackPushPullParamsConfigEntity : IFullAuditedBasicEntitys
|
||||
{
|
||||
/// <summary>
|
||||
/// 自增主键
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "Id", IsPrimaryKey = true, IsIdentity = true)]
|
||||
public int Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 扩展字段参数名
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "ExpandFieldsName")]
|
||||
public string ExpandFieldsName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 推拉模式,0拉取,1推送
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "IsPush")]
|
||||
public bool IsPush { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 单号参数名
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "OrderNoName")]
|
||||
public string OrderNoName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 推拉配置id
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "PullOrPushConfigId")]
|
||||
public int PullOrPushConfigId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 轨迹时区参数名
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "TackTimeZoneName")]
|
||||
public string TackTimeZoneName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 轨迹代码参数名
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "TrackContentCodeName")]
|
||||
public string TrackContentCodeName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 轨迹内容参数名
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "TrackContentName")]
|
||||
public string TrackContentName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 轨迹内容英文参数名
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "TrackEnContentName")]
|
||||
public string TrackEnContentName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 轨迹发生地参数名
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "TrackPlaceName")]
|
||||
public string TrackPlaceName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 轨迹状态参数名
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "TrackStatusName")]
|
||||
public string TrackStatusName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 轨迹发生时间参数名
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "TrackTimeName")]
|
||||
public string TrackTimeName { get; set; }
|
||||
}
|
||||
@ -0,0 +1,5 @@
|
||||
namespace SJZY.Track.Domain.TrackPushAggregate;
|
||||
|
||||
public interface ITrackPushConfigRepository : IBasicRepository<TrackPushConfigEntity>
|
||||
{
|
||||
}
|
||||
@ -0,0 +1,44 @@
|
||||
namespace SJZY.Track.Domain.TrackPushAggregate;
|
||||
|
||||
/// <summary>
|
||||
/// 轨迹推送配置表
|
||||
/// </summary>
|
||||
[SugarTable("t_track_push_config")]
|
||||
public class TrackPushConfigEntity : IFullAuditedBasicEntitys
|
||||
{
|
||||
/// <summary>
|
||||
/// 自增主键
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "Id", IsPrimaryKey = true, IsIdentity = true)]
|
||||
public int Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 客户id(外部主体id)
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "CustomId")]
|
||||
public int CustomId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 是否自动推送
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "IsAutoPush")]
|
||||
public bool IsAutoPush { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 服务商id(客户:服务商 1:1)
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "ServiceProviderId")]
|
||||
public int ServiceProviderId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 子系统id
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "SubSystemId")]
|
||||
public int SubSystemId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 模板id(多个之间英文逗号分隔)
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "TrackTemplateId")]
|
||||
public string TrackTemplateId { get; set; }
|
||||
}
|
||||
@ -0,0 +1,74 @@
|
||||
namespace SJZY.Track.Domain.TrackPushAggregate;
|
||||
|
||||
/// <summary>
|
||||
/// 轨迹推送内容配置表
|
||||
/// </summary>
|
||||
[SugarTable("t_track_push_content_config")]
|
||||
public class TrackPushContentConfigEntity : IFullAuditedBasicEntitys
|
||||
{
|
||||
/// <summary>
|
||||
/// 自增主键
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "Id", IsPrimaryKey = true, IsIdentity = true)]
|
||||
public int Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 扩展字段参数值
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "ExpandFieldsValue")]
|
||||
public string ExpandFieldsValue { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 推送单号类型(主数据枚举TrackOrderType)
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "OrderNoType")]
|
||||
public int OrderNoType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 推送轨迹排序
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "Sort")]
|
||||
public int Sort { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 轨迹代码参数值
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "TrackContentCodeValue")]
|
||||
public string TrackContentCodeValue { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 轨迹内容id
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "TrackContentId")]
|
||||
public int TrackContentId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 轨迹内容参数值
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "TrackContentValue")]
|
||||
public string TrackContentValue { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 轨迹内容英文参数值
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "TrackEnContentValue")]
|
||||
public string TrackEnContentValue { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 轨迹推送配置id
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "TrackPushConfigId")]
|
||||
public int TrackPushConfigId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 轨迹状态参数值
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "TrackStatusValue")]
|
||||
public string TrackStatusValue { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 轨迹时区GMT
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "TrackTimeZone")]
|
||||
public string TrackTimeZone { get; set; }
|
||||
}
|
||||
@ -0,0 +1,5 @@
|
||||
namespace SJZY.Track.Domain.TrackStatusAggregate;
|
||||
|
||||
public interface ITrackStatusRepository : IBasicRepository<TrackStatusEntity>
|
||||
{
|
||||
}
|
||||
@ -0,0 +1,44 @@
|
||||
namespace SJZY.Track.Domain.TrackStatusAggregate;
|
||||
|
||||
/// <summary>
|
||||
/// 轨迹状态表
|
||||
/// </summary>
|
||||
[SugarTable("t_track_status")]
|
||||
public class TrackStatusEntity : IFullAuditedBasicEntitys
|
||||
{
|
||||
/// <summary>
|
||||
/// 自增主键
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "Id", IsPrimaryKey = true, IsIdentity = true)]
|
||||
public int Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 轨迹状态代码
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "Code")]
|
||||
public string Code { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 轨迹状态英文
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "EnStatus")]
|
||||
public string EnStatus { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 所属节点(主数据枚举ServiceNode)
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "Node")]
|
||||
public int Node { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 轨迹状态
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "Status")]
|
||||
public string Status { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 子系统id
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "SubSystemId")]
|
||||
public int SubSystemId { get; set; }
|
||||
}
|
||||
@ -0,0 +1,9 @@
|
||||
namespace SJZY.Track.Domain.TrackTemplateAggregate.Dtos;
|
||||
|
||||
public class GetContentPageInputVO : PageInfoInput
|
||||
{
|
||||
/// <summary>
|
||||
/// 轨迹模板id
|
||||
/// </summary>
|
||||
public int TrackTemplateId { get; set; }
|
||||
}
|
||||
@ -0,0 +1,71 @@
|
||||
namespace SJZY.Track.Domain.TrackTemplateAggregate.Dtos;
|
||||
|
||||
public class GetContentPageOutputVO
|
||||
{
|
||||
/// <summary>
|
||||
/// 轨迹内容代码
|
||||
/// </summary>
|
||||
public string Code { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 轨迹内容
|
||||
/// </summary>
|
||||
public string Content { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 创建时间
|
||||
/// </summary>
|
||||
public string CreateTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 创建人
|
||||
/// </summary>
|
||||
public string CreateUser { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 轨迹内容英文
|
||||
/// </summary>
|
||||
public string EnContent { get; set; }
|
||||
|
||||
public long? Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 是否可删
|
||||
/// </summary>
|
||||
public bool? IsCanDelete { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 是否对外
|
||||
/// </summary>
|
||||
public bool? IsExternal { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 所属节点
|
||||
/// </summary>
|
||||
public string Node { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 排序
|
||||
/// </summary>
|
||||
public long? Sort { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 轨迹标记
|
||||
/// </summary>
|
||||
public string TrackFlag { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 所属状态
|
||||
/// </summary>
|
||||
public string TrackStatus { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 修改时间
|
||||
/// </summary>
|
||||
public string UpdateTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 修改人
|
||||
/// </summary>
|
||||
public string UpdateUser { get; set; }
|
||||
}
|
||||
@ -9,4 +9,6 @@ public interface ITrackTemplateRepository : IBasicRepository<TrackTemplateEntity
|
||||
Task<GetTrackTemplateDetailVO?> GetDetailAsync(int id);
|
||||
|
||||
Task<UnifyPageResultDto<GetTrackTemplateListVO>> GetPageTrackTemplate(GetPageTrackTemplateVO input);
|
||||
|
||||
Task<UnifyPageResultDto<GetContentPageOutputVO>> GetContentPageAsync(GetContentPageInputVO input);
|
||||
}
|
||||
@ -6,7 +6,6 @@
|
||||
[SugarTable("t_track_template_content")]
|
||||
public class TrackTemplateContentEntity : IFullAuditedBasicEntitys
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 自增主键
|
||||
/// </summary>
|
||||
@ -42,5 +41,4 @@ public class TrackTemplateContentEntity : IFullAuditedBasicEntitys
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "TrackTemplateId")]
|
||||
public int TrackTemplateId { get; set; }
|
||||
|
||||
}
|
||||
@ -1,5 +1,5 @@
|
||||
using System.Linq.Expressions;
|
||||
using SJZY.Track.Domain;
|
||||
using SJZY.Track.Domain;
|
||||
using System.Linq.Expressions;
|
||||
using Volo.Abp;
|
||||
|
||||
namespace SJZY.Track.Repository;
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
using System.Transactions;
|
||||
using SJZY.Track.Domain.DemoAggregate;
|
||||
using SJZY.Track.Domain.DemoAggregate;
|
||||
using SJZY.Track.Domain.DemoAggregate.Dtos;
|
||||
using System.Transactions;
|
||||
|
||||
namespace SJZY.Track.Repository
|
||||
{
|
||||
|
||||
@ -24,15 +24,8 @@
|
||||
|
||||
|
||||
<ItemGroup>
|
||||
<Folder Include="TrackContentMap\ValueObjects\" />
|
||||
<Folder Include="TrackContent\ValueObjects\" />
|
||||
<Folder Include="TrackFlag\ValueObjects\" />
|
||||
<Folder Include="TrackPushConfig\ValueObjects\" />
|
||||
<Folder Include="TrackPushContentConfig\ValueObjects\" />
|
||||
<Folder Include="TrackPushPullParamsConfig\ValueObjects\" />
|
||||
<Folder Include="TrackPushRecordDetails\ValueObjects\" />
|
||||
<Folder Include="TrackPushRecord\ValueObjects\" />
|
||||
<Folder Include="TrackStatus\ValueObjects\" />
|
||||
</ItemGroup>
|
||||
|
||||
|
||||
|
||||
@ -1,53 +0,0 @@
|
||||
namespace SJZY.Track.Repository.TrackContent.Entitys
|
||||
{
|
||||
/// <summary>
|
||||
/// 轨迹内容
|
||||
/// </summary>
|
||||
[SugarTable("t_track_content")]
|
||||
public class TrackContentEntity : IFullAuditedBasicEntitys
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 自增主键
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "Id", IsPrimaryKey = true, IsIdentity = true)]
|
||||
public int Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 轨迹内容代码
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "Code")]
|
||||
public string Code { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 轨迹内容
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "Content")]
|
||||
public string Content { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 轨迹内容英文
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "EnContent")]
|
||||
public string EnContent { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 子系统id
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "SubSystemId")]
|
||||
public int SubSystemId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 轨迹标记id
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "TrackFlagId")]
|
||||
public int TrackFlagId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 所属轨迹状态id
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "TrackStatusId")]
|
||||
public int TrackStatusId { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
@ -1,9 +0,0 @@
|
||||
using SJZY.Track.Repository.TrackContent.Entitys;
|
||||
|
||||
namespace SJZY.Track.Repository.TrackContent.Services
|
||||
{
|
||||
public interface ITrackContentRepository : ISimpleClient<TrackContentEntity>
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
@ -1,9 +0,0 @@
|
||||
using SJZY.Track.Repository.TrackContent.Entitys;
|
||||
|
||||
namespace SJZY.Track.Repository.TrackContent.Services
|
||||
{
|
||||
public class TrackContentRepository : BasicRepository<TrackContentEntity>, ITrackContentRepository, IScopedDependency
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
@ -1,29 +0,0 @@
|
||||
namespace SJZY.Track.Repository.TrackContentMap.Entitys
|
||||
{
|
||||
/// <summary>
|
||||
/// 轨迹内容映射表
|
||||
/// </summary>
|
||||
[SugarTable("t_track_content_map")]
|
||||
public class TrackContentMapEntity : IFullAuditedBasicEntitys
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 自增主键
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "Id", IsPrimaryKey = true, IsIdentity = true)]
|
||||
public int Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 映射轨迹内容id
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "MapTrackContentId")]
|
||||
public int MapTrackContentId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 源轨迹内容id
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "TrackContentId")]
|
||||
public int TrackContentId { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
@ -1,9 +0,0 @@
|
||||
using SJZY.Track.Repository.TrackContentMap.Entitys;
|
||||
|
||||
namespace SJZY.Track.Repository.TrackContentMap.Services
|
||||
{
|
||||
public interface ITrackContentMapRepository : ISimpleClient<TrackContentMapEntity>
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
@ -1,9 +0,0 @@
|
||||
using SJZY.Track.Repository.TrackContentMap.Entitys;
|
||||
|
||||
namespace SJZY.Track.Repository.TrackContentMap.Services
|
||||
{
|
||||
public class TrackContentMapRepository : BasicRepository<TrackContentMapEntity>, ITrackContentMapRepository, IScopedDependency
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
7
src/SJZY.Track.Repository/TrackContentRepository.cs
Normal file
7
src/SJZY.Track.Repository/TrackContentRepository.cs
Normal file
@ -0,0 +1,7 @@
|
||||
using SJZY.Track.Domain.TrackContentAggregate;
|
||||
|
||||
namespace SJZY.Track.Repository;
|
||||
|
||||
public class TrackContentRepository : BasicRepository<TrackContentEntity>, ITrackContentRepository, IScopedDependency
|
||||
{
|
||||
}
|
||||
@ -1,8 +1,8 @@
|
||||
using Nest;
|
||||
using SJZY.Track.Domain.TrackDetailsAggregate;
|
||||
using SJZY.Expand.ABP.Core.Logger;
|
||||
using SJZY.Expand.ABP.Core.PublicMethords;
|
||||
using SJZY.Expand.ElasticSearch.Services;
|
||||
using SJZY.Track.Domain.TrackDetailsAggregate;
|
||||
using SJZY.Track.Repository.TrackDetails;
|
||||
using SJZY.Track.Repository.TrackDetails.Dtos;
|
||||
|
||||
|
||||
@ -1,35 +0,0 @@
|
||||
namespace SJZY.Track.Repository.TrackFlag.Entitys
|
||||
{
|
||||
/// <summary>
|
||||
/// 轨迹标记表
|
||||
/// </summary>
|
||||
[SugarTable("t_track_flag")]
|
||||
public class TrackFlagEntity : IFullAuditedBasicEntitys
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 自增主键
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "Id", IsPrimaryKey = true, IsIdentity = true)]
|
||||
public int Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 标记代码
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "Code")]
|
||||
public string Code { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 标记名称
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "Name")]
|
||||
public string Name { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 子系统id
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "SubSystemId")]
|
||||
public int SubSystemId { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
@ -1,9 +0,0 @@
|
||||
using SJZY.Track.Repository.TrackFlag.Entitys;
|
||||
|
||||
namespace SJZY.Track.Repository.TrackFlag.Services
|
||||
{
|
||||
public interface ITrackFlagRepository : ISimpleClient<TrackFlagEntity>
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
@ -1,9 +0,0 @@
|
||||
using SJZY.Track.Repository.TrackFlag.Entitys;
|
||||
|
||||
namespace SJZY.Track.Repository.TrackFlag.Services
|
||||
{
|
||||
public class TrackFlagRepository : BasicRepository<TrackFlagEntity>, ITrackFlagRepository, IScopedDependency
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
7
src/SJZY.Track.Repository/TrackFlagRepository.cs
Normal file
7
src/SJZY.Track.Repository/TrackFlagRepository.cs
Normal file
@ -0,0 +1,7 @@
|
||||
using SJZY.Track.Domain.TrackFlagAggregate;
|
||||
|
||||
namespace SJZY.Track.Repository;
|
||||
|
||||
public class TrackFlagRepository : BasicRepository<TrackFlagEntity>, ITrackFlagRepository, IScopedDependency
|
||||
{
|
||||
}
|
||||
@ -1,9 +1,7 @@
|
||||
using SJZY.Track.Domain.TrackPullAggregate;
|
||||
|
||||
namespace SJZY.Track.Repository
|
||||
{
|
||||
namespace SJZY.Track.Repository;
|
||||
|
||||
public class TrackPullConfigRepository : BasicRepository<TrackPullConfigEntity>, ITrackPullConfigRepository, IScopedDependency
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
@ -1,47 +0,0 @@
|
||||
namespace SJZY.Track.Repository.TrackPushConfig.Entitys
|
||||
{
|
||||
/// <summary>
|
||||
/// 轨迹推送配置表
|
||||
/// </summary>
|
||||
[SugarTable("t_track_push_config")]
|
||||
public class TrackPushConfigEntity : IFullAuditedBasicEntitys
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 自增主键
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "Id", IsPrimaryKey = true, IsIdentity = true)]
|
||||
public int Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 客户id(外部主体id)
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "CustomId")]
|
||||
public int CustomId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 是否自动推送
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "IsAutoPush")]
|
||||
public bool IsAutoPush { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 服务商id(客户:服务商 1:1)
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "ServiceProviderId")]
|
||||
public int ServiceProviderId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 子系统id
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "SubSystemId")]
|
||||
public int SubSystemId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 模板id(多个之间英文逗号分隔)
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "TrackTemplateId")]
|
||||
public string TrackTemplateId { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
@ -1,9 +0,0 @@
|
||||
using SJZY.Track.Repository.TrackPushConfig.Entitys;
|
||||
|
||||
namespace SJZY.Track.Repository.TrackPushConfig.Services
|
||||
{
|
||||
public interface ITrackPushConfigRepository : ISimpleClient<TrackPushConfigEntity>
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
@ -1,9 +0,0 @@
|
||||
using SJZY.Track.Repository.TrackPushConfig.Entitys;
|
||||
|
||||
namespace SJZY.Track.Repository.TrackPushConfig.Services
|
||||
{
|
||||
public class TrackPushConfigRepository : BasicRepository<TrackPushConfigEntity>, ITrackPushConfigRepository, IScopedDependency
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
7
src/SJZY.Track.Repository/TrackPushConfigRepository.cs
Normal file
7
src/SJZY.Track.Repository/TrackPushConfigRepository.cs
Normal file
@ -0,0 +1,7 @@
|
||||
using SJZY.Track.Domain.TrackPushAggregate;
|
||||
|
||||
namespace SJZY.Track.Repository;
|
||||
|
||||
public class TrackPushConfigRepository : BasicRepository<TrackPushConfigEntity>, ITrackPushConfigRepository, IScopedDependency
|
||||
{
|
||||
}
|
||||
@ -1,77 +0,0 @@
|
||||
namespace SJZY.Track.Repository.TrackPushContentConfig.Entitys
|
||||
{
|
||||
/// <summary>
|
||||
/// 轨迹推送内容配置表
|
||||
/// </summary>
|
||||
[SugarTable("t_track_push_content_config")]
|
||||
public class TrackPushContentConfigEntity : IFullAuditedBasicEntitys
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 自增主键
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "Id", IsPrimaryKey = true, IsIdentity = true)]
|
||||
public int Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 扩展字段参数值
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "ExpandFieldsValue")]
|
||||
public string ExpandFieldsValue { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 推送单号类型(主数据枚举TrackOrderType)
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "OrderNoType")]
|
||||
public int OrderNoType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 推送轨迹排序
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "Sort")]
|
||||
public int Sort { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 轨迹代码参数值
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "TrackContentCodeValue")]
|
||||
public string TrackContentCodeValue { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 轨迹内容id
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "TrackContentId")]
|
||||
public int TrackContentId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 轨迹内容参数值
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "TrackContentValue")]
|
||||
public string TrackContentValue { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 轨迹内容英文参数值
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "TrackEnContentValue")]
|
||||
public string TrackEnContentValue { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 轨迹推送配置id
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "TrackPushConfigId")]
|
||||
public int TrackPushConfigId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 轨迹状态参数值
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "TrackStatusValue")]
|
||||
public string TrackStatusValue { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 轨迹时区GMT
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "TrackTimeZone")]
|
||||
public string TrackTimeZone { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
@ -1,9 +0,0 @@
|
||||
using SJZY.Track.Repository.TrackPushContentConfig.Entitys;
|
||||
|
||||
namespace SJZY.Track.Repository.TrackPushContentConfig.Services
|
||||
{
|
||||
public interface ITrackPushContentConfigRepository : ISimpleClient<TrackPushContentConfigEntity>
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
@ -1,9 +0,0 @@
|
||||
using SJZY.Track.Repository.TrackPushContentConfig.Entitys;
|
||||
|
||||
namespace SJZY.Track.Repository.TrackPushContentConfig.Services
|
||||
{
|
||||
public class TrackPushContentConfigRepository : BasicRepository<TrackPushContentConfigEntity>, ITrackPushContentConfigRepository, IScopedDependency
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
@ -1,83 +0,0 @@
|
||||
namespace SJZY.Track.Repository.TrackPushPullParamsConfig.Entitys
|
||||
{
|
||||
/// <summary>
|
||||
/// 轨迹拉取/推送参数配置
|
||||
/// </summary>
|
||||
[SugarTable("t_track_push_pull_params_config")]
|
||||
public class TrackPushPullParamsConfigEntity : IFullAuditedBasicEntitys
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 自增主键
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "Id", IsPrimaryKey = true, IsIdentity = true)]
|
||||
public int Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 扩展字段参数名
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "ExpandFieldsName")]
|
||||
public string ExpandFieldsName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 推拉模式,0拉取,1推送
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "IsPush")]
|
||||
public bool IsPush { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 单号参数名
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "OrderNoName")]
|
||||
public string OrderNoName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 推拉配置id
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "PullOrPushConfigId")]
|
||||
public int PullOrPushConfigId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 轨迹时区参数名
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "TackTimeZoneName")]
|
||||
public string TackTimeZoneName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 轨迹代码参数名
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "TrackContentCodeName")]
|
||||
public string TrackContentCodeName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 轨迹内容参数名
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "TrackContentName")]
|
||||
public string TrackContentName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 轨迹内容英文参数名
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "TrackEnContentName")]
|
||||
public string TrackEnContentName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 轨迹发生地参数名
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "TrackPlaceName")]
|
||||
public string TrackPlaceName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 轨迹状态参数名
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "TrackStatusName")]
|
||||
public string TrackStatusName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 轨迹发生时间参数名
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "TrackTimeName")]
|
||||
public string TrackTimeName { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
@ -1,9 +0,0 @@
|
||||
using SJZY.Track.Repository.TrackPushPullParamsConfig.Entitys;
|
||||
|
||||
namespace SJZY.Track.Repository.TrackPushPullParamsConfig.Services
|
||||
{
|
||||
public interface ITrackPushPullParamsConfigRepository : ISimpleClient<TrackPushPullParamsConfigEntity>
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
@ -1,14 +0,0 @@
|
||||
using SJZY.Track.Repository.TrackPushPullParamsConfig.Entitys;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace SJZY.Track.Repository.TrackPushPullParamsConfig.Services
|
||||
{
|
||||
public class TrackPushPullParamsConfigRepository : BasicRepository<TrackPushPullParamsConfigEntity>, ITrackPushPullParamsConfigRepository, IScopedDependency
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
@ -1,47 +0,0 @@
|
||||
namespace SJZY.Track.Repository.TrackStatus.Entitys
|
||||
{
|
||||
/// <summary>
|
||||
/// 轨迹状态表
|
||||
/// </summary>
|
||||
[SugarTable("t_track_status")]
|
||||
public class TrackStatusEntity : IFullAuditedBasicEntitys
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 自增主键
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "Id", IsPrimaryKey = true, IsIdentity = true)]
|
||||
public int Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 轨迹状态代码
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "Code")]
|
||||
public string Code { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 轨迹状态英文
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "EnStatus")]
|
||||
public string EnStatus { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 所属节点(主数据枚举ServiceNode)
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "Node")]
|
||||
public int Node { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 轨迹状态
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "Status")]
|
||||
public string Status { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 子系统id
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "SubSystemId")]
|
||||
public int SubSystemId { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
@ -1,9 +0,0 @@
|
||||
using SJZY.Track.Repository.TrackStatus.Entitys;
|
||||
|
||||
namespace SJZY.Track.Repository.TrackStatus.Services
|
||||
{
|
||||
public interface ITrackStatusRepository : ISimpleClient<TrackStatusEntity>
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
@ -1,9 +0,0 @@
|
||||
using SJZY.Track.Repository.TrackStatus.Entitys;
|
||||
|
||||
namespace SJZY.Track.Repository.TrackStatus.Services
|
||||
{
|
||||
public class TrackStatusRepository : BasicRepository<TrackStatusEntity>, ITrackStatusRepository, IScopedDependency
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
7
src/SJZY.Track.Repository/TrackStatusRepository.cs
Normal file
7
src/SJZY.Track.Repository/TrackStatusRepository.cs
Normal file
@ -0,0 +1,7 @@
|
||||
using SJZY.Track.Domain.TrackStatusAggregate;
|
||||
|
||||
namespace SJZY.Track.Repository;
|
||||
|
||||
public class TrackStatusRepository : BasicRepository<TrackStatusEntity>, ITrackStatusRepository, IScopedDependency
|
||||
{
|
||||
}
|
||||
@ -1,4 +1,5 @@
|
||||
using SJZY.Track.Domain.TrackTemplateAggregate;
|
||||
using SJZY.Track.Domain.TrackContentAggregate;
|
||||
using SJZY.Track.Domain.TrackTemplateAggregate;
|
||||
using SJZY.Track.Domain.TrackTemplateAggregate.Dtos;
|
||||
using SJZY.Track.Domain.VEntities;
|
||||
|
||||
@ -33,7 +34,6 @@ public class TrackTemplateRepository : BasicRepository<TrackTemplateEntity>, ITr
|
||||
return detail;
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 分页获取轨迹模版
|
||||
/// </summary>
|
||||
@ -55,4 +55,16 @@ public class TrackTemplateRepository : BasicRepository<TrackTemplateEntity>, ITr
|
||||
.ToPagedListAsync(input.PageIndex, input.PageSize);
|
||||
return pagedList;
|
||||
}
|
||||
|
||||
public async Task<UnifyPageResultDto<GetContentPageOutputVO>> GetContentPageAsync(GetContentPageInputVO input)
|
||||
{
|
||||
return await AsSugarClient().Queryable<TrackTemplateContentEntity>()
|
||||
.InnerJoin<TrackContentEntity>((templateContent, trackContent) => templateContent.TrackContentId == trackContent.Id)
|
||||
.Where(templateContent => templateContent.TrackTemplateId == input.TrackTemplateId)
|
||||
.Select((templateContent, trackContent) => new GetContentPageOutputVO
|
||||
{
|
||||
Id = templateContent.Id
|
||||
}, true)
|
||||
.ToPagedListAsync(input.PageIndex, input.PageSize);
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user