zhc4dev
wangjiadong 2 years ago
parent 1ba859fc50
commit f1a9717c39
  1. 4
      jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/mapper/SysUserMapper.java
  2. 3
      jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/service/impl/SysUserServiceImpl.java

@ -187,9 +187,9 @@ public interface SysUserMapper extends BaseMapper<SysUser> {
@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}") @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<String> getscgoodfi(String id); List<String> 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<String> getuserdizhi(String needuname); List<String> getuserdizhi(String needuname);
@Select("select id from customer_invoice where update_by =#{needuname}") @Select("select id from customer_invoice where user_id =#{needuname}")
List<String> getuserfapiao(String needuname); List<String> getuserfapiao(String needuname);
} }

@ -577,13 +577,14 @@ public class SysUserServiceImpl extends ServiceImpl<SysUserMapper, SysUser> impl
String needid = uids.get(n); String needid = uids.get(n);
SysUser sysUser = new SysUser(); SysUser sysUser = new SysUser();
sysUser = userMapper.getneeduser(needid); sysUser = userMapper.getneeduser(needid);
String needuname = sysUser.getUsername(); String needuname = sysUser.getId();
List<String> dizhi = userMapper.getuserdizhi(needuname); List<String> dizhi = userMapper.getuserdizhi(needuname);
List<String> fapiao = userMapper.getuserfapiao(needuname); List<String> fapiao = userMapper.getuserfapiao(needuname);
SysUserdfVO sdfvo = new SysUserdfVO(); SysUserdfVO sdfvo = new SysUserdfVO();
sdfvo.setSysUser(sysUser); sdfvo.setSysUser(sysUser);
sdfvo.setDizhi(dizhi); sdfvo.setDizhi(dizhi);
sdfvo.setFapiao(fapiao); sdfvo.setFapiao(fapiao);
System.out.println(sdfvo);
return sdfvo; return sdfvo;
} }

Loading…
Cancel
Save