using SqlSugar;
using WIDESEA_Core.DB.Models;
namespace WIDESEA_Model.Models;
///
/// 分配区域关系
///
[SugarTable(nameof(PointStackerRelation), "分配区域关系")]
public class PointStackerRelation : BaseEntity
{
///
/// 主键
///
[SugarColumn(IsPrimaryKey = true, IsIdentity = true, ColumnName = "PointID", ColumnDescription = "主键")]
public int PointID { get; set; }
///
/// 站台编号
///
[SugarColumn(Length = 100, ColumnName = "PointCode", ColumnDescription = "站台编号")]
public string PointCode { get; set; }
///
/// 站台编号集合
///
[SugarColumn(IsIgnore = true)]
public List PointCodeList
{
get
{
if (string.IsNullOrEmpty(PointCode))
{
return new List();
}
return PointCode.Split(',').ToList();
}
set
{
PointCode = value != null ? string.Join(",", value) : string.Empty;
}
}
///
/// 堆垛机编号
///
[SugarColumn(Length = 100, ColumnName = "StackerCode", ColumnDescription = "堆垛机编号")]
public string StackerCode { get; set; }
///
/// 堆垛机编号集合
///
[SugarColumn(IsIgnore = true)]
public List StackerCodeList
{
get
{
if (string.IsNullOrEmpty(StackerCode))
{
return new List();
}
return StackerCode.Split(',').ToList();
}
set
{
StackerCode = value != null ? string.Join(",", value) : string.Empty;
}
}
///
/// 关系的方向('PointToStacker' 或 'StackerToPoint')
///
[SugarColumn(Length = 100, ColumnName = "Direction", ColumnDescription = "关系的方向('PointToStacker' 或 'StackerToPoint')")]
public string Direction { get; set; }
///
/// 关系的区域('注液'或'陈化')
///
[SugarColumn(Length = 100, ColumnName = "Area", ColumnDescription = "关系的区域")]
public string Area { get; set; }
}