From 82831a86d529817e51f5b6e3cec636d21cef3c9b Mon Sep 17 00:00:00 2001
From: zhengyuxuan <zhengyuxuan1995>
Date: 星期三, 19 三月 2025 16:17:40 +0800
Subject: [PATCH] fix:bug修复

---
 LifePayment/LifePayment.Application/User/UserRoleService.cs |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/LifePayment/LifePayment.Application/User/UserRoleService.cs b/LifePayment/LifePayment.Application/User/UserRoleService.cs
index 97fbd78..3a0aad5 100644
--- a/LifePayment/LifePayment.Application/User/UserRoleService.cs
+++ b/LifePayment/LifePayment.Application/User/UserRoleService.cs
@@ -53,10 +53,10 @@
                             Name = r.Name,
                         },
                 Channles = from uc in u.UserChannle
-                           from c in _channleRepository.Where(s => s.Id == uc.ChannleId)
+                           from c in _channleRepository.Where(s => s.ChannlesNum == uc.ChannleId)
                         select new UserChannleDto
                         {
-                            Id = c.Id,
+                            Id = c.ChannlesNum,
                             Name = c.ChannlesName,
                         },
                 Remark = u.Remark,

--
Gitblit v1.9.1