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; } 
 | 
} 
 |