You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

139 lines
3.8 KiB
C#

9 months ago
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Newtonsoft.Json;
using NPoco;
using POSV.Entity;
using POSV.Utils;
namespace POSV.ShoppingCart
{
/// <summary>
/// 订单行支付明细
/// </summary>
[Serializable]
[JsonObject(MemberSerialization.OptIn)]
[TableName("pos_order_item_pay")]
[PrimaryKey(new string[] { "id" }, AutoIncrement = false)]
public class OrderItemPay : BaseEntity
{
public OrderItemPay()
{
}
/// <summary>
/// 租户ID
/// </summary>
[JsonProperty(PropertyName = "tenantId")]
[Column("tenantId")]
public string TenantId { get; set; }
/// <summary>
/// 订单ID
/// </summary>
[JsonProperty(PropertyName = "orderId")]
[Column("orderId")]
public string OrderId { get; set; }
/// <summary>
/// 订单号
/// </summary>
[JsonProperty(PropertyName = "tradeNo")]
[Column("tradeNo")]
public string TradeNo { get; set; }
/// <summary>
/// 订单明细ID
/// </summary>
[JsonProperty(PropertyName = "itemId")]
[Column("itemId")]
public string ItemId { get; set; }
/// <summary>
/// 商品ID
/// </summary>
[JsonProperty(PropertyName = "productId")]
[Column("productId")]
public string ProductId { get; set; }
/// <summary>
/// 规格ID
/// </summary>
[JsonProperty(PropertyName = "specId")]
[Column("specId")]
public string SpecId { get; set; }
/// <summary>
/// 支付记录ID
/// </summary>
[JsonProperty(PropertyName = "payId")]
[Column("payId")]
public string PayId { get; set; }
/// <summary>
/// 付款方式编号
/// </summary>
[JsonProperty(PropertyName = "no")]
[Column("no")]
public string No { get; set; }
/// <summary>
/// 付款方式名称
/// </summary>
[JsonProperty(PropertyName = "name")]
[Column("name")]
public string Name { get; set; }
/// <summary>
/// 分摊的券占用金额比如满20元可用5元这个字段就是分摊占用的20元因为这个是要排除后才能够计算剩余可用券金额
/// </summary>
[JsonProperty(PropertyName = "shareCouponLeastCost")]
[Column("shareCouponLeastCost")]
public decimal ShareCouponLeastCost { get; set; }
/// <summary>
/// 分摊金额
/// </summary>
[JsonProperty(PropertyName = "shareAmount")]
[Column("shareAmount")]
public decimal ShareAmount { get; set; }
/// <summary>
/// 退款金额
/// </summary>
[JsonProperty(PropertyName = "ramount")]
[Column("ramount")]
public decimal RefundAmount { get; set; }
/// <summary>
/// 订单完成时间(格式:yyyy-MM-dd HH:mm:ss)
/// </summary>
[JsonProperty(PropertyName = "finishDate")]
[Column("finishDate")]
public string FinishDate { get; set; } = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
/// <summary>
/// 扩展信息1
/// </summary>
[JsonProperty(PropertyName = "ext1")]
[Column("ext1")]
public string Ext1 { get; set; }
/// <summary>
/// 扩展信息2
/// </summary>
[JsonProperty(PropertyName = "ext2")]
[Column("ext2")]
public string Ext2 { get; set; }
/// <summary>
/// 扩展信息3
/// </summary>
[JsonProperty(PropertyName = "ext3")]
[Column("ext3")]
public string Ext3 { get; set; }
}
}