admin/src/Oms.Application/Dtos/Channels/SalesProductAllocationProviderSnapshotDto.cs
zzh 15785cdf2b feat: enrich publish snapshots with downstream names and use API provider code for track ApiCode
Persist group/app/API provider display names in sales product and service channel rules publish snapshots, and resolve trajectory ApiCode from the service channel API provider code instead of forecast code.
2026-07-23 10:23:56 +08:00

98 lines
2.3 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

namespace Oms.Application.Dtos.Channels;
/// <summary>
/// 排货服务商发布快照项(不含审计时间)。
/// </summary>
public class SalesProductAllocationProviderSnapshotDto
{
/// <summary>
/// 主键。
/// </summary>
public int Id { get; set; }
/// <summary>
/// 销售产品主键。
/// </summary>
public int SalesProductId { get; set; }
/// <summary>
/// 序号。
/// </summary>
public int SerialNumber { get; set; }
/// <summary>
/// 供应商名称。
/// </summary>
public string ProviderName { get; set; } = string.Empty;
/// <summary>
/// 服务渠道主键。
/// </summary>
public int? ServiceChannelId { get; set; }
/// <summary>
/// 服务渠道名称。
/// </summary>
public string? ServiceChannelName { get; set; }
/// <summary>
/// 权重(评分用)。
/// </summary>
public int Weight { get; set; }
/// <summary>
/// 指定客户主键集合,空表示全部。
/// </summary>
public List<int> CustomerIds { get; set; } = [];
/// <summary>
/// 服务渠道编码(发布快照固化)。
/// </summary>
public string? ChannelCode { get; set; }
/// <summary>
/// 渠道预报编码 ForecastCode(发布快照固化)。
/// </summary>
public string? ForecastCode { get; set; }
/// <summary>
/// 服务商分组 Id。
/// </summary>
public int? GroupId { get; set; }
/// <summary>
/// 服务商分组名称。
/// </summary>
public string? GroupName { get; set; }
/// <summary>
/// itfx API 服务商编码 supplierCode。
/// </summary>
public string? SupplierCode { get; set; }
/// <summary>
/// itfx API 服务商名称。
/// </summary>
public string? ApiServiceProviderName { get; set; }
/// <summary>
/// itfx 应用 AppKey(AppSecret 不落快照,运行时按 AppId 读取)。
/// </summary>
public string? AppKey { get; set; }
/// <summary>
/// itfx 应用名称。
/// </summary>
public string? AppName { get; set; }
/// <summary>
/// itfx 应用 Id。
/// </summary>
public int? AppId { get; set; }
/// <summary>
/// itfx API 服务商 Id。
/// </summary>
public int? ApiServiceProviderId { get; set; }
}