From 26824ab5f05816687e38d062f413b95220ae7518 Mon Sep 17 00:00:00 2001
From: sunpengfei <i@angelzzz.com>
Date: 星期五, 22 八月 2025 10:08:04 +0800
Subject: [PATCH] fix:bug

---
 FlexJobApi.UserServer.Application/EnterpriseEmployees/Commands/EnterpriseEmployeesCommandHandler.cs |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/FlexJobApi.UserServer.Application/EnterpriseEmployees/Commands/EnterpriseEmployeesCommandHandler.cs b/FlexJobApi.UserServer.Application/EnterpriseEmployees/Commands/EnterpriseEmployeesCommandHandler.cs
index d5e01c0..71bf62f 100644
--- a/FlexJobApi.UserServer.Application/EnterpriseEmployees/Commands/EnterpriseEmployeesCommandHandler.cs
+++ b/FlexJobApi.UserServer.Application/EnterpriseEmployees/Commands/EnterpriseEmployeesCommandHandler.cs
@@ -158,10 +158,10 @@
         /// <param name="request"></param>
         /// <param name="cancellationToken"></param>
         /// <returns></returns>
-        public Task<Guid> Handle(EditEnterpriseEmployeeCommand request, CancellationToken cancellationToken)
+        public async Task<Guid> Handle(EditEnterpriseEmployeeCommand request, CancellationToken cancellationToken)
         {
             var logier = JwtUtils.GetCurrentLogier();
-            return request.SaveData<EnterpriseEmployee, EditEnterpriseEmployeeCommand>(
+            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) =>
@@ -187,6 +187,7 @@
                     request.Adapt(entity);
                 },
                 cancellationToken);
+            return entity.Id;
         }
     }
 }

--
Gitblit v1.9.1