14 changed files with 1054 additions and 4 deletions
@ -0,0 +1,4 @@ |
|||||
|
[*.cs] |
||||
|
|
||||
|
# CS8601: 引用类型赋值可能为 null。 |
||||
|
dotnet_diagnostic.CS8601.severity = none |
@ -0,0 +1,9 @@ |
|||||
|
using SiNan.Model.Dto; |
||||
|
|
||||
|
namespace SiNan.Model.Core |
||||
|
{ |
||||
|
public class GOIBySku : GOIResponse |
||||
|
{ |
||||
|
public string Sku { get; set; } |
||||
|
} |
||||
|
} |
@ -0,0 +1,75 @@ |
|||||
|
using FreeSql.DataAnnotations; |
||||
|
using System; |
||||
|
|
||||
|
namespace SiNan.Model.Db |
||||
|
{ |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 京东订单推广归属关系表
|
||||
|
/// </summary>
|
||||
|
[Table(Name = "jdorderpopularizerelation", DisableSyncStructure = true)] |
||||
|
public partial class JDOrderPopularizeRelation { |
||||
|
|
||||
|
[ Column(IsPrimary = true)] |
||||
|
public long Id { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 单元Id
|
||||
|
/// </summary>
|
||||
|
|
||||
|
public long? AdGroupId { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 创意Id
|
||||
|
/// </summary>
|
||||
|
|
||||
|
public long? AdId { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 业务线(快车:2 京速推:134217728)
|
||||
|
/// </summary>
|
||||
|
|
||||
|
public int? BusinessType { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 计划Id
|
||||
|
/// </summary>
|
||||
|
|
||||
|
public long? CampaignId { get; set; } |
||||
|
|
||||
|
[Column(DbType = "datetime")] |
||||
|
public DateTime? CreateTime { get; set; } |
||||
|
|
||||
|
[Column(DbType = "datetime")] |
||||
|
public DateTime? OrderTime { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 点击时间
|
||||
|
/// </summary>
|
||||
|
[Column(DbType = "datetime")] |
||||
|
public DateTime? CookieTime { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 订单Id
|
||||
|
/// </summary>
|
||||
|
[Column(StringLength = 50)] |
||||
|
public string OrderId { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 下单Sku
|
||||
|
/// </summary>
|
||||
|
[Column(StringLength = 50)] |
||||
|
public string PlaceOrderSku { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 推广Sku
|
||||
|
/// </summary>
|
||||
|
[Column(StringLength = 50)] |
||||
|
public string PopularizeSku { get; set; } |
||||
|
|
||||
|
|
||||
|
public long? ShopId { get; set; } |
||||
|
|
||||
|
} |
||||
|
|
||||
|
} |
@ -0,0 +1,88 @@ |
|||||
|
using FreeSql.DataAnnotations; |
||||
|
using System; |
||||
|
|
||||
|
namespace SiNan.Model.Db |
||||
|
{ |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 京东推广单元表
|
||||
|
/// </summary>
|
||||
|
[Table(Name = "jdpopularizeadgroup", DisableSyncStructure = true)] |
||||
|
public partial class JDPopularizeAdGroup |
||||
|
{ |
||||
|
|
||||
|
[Column(IsPrimary = true)] |
||||
|
public long Id { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 单元Id
|
||||
|
/// </summary>
|
||||
|
|
||||
|
public long? AdGroupId { get; set; } |
||||
|
|
||||
|
[Column(StringLength = 100)] |
||||
|
public string AdGroupName { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 业务线(快车:2 京速推:134217728)
|
||||
|
/// </summary>
|
||||
|
|
||||
|
public int? BusinessType { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 计划Id
|
||||
|
/// </summary>
|
||||
|
|
||||
|
public long? CampaignId { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 点击数
|
||||
|
/// </summary>
|
||||
|
[Column(Name = "clicks")] |
||||
|
public int? Clicks { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 总花费
|
||||
|
/// </summary>
|
||||
|
[Column(DbType = "decimal(18,2)")] |
||||
|
public decimal? Cost { get; set; } |
||||
|
|
||||
|
[Column(DbType = "datetime")] |
||||
|
public DateTime? CreateTime { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 计费日期
|
||||
|
/// </summary>
|
||||
|
[Column(DbType = "datetime")] |
||||
|
public DateTime? Date { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 展现次数
|
||||
|
/// </summary>
|
||||
|
[Column(Name = "impressions")] |
||||
|
public int? Impressions { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 账号归属
|
||||
|
/// </summary>
|
||||
|
[Column(Name = "pin")] |
||||
|
public string Pin { get; set; } |
||||
|
|
||||
|
|
||||
|
public long? ShopId { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 总加购人数
|
||||
|
/// </summary>
|
||||
|
[Column(Name = "totalCartCnt")] |
||||
|
public int? TotalCartCnt { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 总订单数
|
||||
|
/// </summary>
|
||||
|
[Column(Name = "totalOrderCnt")] |
||||
|
public int? TotalOrderCnt { get; set; } |
||||
|
|
||||
|
} |
||||
|
|
||||
|
} |
@ -0,0 +1,108 @@ |
|||||
|
using FreeSql.DataAnnotations; |
||||
|
using System; |
||||
|
|
||||
|
namespace SiNan.Model.Db |
||||
|
{ |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 京东推广SKU创意表
|
||||
|
/// </summary>
|
||||
|
[Table(Name = "jdpopularizeadsku", DisableSyncStructure = true)] |
||||
|
public partial class JDPopularizeAdSku |
||||
|
{ |
||||
|
|
||||
|
[Column(IsPrimary = true)] |
||||
|
public long Id { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 单元Id
|
||||
|
/// </summary>
|
||||
|
|
||||
|
public long? AdGroupId { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 创意Id
|
||||
|
/// </summary>
|
||||
|
|
||||
|
public long? AdId { get; set; } |
||||
|
|
||||
|
[Column(StringLength = 100)] |
||||
|
public string AdName { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 业务线(快车:2 京速推:134217728)
|
||||
|
/// </summary>
|
||||
|
|
||||
|
public int? BusinessType { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 计划Id
|
||||
|
/// </summary>
|
||||
|
|
||||
|
public long? CampaignId { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 点击数
|
||||
|
/// </summary>
|
||||
|
[Column(Name = "clicks")] |
||||
|
public int? Clicks { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 总花费
|
||||
|
/// </summary>
|
||||
|
[Column(DbType = "decimal(18,2)")] |
||||
|
public decimal? Cost { get; set; } |
||||
|
|
||||
|
[Column(DbType = "datetime")] |
||||
|
public DateTime? CreateTime { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 计费日期
|
||||
|
/// </summary>
|
||||
|
[Column(DbType = "datetime")] |
||||
|
public DateTime? Date { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 展现次数
|
||||
|
/// </summary>
|
||||
|
[Column(Name = "impressions")] |
||||
|
public int? Impressions { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 账号归属
|
||||
|
/// </summary>
|
||||
|
[Column(Name = "pin")] |
||||
|
public string Pin { get; set; } |
||||
|
|
||||
|
|
||||
|
public long? ShopId { get; set; } |
||||
|
|
||||
|
[Column(StringLength = 50)] |
||||
|
public string Sku { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 总加购人数
|
||||
|
/// </summary>
|
||||
|
[Column(Name = "totalCartCnt")] |
||||
|
public int? TotalCartCnt { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 总订单数
|
||||
|
/// </summary>
|
||||
|
[Column(Name = "totalOrderCnt")] |
||||
|
public int? TotalOrderCnt { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 总订单金额
|
||||
|
/// </summary>
|
||||
|
[Column(Name = "totalOrderSum")] |
||||
|
public decimal TotalOrderSum { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 访客数
|
||||
|
/// </summary>
|
||||
|
[Column(Name = "visitorCnt")] |
||||
|
public int VisitorCnt { get; set; } |
||||
|
} |
||||
|
|
||||
|
} |
@ -0,0 +1,81 @@ |
|||||
|
using FreeSql.DataAnnotations; |
||||
|
using System; |
||||
|
|
||||
|
namespace SiNan.Model.Db |
||||
|
{ |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 京东推广计划表
|
||||
|
/// </summary>
|
||||
|
[Table(Name = "jdpopularizecampaign", DisableSyncStructure = true)] |
||||
|
public partial class JDPopularizeCampaign |
||||
|
{ |
||||
|
|
||||
|
[Column(IsPrimary = true)] |
||||
|
public long Id { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 业务线(快车:2 京速推:134217728)
|
||||
|
/// </summary>
|
||||
|
|
||||
|
public int? BusinessType { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 计划Id
|
||||
|
/// </summary>
|
||||
|
public long? CampaignId { get; set; } |
||||
|
|
||||
|
[Column(StringLength = 100)] |
||||
|
public string CampaignName { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 点击数
|
||||
|
/// </summary>
|
||||
|
[Column(Name = "clicks")] |
||||
|
public int? Clicks { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 总花费
|
||||
|
/// </summary>
|
||||
|
[Column(DbType = "decimal(18,2)")] |
||||
|
public decimal? Cost { get; set; } |
||||
|
|
||||
|
[Column(DbType = "datetime")] |
||||
|
public DateTime? CreateTime { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 计费日期
|
||||
|
/// </summary>
|
||||
|
[Column(DbType = "datetime")] |
||||
|
public DateTime? Date { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 展现次数
|
||||
|
/// </summary>
|
||||
|
[Column(Name = "impressions")] |
||||
|
public int? Impressions { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 账号归属
|
||||
|
/// </summary>
|
||||
|
[Column(Name = "pin")] |
||||
|
public string Pin { get; set; } |
||||
|
|
||||
|
|
||||
|
public long? ShopId { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 总加购人数
|
||||
|
/// </summary>
|
||||
|
[Column(Name = "totalCartCnt")] |
||||
|
public int? TotalCartCnt { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 总订单数
|
||||
|
/// </summary>
|
||||
|
[Column(Name = "totalOrderCnt")] |
||||
|
public int? TotalOrderCnt { get; set; } |
||||
|
|
||||
|
} |
||||
|
|
||||
|
} |
@ -0,0 +1,289 @@ |
|||||
|
using FreeSql.DataAnnotations; |
||||
|
|
||||
|
namespace SiNan.Model.Db |
||||
|
{ |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 订单表
|
||||
|
/// </summary>
|
||||
|
[Table(Name = "order", DisableSyncStructure = true)] |
||||
|
public partial class Order |
||||
|
{ |
||||
|
|
||||
|
[Column(StringLength = 50, IsPrimary = true, IsNullable = false)] |
||||
|
public string Id { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 买家备注
|
||||
|
/// </summary>
|
||||
|
|
||||
|
public string BuyerRemark { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 结束时间
|
||||
|
/// </summary>
|
||||
|
[Column(DbType = "datetime")] |
||||
|
public DateTime? EndTime { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 商品运费(用户承担)
|
||||
|
/// </summary>
|
||||
|
[Column(DbType = "decimal(20,2)")] |
||||
|
public decimal FreightPrice { get; set; } = 0.00M; |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 修改时间
|
||||
|
/// </summary>
|
||||
|
[Column(DbType = "datetime")] |
||||
|
public DateTime? ModifyTime { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 用户应付金额
|
||||
|
/// </summary>
|
||||
|
[Column(DbType = "decimal(20,2)")] |
||||
|
public decimal OrderPayment { get; set; } = 0.00M; |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 订单货款金额
|
||||
|
/// </summary>
|
||||
|
[Column(DbType = "decimal(20,2)")] |
||||
|
public decimal OrderSellerPrice { get; set; } = 0.00M; |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 平台补贴
|
||||
|
/// </summary>
|
||||
|
[Column(DbType = "decimal(20,2)")] |
||||
|
public decimal PreferentialAmount { get; set; } = 0.00M; |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 商家优惠金额(商家承担)
|
||||
|
/// </summary>
|
||||
|
[Column(DbType = "decimal(20,2)")] |
||||
|
public decimal SellerPreferentialAmount { get; set; } = 0.00M; |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 订单状态
|
||||
|
/// </summary>
|
||||
|
[Column(DbType = "int(1)", MapType = typeof(int?))] |
||||
|
public Enums.OrderState? OrderState { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 订单总价
|
||||
|
/// </summary>
|
||||
|
[Column(DbType = "decimal(20,2)")] |
||||
|
public decimal OrderTotalPrice { get; set; } = 0.00M; |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 订单类型
|
||||
|
/// </summary>
|
||||
|
[Column(DbType = "int(1)", MapType = typeof(int?))] |
||||
|
public Enums.OrderType? OrderType { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 支付方式
|
||||
|
/// </summary>
|
||||
|
[Column(DbType = "int(1)", MapType = typeof(int?))] |
||||
|
public Enums.PayType? PayType { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 订单平台
|
||||
|
/// </summary>
|
||||
|
[Column(DbType = "int(1)", MapType = typeof(int?))] |
||||
|
public Enums.Platform? Platform { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 开始时间
|
||||
|
/// </summary>
|
||||
|
[Column(DbType = "datetime")] |
||||
|
public DateTime? StartTime { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 仓储类型
|
||||
|
/// </summary>
|
||||
|
[Column(DbType = "int(1)", MapType = typeof(int?))] |
||||
|
public Enums.StorageType? StorageType { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 入仓订单标识
|
||||
|
/// </summary>
|
||||
|
[Column(StringLength = 50)] |
||||
|
public string StoreOrder { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 商家Id
|
||||
|
/// </summary>
|
||||
|
public long ShopId { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 商家备注
|
||||
|
/// </summary>
|
||||
|
|
||||
|
public string VenderRemark { get; set; } |
||||
|
|
||||
|
|
||||
|
public string PurchaseRemark { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 仓库Id
|
||||
|
/// </summary>
|
||||
|
[Column(StringLength = 50)] |
||||
|
public string StoreId { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 运单号
|
||||
|
/// </summary>
|
||||
|
[Column(StringLength = 200)] |
||||
|
public string WaybillNo { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 订单旗帜
|
||||
|
/// </summary>
|
||||
|
[Column(StringLength = 10)] |
||||
|
public string Flag { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 刷单类型
|
||||
|
/// </summary>
|
||||
|
[Column(MapType = (typeof(int?)))] |
||||
|
public Enums.SDType? SDType { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 刷单关键词
|
||||
|
/// </summary>
|
||||
|
[Column(StringLength = 50)] |
||||
|
public string SDKey { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 刷单支付渠道
|
||||
|
/// </summary>
|
||||
|
[Column(MapType = (typeof(int?)))] |
||||
|
public Enums.PayChannelType? SDPayChannel { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 刷单交易账单号
|
||||
|
/// </summary>
|
||||
|
[Column(StringLength = 50)] |
||||
|
public string SDPayBillNo { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 刷单人
|
||||
|
/// </summary>
|
||||
|
[Column(StringLength = 20)] |
||||
|
public string SDOperator { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 是否为售后订单
|
||||
|
/// </summary>
|
||||
|
[Column(DbType = "bit")] |
||||
|
public bool IsAfterSaleOrder { get; set; } = false; |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 是否为赠品
|
||||
|
/// </summary>
|
||||
|
[Column(DbType = "bit")] |
||||
|
public bool IsGift { get; set; } = false; |
||||
|
|
||||
|
#region 订单成本
|
||||
|
/// <summary>
|
||||
|
/// 平台扣点金额
|
||||
|
/// </summary>
|
||||
|
[Column(IsIgnore = true)] |
||||
|
public decimal? PlatformCommissionAmount { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 平台扣点百分比
|
||||
|
/// </summary>
|
||||
|
[Column(IsIgnore = true)] |
||||
|
public decimal? PlatformCommissionRatio { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 利润
|
||||
|
/// </summary>
|
||||
|
[Column(IsIgnore = true)] |
||||
|
public decimal? Profit { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 采购金额
|
||||
|
/// </summary>
|
||||
|
[Column(IsIgnore = true)] |
||||
|
public decimal? PurchaseAmount { get; set; } = 0.00M; |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 刷单佣金
|
||||
|
/// </summary>
|
||||
|
[Column(IsIgnore = true)] |
||||
|
public decimal? SDCommissionAmount { get; set; } = 0.00M; |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 刷单号费
|
||||
|
/// </summary>
|
||||
|
[Column(IsIgnore = true)] |
||||
|
public decimal? SDOrderAmount { get; set; } = 0.00M; |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 发货快递费
|
||||
|
/// </summary>
|
||||
|
[Column(IsIgnore = true)] |
||||
|
public decimal? DeliveryExpressFreight { get; set; } = 0.00M; |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 是否手动编辑过成本
|
||||
|
/// </summary>
|
||||
|
[Column(IsIgnore = true)] |
||||
|
public bool IsManualEdited { get; set; } = false; |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 退款金额
|
||||
|
/// </summary>
|
||||
|
[Column(IsIgnore = true)] |
||||
|
public decimal RefundAmount { get; set; } = 0.00M; |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 退款采购金额
|
||||
|
/// </summary>
|
||||
|
[Column(IsIgnore = true)] |
||||
|
public decimal RefundPurchaseAmount { get; set; } = 0.0M; |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 所有服务单的售后成本(不含退款采购成本)
|
||||
|
/// </summary>
|
||||
|
[Column(IsIgnore = true)] |
||||
|
public decimal AfterTotalCost { get; set; } = 0.0M; |
||||
|
#endregion
|
||||
|
|
||||
|
#region 收货人信息
|
||||
|
[Column(IsIgnore = true)] |
||||
|
public string Address { get; set; } |
||||
|
|
||||
|
[Column(IsIgnore = true)] |
||||
|
public string City { get; set; } |
||||
|
|
||||
|
[Column(IsIgnore = true)] |
||||
|
public string ContactName { get; set; } |
||||
|
|
||||
|
[Column(IsIgnore = true)] |
||||
|
public string County { get; set; } |
||||
|
|
||||
|
[Column(IsIgnore = true)] |
||||
|
public string Mobile { get; set; } |
||||
|
|
||||
|
[Column(IsIgnore = true)] |
||||
|
public string Province { get; set; } |
||||
|
|
||||
|
[Column(IsIgnore = true)] |
||||
|
public string TelePhone { get; set; } |
||||
|
|
||||
|
[Column(IsIgnore = true)] |
||||
|
public string Town { get; set; } |
||||
|
|
||||
|
[Column(IsIgnore = true)] |
||||
|
public bool? IsDecode { get; set; } |
||||
|
#endregion
|
||||
|
|
||||
|
#region 仓库
|
||||
|
[Column(IsIgnore = true)] |
||||
|
public string StoreName { get; set; } |
||||
|
#endregion
|
||||
|
} |
||||
|
|
||||
|
} |
@ -0,0 +1,121 @@ |
|||||
|
using FreeSql.DataAnnotations; |
||||
|
|
||||
|
namespace SiNan.Model.Db |
||||
|
{ |
||||
|
|
||||
|
[Table(Name = "ordercostdetail", DisableSyncStructure = true)] |
||||
|
public partial class OrderCostDetail |
||||
|
{ |
||||
|
|
||||
|
[Column(DbType = "bigint(1)", IsPrimary = true)] |
||||
|
public long Id { get; set; } |
||||
|
|
||||
|
[Column(DbType = "datetime")] |
||||
|
public DateTime? CreateTime { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 扣减数量
|
||||
|
/// </summary>
|
||||
|
[Column(DbType = "int(1)")] |
||||
|
public int DeductionQuantity { get; set; } = 0; |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 发货运费
|
||||
|
/// </summary>
|
||||
|
[Column(DbType = "decimal(20,2)")] |
||||
|
public decimal DeliveryExpressFreight { get; set; } = 0.00M; |
||||
|
|
||||
|
[Column(StringLength = 50)] |
||||
|
public string OrderId { get; set; } |
||||
|
|
||||
|
[Column(StringLength = 50)] |
||||
|
public string ProductId { get; set; } |
||||
|
|
||||
|
/*/// <summary>
|
||||
|
/// 单件成本
|
||||
|
/// </summary>*/
|
||||
|
//[Column(DbType = "decimal(20,2)")]
|
||||
|
//public decimal UnitCost { get; set; } = 0.00M;
|
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 采购单流水Id
|
||||
|
/// </summary>
|
||||
|
[Column(DbType = "bigint(1)")] |
||||
|
public long PurchaseOrderPKId { get; set; } |
||||
|
|
||||
|
[Column(StringLength = 50)] |
||||
|
public string SkuId { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// Sku成本(商品成本)
|
||||
|
/// </summary>
|
||||
|
[Column(DbType = "decimal(20,2)")] |
||||
|
public decimal SkuAmount { get; set; } = 0.00M; |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 采购运费
|
||||
|
/// </summary>
|
||||
|
[Column(DbType = "decimal(20,2)")] |
||||
|
public decimal PurchaseFreight { get; set; } = 0.00M; |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 头程运费
|
||||
|
/// </summary>
|
||||
|
[Column(DbType = "decimal(20,2)")] |
||||
|
public decimal FirstFreight { get; set; } = 0.00M; |
||||
|
|
||||
|
///// <summary>
|
||||
|
///// 操作费
|
||||
|
///// </summary>
|
||||
|
//[Column(DbType = "decimal(20,2)")]
|
||||
|
//public decimal OperationAmount { get; set; } = 0.00M;
|
||||
|
|
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 入仓操作费
|
||||
|
/// </summary>
|
||||
|
[Column(DbType = "decimal(20,2)")] |
||||
|
public decimal InStorageAmount { get; set; } = 0.00M; |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 出仓操作费
|
||||
|
/// </summary>
|
||||
|
[Column(DbType = "decimal(20,2)")] |
||||
|
public decimal OutStorageAmount { get; set; } = 0.00M; |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 耗材费
|
||||
|
/// </summary>
|
||||
|
[Column(DbType = "decimal(20,2)")] |
||||
|
public decimal ConsumableAmount { get; set; } = 0.00M; |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 仓储费
|
||||
|
/// </summary>
|
||||
|
[Column(DbType = "decimal(20,2)")] |
||||
|
public decimal StorageAmount { get; set; } = 0.00M; |
||||
|
|
||||
|
[Column(DbType = "bit")] |
||||
|
public bool IsEnabled { get; set; } = true; |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// sku毛利
|
||||
|
/// </summary>
|
||||
|
[Column(DbType = "decimal(20,2)")] |
||||
|
public decimal SkuGrossProfit { get; set; } = 0.00M; |
||||
|
/// <summary>
|
||||
|
/// 总计
|
||||
|
/// </summary>
|
||||
|
[Column(IsIgnore = true)] |
||||
|
public decimal TotalCost |
||||
|
{ |
||||
|
get |
||||
|
{ |
||||
|
return SkuAmount + PurchaseFreight + FirstFreight + InStorageAmount + OutStorageAmount + StorageAmount + ConsumableAmount; |
||||
|
} |
||||
|
} |
||||
|
//[Column(DbType = "decimal(20,2)")]
|
||||
|
//public decimal TotalCost { get; set; } = 0.00M;
|
||||
|
} |
||||
|
|
||||
|
} |
@ -0,0 +1,14 @@ |
|||||
|
using AutoMapper; |
||||
|
using SiNan.Model.Dto; |
||||
|
|
||||
|
namespace SiNan.Model |
||||
|
{ |
||||
|
public class MappingProfiles : Profile |
||||
|
{ |
||||
|
public MappingProfiles() |
||||
|
{ |
||||
|
CreateMap<ProductResponse, ProductGOIResponse>(); |
||||
|
CreateMap<ProductSkuResponse, ProductSkuGOIResponse>(); |
||||
|
} |
||||
|
} |
||||
|
} |
Loading…
Reference in new issue