Sys_Users.cs 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192
  1. using OASystem.Domain.Entities;
  2. using SqlSugar;
  3. namespace OASystem.Domain.Entities.System
  4. {
  5. /// <summary>
  6. /// 用户表
  7. /// </summary>
  8. [SugarTable("Sys_Users")]
  9. public class Sys_Users : EntityBase
  10. {
  11. /// <summary>
  12. /// 中文姓名
  13. /// </summary>
  14. [SugarColumn(IsNullable = true, ColumnDataType = "varchar(50)")]
  15. public string CnName { get; set; }
  16. /// <summary>
  17. /// 英文姓名
  18. /// </summary>
  19. [SugarColumn(IsNullable = true,ColumnDataType ="varchar(50)")]
  20. public string EnName { get; set; }
  21. /// <summary>
  22. /// 工号
  23. /// </summary>
  24. [SugarColumn(IsNullable = true, ColumnDataType = "varchar(50)")]
  25. public string Number { get; set; }
  26. /// <summary>
  27. /// 公司Id
  28. /// </summary>
  29. [SugarColumn(IsNullable = true,ColumnDataType ="int")]
  30. public int CompanyId { get; set; }
  31. /// <summary>
  32. /// 部门Id
  33. /// </summary>
  34. [SugarColumn(IsNullable = true,ColumnDataType ="int")]
  35. public int DepId { get; set; }
  36. /// <summary>
  37. /// 岗位Id
  38. /// </summary>
  39. [SugarColumn(IsNullable = true, ColumnDataType = "int")]
  40. public int JobPostId { get; set; }
  41. /// <summary>
  42. /// 密码
  43. /// </summary>
  44. [SugarColumn(IsNullable = true, ColumnDataType = "varchar(50)")]
  45. public string Password { get; set; }
  46. /// <summary>
  47. /// 性别0 男 1 女 2 未设置
  48. /// </summary>
  49. [SugarColumn(IsNullable = true, ColumnDataType = "int")]
  50. public int Sex { get; set; }
  51. /// <summary>
  52. /// 分机号
  53. /// </summary>
  54. [SugarColumn(IsNullable = true, ColumnDataType = "varchar(50)")]
  55. public string Ext { get; set; }
  56. /// <summary>
  57. /// 手机号
  58. /// </summary>
  59. [SugarColumn(IsNullable = true, ColumnDataType = "varchar(50)")]
  60. public string Phone { get; set; }
  61. /// <summary>
  62. /// 紧急联系人 手机号
  63. /// </summary>
  64. [SugarColumn(IsNullable = true, ColumnDataType = "varchar(50)")]
  65. public string UrgentPhone { get; set; }
  66. /// <summary>
  67. /// 邮箱
  68. /// </summary>
  69. [SugarColumn(IsNullable = true, ColumnDataType = "varchar(50)")]
  70. public string Email { get; set; }
  71. /// <summary>
  72. /// 住址
  73. /// </summary>
  74. [SugarColumn(IsNullable = true, ColumnDataType ="varchar(200)")]
  75. public string Address { get; set; }
  76. /// <summary>
  77. /// 入职时间
  78. /// </summary>
  79. [SugarColumn(IsNullable = true, ColumnDataType = "DateTime")]
  80. public DateTime Edate { get; set; }
  81. /// <summary>
  82. /// 离职时间
  83. /// </summary>
  84. [SugarColumn(IsNullable = true, ColumnDataType = "DateTime")]
  85. public DateTime Rdate { get; set; }
  86. /// <summary>
  87. /// 工龄
  88. /// </summary>
  89. [SugarColumn(IsNullable = true, ColumnDataType = "int")]
  90. public int Seniority { get; set; }
  91. /// <summary>
  92. /// 生日
  93. /// </summary>
  94. [SugarColumn(IsNullable = true,ColumnDataType = "DateTime")]
  95. public DateTime? Birthday { get; set; }
  96. /// <summary>
  97. /// 身份证号码
  98. /// </summary>
  99. [SugarColumn(IsNullable = true, ColumnDataType ="varchar(20)")]
  100. public string IDCard { get; set; }
  101. /// <summary>
  102. /// 开始工作时
  103. /// </summary>
  104. [SugarColumn(IsNullable = true, ColumnDataType = "varchar(20)")]
  105. public string? StartWorkDate { get; set; }
  106. /// <summary>
  107. /// 毕业学校
  108. /// </summary>
  109. [SugarColumn(IsNullable = true, ColumnDataType ="varchar(200)")]
  110. public string GraduateInstitutions { get; set; }
  111. /// <summary>
  112. /// 专业
  113. /// </summary>
  114. [SugarColumn(IsNullable = true,ColumnDataType ="varchar(50)")]
  115. public string Professional { get; set; }
  116. /// <summary>
  117. /// 学历
  118. /// 0 未设置 1 小学、2 初中、3 高中、4 专科、5 本科、6 研究生
  119. /// </summary>
  120. [SugarColumn(IsNullable = true,ColumnDataType ="int")]
  121. public int Education { get; set; }
  122. /// <summary>
  123. /// 学历类型
  124. ///0 未设置 1 成教 2 统招 3 留学
  125. /// </summary>
  126. [SugarColumn(IsNullable = true,ColumnDataType ="int")]
  127. public int TheOrAdultEducation { get; set; }
  128. /// <summary>
  129. /// 婚姻状态
  130. /// </summary>
  131. [SugarColumn(IsNullable = true, ColumnDataType ="varchar(200)")]
  132. public string MaritalStatus { get; set; }
  133. /// <summary>
  134. /// 家庭地址
  135. /// </summary>
  136. [SugarColumn(IsNullable = true, ColumnDataType = "varchar(200)")]
  137. public string HomeAddress { get; set; }
  138. /// <summary>
  139. /// 试用期
  140. /// </summary>
  141. [SugarColumn(IsNullable = true, ColumnDataType = "varchar(200)")]
  142. public string UsePeriod { get; set; }
  143. /// <summary>
  144. /// 工作经历
  145. /// </summary>
  146. [SugarColumn(IsNullable = true, ColumnDataType = "varchar(500)")]
  147. public string WorkExperience { get; set; }
  148. /// <summary>
  149. /// 证书上传
  150. /// </summary>
  151. [SugarColumn(IsNullable = true, ColumnDataType = "varchar(500)")]
  152. public string Certificate { get; set; }
  153. /// <summary>
  154. /// 人事审核 0未审核(初始状态) 1 已通过(可用)2已拒绝
  155. /// </summary>
  156. [SugarColumn(IsNullable = true,ColumnDataType ="int")]
  157. public int HrAudit { get; set; }
  158. /// <summary>
  159. /// 企微Id
  160. /// </summary>
  161. [SugarColumn(IsNullable = true, ColumnDataType = "varchar(200)")]
  162. public string QiyeChatUserId { get; set; }
  163. }
  164. #region 附加字段
  165. /// <summary>
  166. /// 用户表
  167. /// 数据库查询接受实体类
  168. /// </summary>
  169. public class UserInfo : Sys_Users
  170. {
  171. /// <summary>
  172. /// 公司名称
  173. /// </summary>
  174. public string? CompanyName { get; set; }
  175. /// <summary>
  176. /// 部门名称
  177. /// </summary>
  178. public string? DepName { get; set; }
  179. /// <summary>
  180. /// 岗位名称
  181. /// </summary>
  182. public string? JobName { get; set; }
  183. }
  184. #endregion
  185. }