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.

223 lines
6.1 KiB
C#

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Newtonsoft.Json;
using NPoco;
using POSV.Entity;
namespace POSV.ShoppingCart
{
[Serializable]
[JsonObject(MemberSerialization.OptIn)]
[TableName("pos_order_delivery")]
[PrimaryKey(new string[] { "id" } , AutoIncrement = false)]
public class OrderDelivery : BaseEntity
{
/// <summary>
/// 租户ID
/// </summary>
[JsonProperty(PropertyName = "tenantId")]
[Column("tenantId")]
public string TenantId { get; set; }
/// <summary>
/// 随机单号
/// </summary>
[JsonProperty(PropertyName = "orderId")]
[Column("orderId")]
public string OrderId { get; set; }
/// <summary>
/// 单据编号
/// </summary>
[JsonProperty(PropertyName = "tradeNo")]
[Column("tradeNo")]
public string TradeNo { get; set; }
/// <summary>
/// 班次编号
/// </summary>
[JsonProperty(PropertyName = "shiftNo")]
[Column("shiftNo")]
public string ShiftNo { get; set; }
/// <summary>
/// 班次名称
/// </summary>
[JsonProperty(PropertyName = "shiftName")]
[Column("shiftName")]
public string ShiftName { get; set; }
/// <summary>
/// 订餐人ID
/// </summary>
[JsonProperty(PropertyName = "visitorId")]
[Column("visitorId")]
public string VisitorId { get; set; }
/// <summary>
/// 订餐人姓名
/// </summary>
[JsonProperty(PropertyName = "visitorName")]
[Column("visitorName")]
public string VisitorName { get; set; }
/// <summary>
/// 订餐人电话
/// </summary>
[JsonProperty(PropertyName = "visitorTelephone")]
[Column("visitorTelephone")]
public string VisitorTelephone { get; set; }
/// <summary>
/// 就餐人数
/// </summary>
[JsonProperty(PropertyName = "peoples")]
[Column("peoples")]
public int Peoples { get; set; }
/// <summary>
/// 订餐人地址ID
/// </summary>
[JsonProperty(PropertyName = "addressId")]
[Column("addressId")]
public string AddressId { get; set; }
/// <summary>
/// 订餐人地址
/// </summary>
[JsonProperty(PropertyName = "address")]
[Column("address")]
public string Address { get; set; }
/// <summary>
/// 收货人
/// </summary>
[JsonProperty(PropertyName = "customer")]
[Column("customer")]
public string Customer { get; set; }
/// <summary>
/// 收货人电话
/// </summary>
[JsonProperty(PropertyName = "telephone")]
[Column("telephone")]
public string Telephone { get; set; }
/// <summary>
/// 期望送达时间
/// </summary>
[JsonProperty(PropertyName = "expectDate")]
[Column("expectDate")]
public string ExpectDate { get; set; }
/// <summary>
/// 送餐员ID
/// </summary>
[JsonProperty(PropertyName = "workerId")]
[Column("workerId")]
public string WorkerId { get; set; }
/// <summary>
/// 送餐员编号
/// </summary>
[JsonProperty(PropertyName = "workerNo")]
[Column("workerNo")]
public string WorkerNo { get; set; }
/// <summary>
/// 送餐员姓名
/// </summary>
[JsonProperty(PropertyName = "workerName")]
[Column("workerName")]
public string WorkerName { get; set; }
/// <summary>
/// 预支金额
/// </summary>
[JsonProperty(PropertyName = "advanceAmount")]
[Column("advanceAmount")]
public decimal AdvanceAmount { get; set; } = 0;
/// <summary>
/// 加收服务费
/// </summary>
[JsonProperty(PropertyName = "distributionFee")]
[Column("distributionFee")]
public decimal DistributionFee { get; set; } = 0;
/// <summary>
/// 送出时间
/// </summary>
[JsonProperty(PropertyName = "sendDate")]
[Column("sendDate")]
public string SendDate { get; set; }
/// <summary>
/// 交账结算时间
/// </summary>
[JsonProperty(PropertyName = "settlementDate")]
[Column("settlementDate")]
public string SettlementDate { get; set; }
/// <summary>
/// 备注说明
/// </summary>
[JsonProperty(PropertyName = "description")]
[Column("description")]
public string Description { get; set; }
/// <summary>
/// 外送单状态 0-新建未配送,1-已配送2-已交单
/// </summary>
[JsonProperty(PropertyName = "status")]
[Column("status")]
public int Status { get; set; } = 0;
/// <summary>
/// 状态描述
/// </summary>
[JsonIgnore]
[Ignore]
public string StatusStr { 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>
/// 金额合计
/// </summary>
[JsonIgnore]
[Ignore]
public decimal Amount { get; set; }
/// <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; }
}
}