From 87b0ae0a2aca16763bf054c4c785323e36f68387 Mon Sep 17 00:00:00 2001 From: sunpengfei <i@angelzzz.com> Date: 星期三, 11 六月 2025 17:46:28 +0800 Subject: [PATCH] fix:用户端--我的--数据看板,昨日活跃用户数据统计不正确,统计的是登录账号所配置的渠道中昨日进行充值且充值成功的用户记录 --- LifePayment/LifePayment.Application/User/UserRoleService.cs | 13 +++++++++++-- 1 files changed, 11 insertions(+), 2 deletions(-) diff --git a/LifePayment/LifePayment.Application/User/UserRoleService.cs b/LifePayment/LifePayment.Application/User/UserRoleService.cs index 6a93332..decdddd 100644 --- a/LifePayment/LifePayment.Application/User/UserRoleService.cs +++ b/LifePayment/LifePayment.Application/User/UserRoleService.cs @@ -145,6 +145,7 @@ CheckExtensions.IfTrueThrowUserFriendlyException(result != Constant.SUCCESS, CustomeErrorMessage.ResetPasswordFail); } + public async Task<int> DeleteBackClientUser(Guid id) { var entity = await _userRepository.FirstOrDefaultAsync(s => s.Id == id && s.ClientId == Constant.ClientType.Back); @@ -159,8 +160,16 @@ public async Task<Guid> CreateRole(CreateOrUpdateRoleInput input) { - var entity = ObjectMapper.Map<CreateOrUpdateRoleInput, Role>(input); - return await _roleRepository.InsertAndGetIdAsync(entity); + Role role = new Role() + { + Id = input.Id, + Name = input.Name, + Sequence = input.Sequence, + DepartmentId = input.DepartmentId, + DataRange = input.DataRange, + Remark = input.Remark + }; + return await _roleRepository.InsertAndGetIdAsync(role); } public async Task<PageOutput<RoleInfo>> GetRoles(GetRolesInput input) -- Gitblit v1.9.1