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