using SqlSugar;
|
using System;
|
using System.Collections.Generic;
|
using System.Linq;
|
using System.Text;
|
using System.Threading.Tasks;
|
using WIDESEA_Core.DB.Models;
|
|
namespace WIDESEA_Model.Models.Outbound
|
{
|
|
|
/// <summary>
|
/// 出库批次表
|
/// </summary>
|
[SugarTable("Dt_OutboundBatch")]
|
public class Dt_OutboundBatch : BaseEntity
|
{
|
/// <summary>
|
/// 主键ID(自增)
|
/// </summary>
|
[SugarColumn(IsPrimaryKey = true, IsIdentity = true)] //
|
public int Id { get; set; }
|
|
/// <summary>
|
/// 批次号
|
/// </summary>
|
[SugarColumn(ColumnName = "BatchNo", Length = 50, IsNullable = false)]
|
public string BatchNo { get; set; }
|
|
/// <summary>
|
/// 订单号
|
/// </summary>
|
[SugarColumn(ColumnName = "OrderNo", Length = 50, IsNullable = false)]
|
public string OrderNo { get; set; }
|
|
/// <summary>
|
/// 订单明细ID
|
/// </summary>
|
[SugarColumn(ColumnName = "OrderDetailId", IsNullable = false)]
|
public int OrderDetailId { get; set; }
|
|
/// <summary>
|
/// 批次分配数量
|
/// </summary>
|
[SugarColumn(ColumnName = "BatchQuantity", IsNullable = false)] // 精度18,小数位2
|
public decimal BatchQuantity { get; set; }
|
|
/// <summary>
|
/// 已完成数量(默认0)
|
/// </summary>
|
[SugarColumn(ColumnName = "CompletedQuantity", DefaultValue = "0")] // 默认值0
|
public decimal CompletedQuantity { get; set; } = 0; // 代码层默认值,与数据库默认值一致
|
|
/// <summary>
|
/// 批次状态(默认0)
|
/// </summary>
|
[SugarColumn(ColumnName = "BatchStatus", DefaultValue = "0")]
|
public int BatchStatus { get; set; } = 0;
|
|
|
/// <summary>
|
/// 操作人
|
/// </summary>
|
[SugarColumn(ColumnName = "Operator", Length = 50, IsNullable = true)] // 可空
|
public string Operator { get; set; }
|
}
|
}
|