对接前端
This commit is contained in:
parent
affc1e10a3
commit
17a3a8a36d
@ -22,14 +22,9 @@ public class EditTrackPushConfigInput
|
|||||||
public OptionTypeNoNull Options { get; set; }
|
public OptionTypeNoNull Options { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 推送轨迹订单号
|
/// 服务商code
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public string? OrderNoName { get; set; }
|
public string ServiceProviderCode { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 服务商id
|
|
||||||
/// </summary>
|
|
||||||
public int? ServiceProviderId { get; set; }
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 子系统id
|
/// 子系统id
|
||||||
|
|||||||
@ -29,8 +29,8 @@ public class TrackPushConfigEntity : IFullAuditedBasicEntitys, IAggregateRoot
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// 服务商id(客户:服务商 1:1)
|
/// 服务商id(客户:服务商 1:1)
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[SugarColumn(ColumnName = "ServiceProviderId")]
|
[SugarColumn(ColumnName = "ServiceProviderCode")]
|
||||||
public int ServiceProviderId { get; set; }
|
public string ServiceProviderCode { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 子系统id
|
/// 子系统id
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
using SJZY.Track.Share.Enums;
|
using SJZY.Track.Share.Enums;
|
||||||
|
|
||||||
namespace SJZY.Track.Domain.Dtos.TrackPush;
|
namespace SJZY.Track.Domain.Dtos.TrackPush;
|
||||||
|
|
||||||
@ -22,14 +22,9 @@ public class GetTrackPushConfigDetailOutputVO
|
|||||||
public bool IsAutoPush { get; set; }
|
public bool IsAutoPush { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 服务商
|
/// 服务商code
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public string ServiceProvider { get; set; }
|
public string ServiceProviderCode { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 服务商id
|
|
||||||
/// </summary>
|
|
||||||
public int ServiceProviderId { get; set; }
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 子系统
|
/// 子系统
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
namespace SJZY.Track.Domain.Dtos.TrackTemplate;
|
namespace SJZY.Track.Domain.Dtos.TrackTemplate;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 获取轨迹模版明细
|
/// 获取轨迹模版明细
|
||||||
@ -31,9 +31,14 @@ public class GetTrackTemplateDetailVO
|
|||||||
public string Code { get; set; }
|
public string Code { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 显示原轨迹
|
/// 分类id
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public bool ShowOrigin { get; set; }
|
public int CategoryId { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 客户id
|
||||||
|
/// </summary>
|
||||||
|
public int CustomerId { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|||||||
@ -63,17 +63,15 @@ public class TrackPushConfigRepository : BasicRepository<TrackPushConfigEntity>,
|
|||||||
.LeftJoin<VSystemEntity>((trackPush, system) => trackPush.SubSystemId == system.Id && !system.IsDeleted)
|
.LeftJoin<VSystemEntity>((trackPush, system) => trackPush.SubSystemId == system.Id && !system.IsDeleted)
|
||||||
.LeftJoin<VExternalSubjectEntity>((trackPush, system, externalSubject) =>
|
.LeftJoin<VExternalSubjectEntity>((trackPush, system, externalSubject) =>
|
||||||
trackPush.CustomId == externalSubject.Id && !externalSubject.IsDeleted)
|
trackPush.CustomId == externalSubject.Id && !externalSubject.IsDeleted)
|
||||||
.LeftJoin<VServiceProviderEntity>((trackPush, system, externalSubject, service) =>
|
|
||||||
trackPush.ServiceProviderId == service.Id && !service.IsDeleted)
|
|
||||||
.Filter(null, true)
|
.Filter(null, true)
|
||||||
.Where(trackPush => trackPush.Id == id && !trackPush.IsDeleted)
|
.Where(trackPush => trackPush.Id == id && !trackPush.IsDeleted)
|
||||||
.Select(
|
.Select(
|
||||||
(trackPush, system, externalSubject, service) => new GetTrackPushConfigDetailOutputVO
|
(trackPush, system, externalSubject) => new GetTrackPushConfigDetailOutputVO
|
||||||
{
|
{
|
||||||
Id = trackPush.Id,
|
Id = trackPush.Id,
|
||||||
SubSystem = system.CnName,
|
SubSystem = system.CnName,
|
||||||
CustomName = externalSubject.Abbreviation,
|
CustomName = externalSubject.Abbreviation,
|
||||||
ServiceProvider = service.Name,
|
ServiceProviderCode = trackPush.ServiceProviderCode,
|
||||||
DateTimeFormat = trackPush.DateTimeFormat,
|
DateTimeFormat = trackPush.DateTimeFormat,
|
||||||
DateTimeFormatType =
|
DateTimeFormatType =
|
||||||
trackPush.DateTimeFormatType == DateTimeFormatEnum.None
|
trackPush.DateTimeFormatType == DateTimeFormatEnum.None
|
||||||
@ -127,17 +125,16 @@ public class TrackPushConfigRepository : BasicRepository<TrackPushConfigEntity>,
|
|||||||
{
|
{
|
||||||
return await Context.Queryable<TrackPushConfigEntity>()
|
return await Context.Queryable<TrackPushConfigEntity>()
|
||||||
.LeftJoin<TrackPushContentConfigEntity>((a, b) => a.Id == b.TrackPushConfigId)
|
.LeftJoin<TrackPushContentConfigEntity>((a, b) => a.Id == b.TrackPushConfigId)
|
||||||
.LeftJoin<VServiceProviderEntity>((a, b, c) => a.ServiceProviderId == c.Id)
|
.LeftJoin<TrackContentEntity>((a, b, d) => b.TrackContentId == d.Id)
|
||||||
.LeftJoin<TrackContentEntity>((a, b, c, d) => b.TrackContentId == d.Id)
|
.LeftJoin<TrackContentEntity>((a, b, d, e) => b.SwapTrackContentId == e.Id)
|
||||||
.LeftJoin<TrackContentEntity>((a, b, c, d, e) => b.SwapTrackContentId == e.Id)
|
|
||||||
.Where(a => a.Id == configId)
|
.Where(a => a.Id == configId)
|
||||||
.OrderBy((a, b) => b.Sort)
|
.OrderBy((a, b) => b.Sort)
|
||||||
.Select((a, b, c, d, e) => new TrackPushContentConfigVO
|
.Select((a, b, d, e) => new TrackPushContentConfigVO
|
||||||
{
|
{
|
||||||
IsAutoPush = a.IsAutoPush,
|
IsAutoPush = a.IsAutoPush,
|
||||||
IsCanUpdate = a.IsCanUpdate,
|
IsCanUpdate = a.IsCanUpdate,
|
||||||
IsAllPush = a.IsAllPush,
|
IsAllPush = a.IsAllPush,
|
||||||
ServiceProviderCode = c.Code,
|
ServiceProviderCode = a.ServiceProviderCode,
|
||||||
OrderType = b.OrderNoType,
|
OrderType = b.OrderNoType,
|
||||||
TrackCode = d.Code,
|
TrackCode = d.Code,
|
||||||
SwapTrackCode = e.Code,
|
SwapTrackCode = e.Code,
|
||||||
|
|||||||
@ -28,7 +28,9 @@ public class TrackTemplateRepository : BasicRepository<TrackTemplateEntity>, ITr
|
|||||||
Code = a.Code,
|
Code = a.Code,
|
||||||
Name = a.Name,
|
Name = a.Name,
|
||||||
SubSystemId = a.SubSystemId,
|
SubSystemId = a.SubSystemId,
|
||||||
SubSystem = b.CnName
|
SubSystem = b.CnName,
|
||||||
|
CustomerId = a.CustomerId,
|
||||||
|
CategoryId = a.CategoryId,
|
||||||
}).FirstAsync();
|
}).FirstAsync();
|
||||||
|
|
||||||
return detail;
|
return detail;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user