Sys_Users.cs 6.8 KB

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