dengjunjie
2025-07-09 7ca9651f81d7b84f054194d3d46fdbd1d9c8b922
项目代码/WMS/WIDESEA_WMSServer/WIDESEA_Model/Models/System/Sys_Department.cs
对比新文件
@@ -0,0 +1,57 @@
锘縰sing System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using SqlSugar;
using WIDESEA_Core.DB.Models;
using WIDESEA_Core.Tenants;
namespace WIDESEA_Model.Models
{
    [SugarTable("Sys_Department", "缁勭粐鏋舵瀯"), MultiTenant]
    public class Sys_Department : BaseEntity
    {
        /// <summary>
        /// 缁勭粐ID
        /// </summary>
        [SugarColumn(IsIdentity = true, IsPrimaryKey = true, ColumnDescription = "缁勭粐ID")]
        public int DepartmentId { get; set; }
        /// <summary>
        /// 缁勭粐鍚嶇О
        /// </summary>
        [SugarColumn(IsNullable = true, Length = 50, ColumnDescription = "缁勭粐鍚嶇О")]
        public string DepartmentName { get; set; }
        /// <summary>
        /// 缁勭粐缂栧彿
        /// </summary>
        [SugarColumn(IsNullable = true, Length = 50, ColumnDescription = "缁勭粐缂栧彿")]
        public string DepartmentCode { get; set; }
        /// <summary>
        /// 涓婄骇缁勭粐
        /// </summary>
        [SugarColumn(IsNullable = false, ColumnDescription = "涓婄骇缁勭粐")]
        public int ParentId { get; set; }
        /// <summary>
        /// 閮ㄩ棬绫诲瀷
        /// </summary>
        [SugarColumn(IsNullable = true, Length = 50, ColumnDescription = "閮ㄩ棬绫诲瀷")]
        public string DepartmentType { get; set; }
        /// <summary>
        /// 鏄惁鍙敤
        /// </summary>
        [SugarColumn(IsNullable = false, ColumnDescription = "鏄惁鍙敤")]
        public int Enable { get; set; }
        /// <summary>
        /// 澶囨敞
        /// </summary>
        [SugarColumn(IsNullable = true, Length = 2000, ColumnDescription = "澶囨敞")]
        public string Remark { get; set; }
    }
}