From 285404b0f7161ceca8621e61026682bbbb3f71aa Mon Sep 17 00:00:00 2001 From: sunpengfei <i@angelzzz.com> Date: 星期三, 10 九月 2025 14:23:31 +0800 Subject: [PATCH] feat:开发 --- FlexJobApi.UserServer.Application/Auths/Commands/LoginCommandHandler.cs | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/FlexJobApi.UserServer.Application/Auths/Commands/LoginCommandHandler.cs b/FlexJobApi.UserServer.Application/Auths/Commands/LoginCommandHandler.cs index 9150fa8..a5c010d 100644 --- a/FlexJobApi.UserServer.Application/Auths/Commands/LoginCommandHandler.cs +++ b/FlexJobApi.UserServer.Application/Auths/Commands/LoginCommandHandler.cs @@ -23,6 +23,7 @@ /// </summary> public class LoginCommandHandler( IRepository<User> rep, + IRepository<UserWallet> repUserWallet, SmsUtils smsUtils, WxmpUtils wxmpUtils) : IRequestHandler<PasswordLoginCommand, LoginCommandCallback>, @@ -35,6 +36,7 @@ IRequestHandler<GetEnterpriseLoginInfoQuery, GetEnterpriseLoginInfoQueryResult> { private readonly IRepository<User> rep = rep; + private readonly IRepository<UserWallet> repUserWallet = repUserWallet; private readonly SmsUtils smsUtils = smsUtils; private readonly WxmpUtils wxmpUtils = wxmpUtils; @@ -283,6 +285,10 @@ tu.HireStatus == EnumTaskUserHireStatus.Refuse || tu.EnterpriseEmployee.UserSignContractStatus == EnumTaskUserSignContractStatus.Refuse || tu.EnterpriseEmployee.EnterpriseSignContractStatus == EnumTaskUserSignContractStatus.Refuse); + model.Balance = await repUserWallet.AsQueryable().AsNoTracking() + .Where(it => it.UserId == model.Id) + .Select(it => it.Balance) + .FirstOrDefaultAsync(); return model; } -- Gitblit v1.9.1