刘磊
2024-12-21 a6ea79849f0142b5280f0c5d4b15ecc83f0d015a
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
69
70
71
72
73
74
75
76
77
78
79
80
81
using SqlSugar;
using WIDESEA_Core.DB.Models;
 
namespace WIDESEA_Model.Models;
 
/// <summary>
/// 分配区域关系
/// </summary>
[SugarTable(nameof(PointStackerRelation), "分配区域关系")]
public class PointStackerRelation : BaseEntity
{
    /// <summary>
    /// 主键
    /// </summary>
    [SugarColumn(IsPrimaryKey = true, IsIdentity = true, ColumnName = "PointID", ColumnDescription = "主键")]
    public int PointID { get; set; }
 
    /// <summary>
    /// 站台编号
    /// </summary>
    [SugarColumn(Length = 100, ColumnName = "PointCode", ColumnDescription = "站台编号")]
    public string PointCode { get; set; }
 
    /// <summary>
    /// 站台编号集合
    /// </summary>
    [SugarColumn(IsIgnore = true)]
    public List<string> PointCodeList
    {
        get
        {
            if (string.IsNullOrEmpty(PointCode))
            {
                return new List<string>();
            }
            return PointCode.Split(',').ToList();
        }
        set
        {
            PointCode = value != null ? string.Join(",", value) : string.Empty;
        }
    }
 
    /// <summary>
    /// 堆垛机编号
    /// </summary>
    [SugarColumn(Length = 100, ColumnName = "StackerCode", ColumnDescription = "堆垛机编号")]
    public string StackerCode { get; set; }
 
    /// <summary>
    /// 堆垛机编号集合
    /// </summary>
    [SugarColumn(IsIgnore = true)]
    public List<string> StackerCodeList
    {
        get
        {
            if (string.IsNullOrEmpty(StackerCode))
            {
                return new List<string>();
            }
            return StackerCode.Split(',').ToList();
        }
        set
        {
            StackerCode = value != null ? string.Join(",", value) : string.Empty;
        }
    }
 
    /// <summary>
    /// 关系的方向('PointToStacker' 或 'StackerToPoint')
    /// </summary>
    [SugarColumn(Length = 100, ColumnName = "Direction", ColumnDescription = "关系的方向('PointToStacker' 或 'StackerToPoint')")]
    public string Direction { get; set; }
 
    /// <summary>
    /// 关系的区域('注液'或'陈化')
    /// </summary>
    [SugarColumn(Length = 100, ColumnName = "Area", ColumnDescription = "关系的区域")]
    public string Area { get; set; }
}