From f1a9717c3969e178626f897a98572e5c03b6e910 Mon Sep 17 00:00:00 2001 From: wangjiadong <1654135867@qq.com> Date: Tue, 21 Mar 2023 17:00:39 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/org/jeecg/modules/system/mapper/SysUserMapper.java | 4 ++-- .../jeecg/modules/system/service/impl/SysUserServiceImpl.java | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/mapper/SysUserMapper.java b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/mapper/SysUserMapper.java index 6589ff84..fdcba34d 100644 --- a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/mapper/SysUserMapper.java +++ b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/mapper/SysUserMapper.java @@ -187,9 +187,9 @@ public interface SysUserMapper extends BaseMapper { @Select("SELECT za.contents FROM customercollectgoods AS crg LEFT JOIN goods_accessories AS ga ON crg.goods_id = ga.goods_id LEFT JOIN zy_accessories AS za ON ga.accessories_id = za.id where crg.id=#{id}") List getscgoodfi(String id); - @Select("select id from customer_receiving_address where update_by =#{needuname}") + @Select("select id from customer_receiving_address where user_id =#{needuname}") List getuserdizhi(String needuname); - @Select("select id from customer_invoice where update_by =#{needuname}") + @Select("select id from customer_invoice where user_id =#{needuname}") List getuserfapiao(String needuname); } diff --git a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/service/impl/SysUserServiceImpl.java b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/service/impl/SysUserServiceImpl.java index 12ceacfc..ba74cdb2 100644 --- a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/service/impl/SysUserServiceImpl.java +++ b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/service/impl/SysUserServiceImpl.java @@ -577,13 +577,14 @@ public class SysUserServiceImpl extends ServiceImpl impl String needid = uids.get(n); SysUser sysUser = new SysUser(); sysUser = userMapper.getneeduser(needid); - String needuname = sysUser.getUsername(); + String needuname = sysUser.getId(); List dizhi = userMapper.getuserdizhi(needuname); List fapiao = userMapper.getuserfapiao(needuname); SysUserdfVO sdfvo = new SysUserdfVO(); sdfvo.setSysUser(sysUser); sdfvo.setDizhi(dizhi); sdfvo.setFapiao(fapiao); + System.out.println(sdfvo); return sdfvo; }