Browse Source

用户信息编辑接口联调

amigotrip 9 months ago
parent
commit
24b1616e9e

+ 2 - 1
OASystem/OASystem.Api/Controllers/SystemController.cs

@@ -1169,7 +1169,7 @@ namespace OASystem.API.Controllers
                                            x.UsePeriod,
                                            x.WorkExperience,
                                            x.Certificate,
-                                           x.QiyeChatUserId,
+                                           //x.QiyeChatUserId,
                                            x.Remark
                                        }).FirstAsync();
             return Ok(JsonView(true, "操作成功!", _view));
@@ -1198,6 +1198,7 @@ namespace OASystem.API.Controllers
             var res = await _sqlSugar.Updateable(userInfo)
                                      .IgnoreColumns(x => new
                                      {
+                                         x.QiyeChatUserId,
                                          x.Rdate,
                                          x.Seniority,
                                          x.HrAudit,

+ 6 - 6
OASystem/OASystem.Domain/Dtos/System/UserDto.cs

@@ -376,10 +376,10 @@ namespace OASystem.Domain.Dtos.System
         /// 证书上传
         /// </summary>
         public string Certificate { get; set; }
-        /// <summary>
-        /// 企微Id
-        /// </summary>
-        public string QiyeChatUserId { get; set; }
+        ///// <summary>
+        ///// 企微Id
+        ///// </summary>
+        //public string QiyeChatUserId { get; set; }
         /// <summary>
         /// 备注
         /// </summary>
@@ -402,8 +402,8 @@ namespace OASystem.Domain.Dtos.System
             RuleFor(x => x.UrgentPhone).NotEmpty().WithMessage("手机号不能为空!");
             RuleFor(x => x.Email).NotEmpty().WithMessage("邮箱不能为空!");
             RuleFor(x => x.Address).NotEmpty().WithMessage("住址不能为空!");
-            RuleFor(x => x.Edate).NotEmpty().WithMessage("入职时间不能为空!");
-            RuleFor(x => x.Birthday).NotEmpty().WithMessage("生日不能为空!");
+            //RuleFor(x => x.Edate).NotEmpty().WithMessage("入职时间不能为空!");
+            //RuleFor(x => x.Birthday).NotEmpty().WithMessage("生日不能为空!");
             RuleFor(x => x.IDCard).NotEmpty().WithMessage("身份证号码不能为空!");
             RuleFor(x => x.TheOrAdultEducation).InclusiveBetween(0, 3).WithMessage("学历类型 0 未设置 1 成教 2 统招 3 留学");
             RuleFor(x => x.Education).InclusiveBetween(0, 6).WithMessage("学历 0 未设置 1 小学、2 初中、3 高中、4 专科、5 本科、6 研究生");