Compare commits

..

No commits in common. 'db549eca0925b434205cbd10e7b706de56a1f1f3' and '824ca1ec327b7eb029df59b099e20c21c9b7bc07' have entirely different histories.

  1. 6
      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/ISysUserService.java
  3. 12
      jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/service/impl/SysUserServiceImpl.java
  4. 13
      jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/vo/SysUserdfVO.java

@ -186,10 +186,4 @@ 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}")
List<String> getscgoodfi(String id);
@Select("select id from customer_receiving_address where update_by =#{needuname}")
List<String> getuserdizhi(String needuname);
@Select("select id from customer_invoice where update_by =#{needuname}")
List<String> getuserfapiao(String needuname);
}

@ -12,7 +12,6 @@ import org.jeecg.modules.system.entity.SysUser;
import org.jeecg.modules.system.model.SysUserSysDepartModel;
import org.jeecg.modules.system.vo.Grzx1;
import org.jeecg.modules.system.vo.Grzx2;
import org.jeecg.modules.system.vo.SysUserdfVO;
import org.springframework.transaction.annotation.Transactional;
import java.util.Collection;
@ -267,7 +266,7 @@ public interface ISysUserService extends IService<SysUser> {
//这里是产生一个随机虚拟用户,用于虚拟下单
SysUserdfVO getuser();
SysUser getuser();
SysUser getneeduser(String id);

@ -25,7 +25,6 @@ import org.jeecg.modules.system.vo.Grzx1;
import org.jeecg.modules.system.vo.Grzx2;
import org.jeecg.modules.system.vo.SysUserDepVo;
import org.jeecg.modules.system.vo.SysUserdfVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cache.annotation.CacheEvict;
import org.springframework.stereotype.Service;
@ -565,7 +564,7 @@ public class SysUserServiceImpl extends ServiceImpl<SysUserMapper, SysUser> impl
//这个是获取一个虚拟用户的对象
@Override
public SysUserdfVO getuser() {
public SysUser getuser() {
//虚拟角色id
String roleid="1630020854744330241";
//根据角色id查询用户id
@ -577,14 +576,7 @@ public class SysUserServiceImpl extends ServiceImpl<SysUserMapper, SysUser> impl
String needid = uids.get(n);
SysUser sysUser = new SysUser();
sysUser = userMapper.getneeduser(needid);
String needuname = sysUser.getUsername();
List<String> dizhi = userMapper.getuserdizhi(needuname);
List<String> fapiao = userMapper.getuserfapiao(needuname);
SysUserdfVO sdfvo = new SysUserdfVO();
sdfvo.setSysUser(sysUser);
sdfvo.setDizhi(dizhi);
sdfvo.setFapiao(fapiao);
return sdfvo;
return sysUser;
}
@Override

@ -1,13 +0,0 @@
package org.jeecg.modules.system.vo;
import lombok.Data;
import org.jeecg.modules.system.entity.SysUser;
import java.util.List;
@Data
public class SysUserdfVO {
private SysUser sysUser;
private List<String> fapiao;
private List<String> dizhi;
}
Loading…
Cancel
Save