using System;
|
using System.Collections.Generic;
|
using System.Linq;
|
using System.Text;
|
using JiepeiWMS.Model.Interfaces;
|
using SqlSugar;
|
|
|
namespace JiepeiWMS.Model.Models
|
{
|
///<summary>
|
///部门表
|
///</summary>
|
[SugarTable("Department", "Jiepei_WMS")]
|
public class Department : IModTree
|
{
|
public Department()
|
{
|
}
|
|
[SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
|
public int Id { get; set; }
|
|
public int SortById { get; set; }
|
|
public DateTime CreatedTime { get; set; }
|
|
public int? CreatedBy { get; set; }
|
|
public DateTime? UpdatedTime { get; set; }
|
|
public int? UpdatedBy { get; set; }
|
|
public int ParentId { get; set; }
|
|
public string Code { get; set; }
|
|
public string ShortName { get; set; }
|
|
public string Name { get; set; }
|
|
public byte Type { get; set; }
|
|
public int? Leader { get; set; }
|
|
public int? ViceLeader { get; set; }
|
|
public string Remark { get; set; }
|
|
public short Status { get; set; }
|
|
public string CreatedName { get; set; }
|
|
public string Path { get; set; }
|
|
public int Depth { get; set; }
|
|
/// <summary>
|
/// 父级名称
|
/// </summary>
|
[SugarColumn(IsIgnore = true)]
|
public string ParentName { get; set; }
|
|
|
/// <summary>
|
/// 父级数组
|
/// </summary>
|
[SugarColumn(IsIgnore = true)]
|
public List<int> ParentIdArr { get; set; }
|
}
|
}
|