1
647556386
2025-11-30 8639f19c82f6e263654db44286256bb8d028d2c2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
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; }
    }
}