From 5c45bc53e2c18e45130c21048df4af4896455c6d Mon Sep 17 00:00:00 2001 From: sunpengfei <i@angelzzz.com> Date: 星期五, 12 九月 2025 15:58:48 +0800 Subject: [PATCH] feat:开发 --- FlexJobApi.UserServer.Application/EnterpriseEmployees/Commands/EnterpriseEmployeesCommandHandler.cs | 11 ++++++++--- 1 files changed, 8 insertions(+), 3 deletions(-) diff --git a/FlexJobApi.UserServer.Application/EnterpriseEmployees/Commands/EnterpriseEmployeesCommandHandler.cs b/FlexJobApi.UserServer.Application/EnterpriseEmployees/Commands/EnterpriseEmployeesCommandHandler.cs index fc63acd..71584e7 100644 --- a/FlexJobApi.UserServer.Application/EnterpriseEmployees/Commands/EnterpriseEmployeesCommandHandler.cs +++ b/FlexJobApi.UserServer.Application/EnterpriseEmployees/Commands/EnterpriseEmployeesCommandHandler.cs @@ -103,7 +103,7 @@ { errors.Add("璇峰~鍐欒韩浠借瘉鍙�"); } - else if (!model.Identity.TryValidate(EnumValidationTypes.ValiIdentity).IsValid) + else if (!model.Identity.TryValidate(EnumValidationTypes.ValidIdentity).IsValid) { errors.Add("韬唤璇佸彿鏍煎紡涓嶆纭�"); } @@ -194,8 +194,13 @@ var logier = JwtUtils.GetCurrentLogier(); var entity = await request.SaveData<EnterpriseEmployee, EditEnterpriseEmployeeCommand>( q => q.Where(it => it.EnterpriseId == logier.EnterpriseId), - it => it.EnterpriseId == logier.EnterpriseId && it.Id != request.Id && it.Identity == request.Identity, - (entity) => + it => + it.EnterpriseId == logier.EnterpriseId + && it.Id != request.Id + && it.Name == request.Name + && it.Identity == request.Identity + && it.ContactPhoneNumber == request.ContactPhoneNumber, + (entity) => { if (request.Id.HasValue && entity.UserId.HasValue) { -- Gitblit v1.9.1