BaseEquipmentGroup.cs 1.14 KB
using Hh.Mes.POJO.Entity;
using SqlSugar;
using System.Collections.Generic;

namespace Hh.Mes.POJO.WebEntity
{
    [SugarTable("base_equipment_group")]
    public class BaseEquipmentGroup : base_Entity
    {
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        public int id { get; set; }

        /// <summary>
        /// 节点路径
        /// </summary>
        public string path { get; set; }

        /// <summary>
        /// 组编号
        /// </summary>
        public string code { get; set; }

        /// <summary>
        /// 组名称
        /// </summary>
        public string name { get; set; }

        /// <summary>
        /// 父节点Id
        /// </summary>
        public int? parentId { get; set; }

        /// <summary>
        /// 父节点名称
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public string parentName { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public string remark { get; set; }

        [SugarColumn(IsIgnore = true)]
        public List<BaseEquipmentGroup> children { get; set; } = new List<BaseEquipmentGroup>();
    }
}