Browse Source

2023-3-20 09:53:05

洪 王 2 years ago
parent
commit
dc5861afa3

BIN
OASystem/.vs/OASystem/FileContentIndex/3848d984-7769-4b2b-914d-5e3e9b88916f.vsidx


BIN
OASystem/.vs/OASystem/FileContentIndex/38b4d064-81eb-4030-b1a0-a2b42f9d4a6a.vsidx


BIN
OASystem/.vs/OASystem/FileContentIndex/53d851b4-826f-4c05-84fe-3c9aaf24eccc.vsidx


BIN
OASystem/.vs/OASystem/FileContentIndex/f98326c4-539c-4f90-badc-209e2a04c161.vsidx


BIN
OASystem/.vs/OASystem/v17/.suo


+ 1 - 1
OASystem/PaymentSystem.Api/OAMethodLib/BaseConfig.cs

@@ -1,4 +1,4 @@
-namespace OASystem.API.CMBPayBusiness
+namespace OASystem.API.OAMethodLib
 {
     public static class BaseConfig
     {

+ 1 - 1
OASystem/PaymentSystem.Api/OAMethodLib/Common.cs

@@ -1,4 +1,4 @@
-namespace OASystem.API.CMBPayBusiness
+namespace OASystem.API.OAMethodLib
 {
     public static class Common
     {

+ 1 - 1
OASystem/PaymentSystem.Api/OAMethodLib/sm3withsm2.cs

@@ -1,4 +1,4 @@
-namespace OASystem.API.CMBPayBusiness
+namespace OASystem.API.OAMethodLib
 {
     /**
      * need lib:

+ 1 - 1
OASystem/PaymentSystem.Domain/AutoMappers/_baseMappingProfile.cs

@@ -11,7 +11,7 @@ namespace OASystem.Domain.AutoMappers
         {
             //CreateMap<OrderDto, Order>();
             #region Login
-            CreateMap<LoginDto, S_Users>();
+            CreateMap<LoginDto, Sys_Users>();
             #endregion
 
         }

+ 50 - 94
OASystem/PaymentSystem.Domain/Entities/BasicInfo/S_Users.cs

@@ -1,203 +1,159 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace OASystem.Domain.Entities.BasicInfo
+using OASystem.Domain.Entities;
+using SqlSugar;
+namespace OaSystem.Domain.Entities.System
 {
     /// <summary>
-    /// 员工信息
+    /// 用户表
     /// </summary>
-    [SugarTable("S_Users")]
-    public class S_Users :EntityBase
+    [SugarTable("Sys_Users")]
+    public class Sys_Users : EntityBase
     {
         /// <summary>
-        /// 中文名
+        /// 中文
         /// </summary>
-        [SugarColumn(IsNullable = true)]
+        [SugarColumn(IsNullable = false, Length = 50)]
         public string CnName { get; set; }
-
         /// <summary>
-        /// 英文名
+        /// 英文
         /// </summary>
-        [SugarColumn(IsNullable = true)]
+        [SugarColumn(IsNullable = false, Length = 50)]
         public string EnName { get; set; }
-
         /// <summary>
-        /// 员工工号
+        /// 工号
         /// </summary>
-        [SugarColumn(IsNullable = true)]
+        [SugarColumn(IsNullable = false, Length = 50)]
         public string Number { get; set; }
-
         /// <summary>
         /// 公司Id
         /// </summary>
-        [SugarColumn(IsNullable = true)]
+        [SugarColumn(IsNullable = false)]
         public int CompanyId { get; set; }
-
         /// <summary>
         /// 部门Id
         /// </summary>
-        [SugarColumn(IsNullable = true)]
+        [SugarColumn(IsNullable = false)]
         public int DepId { get; set; }
-
         /// <summary>
         /// 岗位Id
         /// </summary>
-        [SugarColumn(IsNullable = true)]
+        [SugarColumn(IsNullable = false)]
         public int JobPostId { get; set; }
-
         /// <summary>
         /// 密码
         /// </summary>
-        [SugarColumn(IsNullable = true)]
+        [SugarColumn(IsNullable = false, Length = 50)]
         public string Password { get; set; }
-
         /// <summary>
-        /// 性别
-        /// 0 男 1 女  2 未设置
+        /// 性别0 男1 女  2 未设置
         /// </summary>
-        [SugarColumn(IsNullable = true)]
+        [SugarColumn(IsNullable = false)]
         public int Sex { get; set; }
-
         /// <summary>
         /// 分机号
         /// </summary>
-        [SugarColumn(IsNullable = true)]
+        [SugarColumn(IsNullable = false, Length = 50)]
         public string Ext { get; set; }
-
         /// <summary>
-        /// 机号
+        /// 机号
         /// </summary>
-        [SugarColumn(IsNullable = true)]
+        [SugarColumn(IsNullable = false, Length = 50)]
         public string Phone { get; set; }
-
         /// <summary>
-        /// 紧急联系人
+        /// 紧急联系人 手机号
         /// </summary>
-        [SugarColumn(IsNullable = true)]
+        [SugarColumn(IsNullable = false, Length = 50)]
         public string UrgentPhone { get; set; }
-
         /// <summary>
         /// 邮箱
         /// </summary>
-        [SugarColumn(IsNullable = true)]
+        [SugarColumn(IsNullable = false, Length = 50)]
         public string Email { get; set; }
-
         /// <summary>
-        /// 现居地
+        /// 
         /// </summary>
-        [SugarColumn(IsNullable = true)]
+        [SugarColumn(IsNullable = false, Length = 200)]
         public string Address { get; set; }
-
         /// <summary>
         /// 入职时间
         /// </summary>
-        [SugarColumn(IsNullable = true)]
+        [SugarColumn(IsNullable = false)]
         public DateTime Edate { get; set; }
-
         /// <summary>
         /// 离职时间
         /// </summary>
-        [SugarColumn(IsNullable = true)]
+        [SugarColumn(IsNullable = false)]
         public DateTime Rdate { get; set; }
-
         /// <summary>
         /// 工龄
         /// </summary>
-        [SugarColumn(IsNullable = true)]
+        [SugarColumn(IsNullable = false)]
         public int Seniority { get; set; }
-
-        /// <summary>
-        /// 备注
-        /// </summary>
-        [SugarColumn(IsNullable = true)]
-        public string Remark { get; set; }
-
-        /// <summary>
-        /// 是否删除
-        /// </summary>
-        [SugarColumn(IsNullable = true)]
-        public int IsDel { get; set; }
-
         /// <summary>
         /// 生日
         /// </summary>
-        [SugarColumn(IsNullable = true)]
+        [SugarColumn(IsNullable = false)]
         public DateTime Birthday { get; set; }
-
         /// <summary>
-        /// 身份证
+        /// 身份证号码
         /// </summary>
-        [SugarColumn(IsNullable = true)]
+        [SugarColumn(IsNullable = false, Length = 20)]
         public string IDCard { get; set; }
-
         /// <summary>
-        /// 开始工作日期
+        /// 开始工作时
         /// </summary>
-        [SugarColumn(IsNullable = true)]
+        [SugarColumn(IsNullable = false)]
         public DateTime StartWorkDate { get; set; }
-
         /// <summary>
         /// 毕业学校
         /// </summary>
-        [SugarColumn(IsNullable = true)]
+        [SugarColumn(IsNullable = false, Length = 200)]
         public string GraduateInstitutions { get; set; }
-
         /// <summary>
         /// 专业
         /// </summary>
-        [SugarColumn(IsNullable = true)]
+        [SugarColumn(IsNullable = false, Length = 50)]
         public string Professional { get; set; }
-
         /// <summary>
-        /// 学历
+        /// 专业
         /// </summary>
-        [SugarColumn(IsNullable = true)]
-        public string Education { get; set; }
-
+        [SugarColumn(IsNullable = false)]
+        public int Education { get; set; }
         /// <summary>
         /// 学历类型
         /// </summary>
-        [SugarColumn(IsNullable = true)]
-        public string TheOrAdultEducation { get; set; }
-
+        [SugarColumn(IsNullable = false)]
+        public int TheOrAdultEducation { get; set; }
         /// <summary>
         /// 婚姻状态
         /// </summary>
-        [SugarColumn(IsNullable = true)]
+        [SugarColumn(IsNullable = false, Length = 200)]
         public string MaritalStatus { get; set; }
-
         /// <summary>
         /// 家庭地址
         /// </summary>
-        [SugarColumn(IsNullable = true)]
+        [SugarColumn(IsNullable = false, Length = 200)]
         public string HomeAddress { get; set; }
-
         /// <summary>
         /// 试用期
         /// </summary>
-        [SugarColumn(IsNullable = true)]
+        [SugarColumn(IsNullable = false, Length = 200)]
         public string UsePeriod { get; set; }
-
         /// <summary>
         /// 工作经历
         /// </summary>
-        [SugarColumn(IsNullable = true)]
+        [SugarColumn(IsNullable = false, Length = 500)]
         public string WorkExperience { get; set; }
-
         /// <summary>
         /// 证书上传
         /// </summary>
-        [SugarColumn(IsNullable = true)]
+        [SugarColumn(IsNullable = false, Length = 500)]
         public string Certificate { get; set; }
-
         /// <summary>
-        /// 人事审核 
-        /// 0未审核(初始状态) 1 已通过(可用)2已拒绝
+        /// 人事审核 0未审核(初始状态) 1 已通过(可用)2已拒绝
         /// </summary>
-        [SugarColumn(IsNullable = true)]
+        [SugarColumn(IsNullable = false)]
         public int HrAudit { get; set; }
+
+
     }
 }

+ 1 - 1
OASystem/PaymentSystem.Infrastructure/Repositories/Login/LoginRepository.cs

@@ -4,7 +4,7 @@ using OASystem.Domain.Entities.BasicInfo;
 
 namespace OASystem.Infrastructure.Repositories.Login
 {
-    public class LoginRepository : BaseRepository<S_Users, LoginView>
+    public class LoginRepository : BaseRepository<Sys_Users, LoginView>
     {
         public LoginRepository(SqlSugarClient sqlSugar) : base(sqlSugar)
         {