From 04d82682def1fa6a96d7c0985b3309e94f68c638 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E5=BF=A0=E6=9E=97?= <170083662@qq.com> Date: Mon, 16 Mar 2026 23:36:48 +0800 Subject: [PATCH] =?UTF-8?q?fix(database):=20=E4=BF=AE=E5=A4=8D=E5=AE=A2?= =?UTF-8?q?=E6=88=B7=E8=A1=A8=E4=B8=8E=E7=94=A8=E6=88=B7=E8=A1=A8=E5=85=B3?= =?UTF-8?q?=E8=81=94=E6=9F=A5=E8=AF=A2=E7=9A=84=E5=AD=97=E6=AE=B5=E6=98=A0?= =?UTF-8?q?=E5=B0=84=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 修正了 LEFT JOIN 条件中的字段引用错误 - 将 u.id = a.user_id 更改为 u.user_id = a.user_id - 确保了用户信息能够正确关联到客户记录上 --- .../com/gxwebsoft/credit/mapper/xml/CreditMpCustomerMapper.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/gxwebsoft/credit/mapper/xml/CreditMpCustomerMapper.xml b/src/main/java/com/gxwebsoft/credit/mapper/xml/CreditMpCustomerMapper.xml index 82cda1f..a971636 100644 --- a/src/main/java/com/gxwebsoft/credit/mapper/xml/CreditMpCustomerMapper.xml +++ b/src/main/java/com/gxwebsoft/credit/mapper/xml/CreditMpCustomerMapper.xml @@ -6,7 +6,7 @@ SELECT a.*, u.nickname AS nickname, u.avatar AS avatar, u.phone AS phone FROM credit_mp_customer a - LEFT JOIN gxwebsoft_core.sys_user u ON u.id = a.user_id + LEFT JOIN gxwebsoft_core.sys_user u ON u.user_id = a.user_id AND a.id = #{param.id}