8 changed files with 251 additions and 41 deletions
@ -1,40 +0,0 @@ |
|||||
using FreeSql.DataAnnotations; |
|
||||
using System; |
|
||||
using System.Collections.Generic; |
|
||||
using System.ComponentModel.DataAnnotations; |
|
||||
using System.Linq; |
|
||||
using System.Text; |
|
||||
using System.Threading.Tasks; |
|
||||
using System.Xml.Linq; |
|
||||
|
|
||||
namespace BBWYB.Server.Model.Db.PurchaseScheme |
|
||||
{ |
|
||||
[Table(Name = "orderpurchaserelationinfo", DisableSyncStructure = true)] |
|
||||
public class OrderPurchaseRelationInfo |
|
||||
{ |
|
||||
[Column( IsPrimary = true)] |
|
||||
public long Id { get; set; } |
|
||||
|
|
||||
/// <summary>
|
|
||||
/// 采购单Id
|
|
||||
/// </summary>
|
|
||||
public string PurchaseOrderId { get; set; } |
|
||||
/// <summary>
|
|
||||
/// 订单Id
|
|
||||
/// </summary>
|
|
||||
public string OrderId { get; set; } |
|
||||
|
|
||||
/// <summary>
|
|
||||
/// 采购方案Id
|
|
||||
/// </summary>
|
|
||||
public string SchemeId { get; set; } |
|
||||
/// <summary>
|
|
||||
/// 采购spu
|
|
||||
/// </summary>
|
|
||||
public string PurchaseProductId { get; set; } |
|
||||
/// <summary>
|
|
||||
/// 采购sku
|
|
||||
/// </summary>
|
|
||||
public string PurchaseSkuId { get; set; } |
|
||||
} |
|
||||
} |
|
@ -0,0 +1,89 @@ |
|||||
|
using FreeSql.DataAnnotations; |
||||
|
|
||||
|
namespace BBWYB.Server.Model.Db |
||||
|
{ |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 历史采购方案表
|
||||
|
/// </summary>
|
||||
|
[Table(Name = "historypurchasescheme", DisableSyncStructure = true)] |
||||
|
public partial class HistoryPurchaseScheme |
||||
|
{ |
||||
|
/// <summary>
|
||||
|
/// 历史流水Id
|
||||
|
/// </summary>
|
||||
|
[Column(DbType = "bigint", IsPrimary = true)] |
||||
|
public long HistoryId { get; set; } |
||||
|
|
||||
|
[Column(DbType = "datetime")] |
||||
|
public DateTime? CreateTime { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 采购默认成本
|
||||
|
/// </summary>
|
||||
|
|
||||
|
public decimal? DefaultCost { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 慧眼标的Id
|
||||
|
/// </summary>
|
||||
|
[Column(StringLength = 50)] |
||||
|
public string HYBDId { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 慧眼采购方案Id
|
||||
|
/// </summary>
|
||||
|
[Column(StringLength = 50)] |
||||
|
public string HYSchemeId { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 采购方案Id
|
||||
|
/// </summary>
|
||||
|
[Column(DbType = "bigint")] |
||||
|
public long? Id { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 上次采购成本
|
||||
|
/// </summary>
|
||||
|
[Column(DbType = "decimal(18,2)")] |
||||
|
public decimal? LastPurchasePriceCost { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 上次采购时间
|
||||
|
/// </summary>
|
||||
|
[Column(DbType = "datetime")] |
||||
|
public DateTime? LastPurchaseTime { get; set; } |
||||
|
|
||||
|
[Column(StringLength = 50, IsNullable = false)] |
||||
|
public string ProductId { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 采购商Id
|
||||
|
/// </summary>
|
||||
|
[Column(StringLength = 20)] |
||||
|
public string PurchaserId { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 方案分组Id
|
||||
|
/// </summary>
|
||||
|
[Column(DbType = "bigint")] |
||||
|
public long? SchemeGroupId { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 店铺Id
|
||||
|
/// </summary>
|
||||
|
[Column(DbType = "bigint")] |
||||
|
public long ShopId { get; set; } |
||||
|
|
||||
|
[Column(StringLength = 50, IsNullable = false)] |
||||
|
public string SkuId { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 采购方案版本
|
||||
|
/// </summary>
|
||||
|
[Column(DbType = "int")] |
||||
|
public int? Version { get; set; } = 1; |
||||
|
|
||||
|
} |
||||
|
|
||||
|
} |
@ -0,0 +1,65 @@ |
|||||
|
using FreeSql.DataAnnotations; |
||||
|
|
||||
|
namespace BBWYB.Server.Model.Db |
||||
|
{ |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 采购方案商品表
|
||||
|
/// </summary>
|
||||
|
[ Table(Name = "historypurchaseschemeproduct", DisableSyncStructure = true)] |
||||
|
public partial class HistoryPurchaseSchemeProduct { |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 历史流水Id
|
||||
|
/// </summary>
|
||||
|
[Column(DbType = "bigint", IsPrimary = true)] |
||||
|
public long HistoryId { get; set; } |
||||
|
|
||||
|
[Column(DbType = "datetime")] |
||||
|
public DateTime? CreateTime { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 采购商品流水Id
|
||||
|
/// </summary>
|
||||
|
[Column(DbType = "bigint")] |
||||
|
public long? Id { get; set; } |
||||
|
|
||||
|
[Column(StringLength = 50)] |
||||
|
public string ProductId { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 采购商品Id
|
||||
|
/// </summary>
|
||||
|
[Column(StringLength = 50)] |
||||
|
public string PurchaseProductId { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 商家Id
|
||||
|
/// </summary>
|
||||
|
[Column(StringLength = 50)] |
||||
|
public string PurchaserId { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 采购商品链接
|
||||
|
/// </summary>
|
||||
|
[Column(StringLength = 500)] |
||||
|
public string PurchaseUrl { get; set; } |
||||
|
|
||||
|
[Column(StringLength = 50)] |
||||
|
public string SkuId { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// Sku采购方案Id
|
||||
|
/// </summary>
|
||||
|
[Column(DbType = "bigint")] |
||||
|
public long? SkuPurchaseSchemeId { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 采购方案版本
|
||||
|
/// </summary>
|
||||
|
[Column(DbType = "int")] |
||||
|
public int? Version { get; set; } = 1; |
||||
|
|
||||
|
} |
||||
|
|
||||
|
} |
@ -0,0 +1,77 @@ |
|||||
|
using FreeSql.DataAnnotations; |
||||
|
|
||||
|
namespace BBWYB.Server.Model.Db |
||||
|
{ |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 采购方案sku表
|
||||
|
/// </summary>
|
||||
|
[Table(Name = "historypurchaseschemeproductsku", DisableSyncStructure = true)] |
||||
|
public partial class HistoryPurchaseSchemeProductSku { |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 历史流水Id
|
||||
|
/// </summary>
|
||||
|
[Column(DbType = "bigint", IsPrimary = true)] |
||||
|
public long HistoryId { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 实际单价(人工设置)
|
||||
|
/// </summary>
|
||||
|
[Column(DbType = "decimal(18,2)")] |
||||
|
public decimal? ActualPrice { get; set; } = 0.00M; |
||||
|
|
||||
|
[Column(DbType = "datetime")] |
||||
|
public DateTime? CreateTime { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 采购sku流水Id
|
||||
|
/// </summary>
|
||||
|
[Column(DbType = "bigint")] |
||||
|
public long? Id { get; set; } |
||||
|
|
||||
|
[Column(StringLength = 50, IsNullable = false)] |
||||
|
public string ProductId { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 采购商品Id
|
||||
|
/// </summary>
|
||||
|
[Column(StringLength = 50, IsNullable = false)] |
||||
|
public string PurchaseProductId { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 采购比例
|
||||
|
/// </summary>
|
||||
|
[Column(DbType = "int")] |
||||
|
public int? PurchaseRatio { get; set; } = 1; |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 采购商品的SkuId
|
||||
|
/// </summary>
|
||||
|
[Column(StringLength = 50)] |
||||
|
public string PurchaseSkuId { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 采购商品Sku的SpecId
|
||||
|
/// </summary>
|
||||
|
[Column(StringLength = 50)] |
||||
|
public string PurchaseSkuSpecId { get; set; } |
||||
|
|
||||
|
[Column(StringLength = 50, IsNullable = false)] |
||||
|
public string SkuId { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// Sku采购方案Id
|
||||
|
/// </summary>
|
||||
|
[Column(DbType = "bigint")] |
||||
|
public long SkuPurchaseSchemeId { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 采购方案版本
|
||||
|
/// </summary>
|
||||
|
[Column(DbType = "int")] |
||||
|
public int? Version { get; set; } = 1; |
||||
|
|
||||
|
} |
||||
|
|
||||
|
} |
Loading…
Reference in new issue