WYB
2021-03-22 91b8cdad021ab052e4991f3d41834a6f0ddc36b8
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
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; }
    }
}