feat:兜底轨迹时区添加映射和返回详情中
This commit is contained in:
parent
d0eda88a2f
commit
67569825ee
@ -11,7 +11,11 @@ public class TrackPushAutoMapperProfile : Profile
|
||||
{
|
||||
public TrackPushAutoMapperProfile()
|
||||
{
|
||||
CreateMap<EditTrackPushConfigInput, TrackPushConfigEntity>(MemberList.None);
|
||||
CreateMap<EditTrackPushConfigInput, TrackPushConfigEntity>(MemberList.None)
|
||||
.ForMember(val => val.DateTimeFormatType, opt => opt.MapFrom(src => src.DateTimeFormatType))
|
||||
.ForMember(val => val.DateTimeFormat, opt => opt.MapFrom(src => src.DateTimeFormat))
|
||||
.ForMember(val => val.TimezoneFormat, opt => opt.MapFrom(src => src.TimezoneFormat));
|
||||
|
||||
CreateMap<EditTrackPushConfigInput, TrackPushPullParamsConfigEntity>(MemberList.None).Ignore(dest => dest.Id)
|
||||
.ForMember(dest => dest.IsPush, opt => opt.MapFrom(source => true));
|
||||
CreateMap<EditTrackPushContentInput, TrackPushContentConfigEntity>(MemberList.None);
|
||||
|
||||
@ -1,4 +1,6 @@
|
||||
namespace SJZY.Track.Domain.Dtos.TrackPush;
|
||||
using SJZY.Track.Domain.Enums;
|
||||
|
||||
namespace SJZY.Track.Domain.Dtos.TrackPush;
|
||||
|
||||
public class GetTrackPushConfigDetailOutputVO
|
||||
{
|
||||
@ -53,4 +55,19 @@ public class GetTrackPushConfigDetailOutputVO
|
||||
/// 是否全量推送
|
||||
/// </summary>
|
||||
public bool IsAllPush { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 时间格式枚举
|
||||
/// </summary>
|
||||
public DateTimeFormatEnum DateTimeFormatType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 日期时间格式模板
|
||||
/// </summary>
|
||||
public string? DateTimeFormat { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 时区格式格式模板
|
||||
/// </summary>
|
||||
public string? TimezoneFormat { get; set; }
|
||||
}
|
||||
@ -71,6 +71,9 @@ public class TrackPushConfigRepository : BasicRepository<TrackPushConfigEntity>,
|
||||
SubSystem = system.CnName,
|
||||
CustomName = externalSubject.Abbreviation,
|
||||
ServiceProvider = service.Name,
|
||||
DateTimeFormat = trackPush.DateTimeFormat,
|
||||
DateTimeFormatType = trackPush.DateTimeFormatType,
|
||||
TimezoneFormat = trackPush.TimezoneFormat
|
||||
}, true)
|
||||
.SingleAsync();
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user