Commit f749e289 authored by cq990612's avatar cq990612

修改用户管理xml

parent 6640e265
...@@ -197,7 +197,7 @@ ...@@ -197,7 +197,7 @@
<!--*****************************************chenqi***************************************--> <!--*****************************************chenqi***************************************-->
<select id="getDownLevelAndTotalPeopleByUserId" resultType="cn.wisenergy.model.dto.UsersInfoDto"> <select id="getDownLevelAndTotalPeopleByUserId" resultType="cn.wisenergy.model.dto.UsersInfoDto">
SELECT id 'userId', SELECT
MAX(rank)-rank 'bottom', MAX(rank)-rank 'bottom',
count(*)-1 'totalPeople' count(*)-1 'totalPeople'
FROM FROM
......
...@@ -49,7 +49,6 @@ public class TestUserServiceImpl implements TestUserService { ...@@ -49,7 +49,6 @@ public class TestUserServiceImpl implements TestUserService {
@Override @Override
public List<UserSimpleInfoDto> getDownUserInfoById(Long userId) { public List<UserSimpleInfoDto> getDownUserInfoById(Long userId) {
log.info("TestUserServiceImpl[]getDownUserInfoById[]input.param.userId:" + userId); log.info("TestUserServiceImpl[]getDownUserInfoById[]input.param.userId:" + userId);
long startTime = System.currentTimeMillis();
// 1.判断用户是否存在 // 1.判断用户是否存在
userIsEmpty(userId); userIsEmpty(userId);
// 2.获取用户伞下所有用户的信息 // 2.获取用户伞下所有用户的信息
...@@ -79,6 +78,7 @@ public class TestUserServiceImpl implements TestUserService { ...@@ -79,6 +78,7 @@ public class TestUserServiceImpl implements TestUserService {
Double buyTotal = usdtOrderDetailsMapper.getBuyTotal(userId); Double buyTotal = usdtOrderDetailsMapper.getBuyTotal(userId);
Double saleTotal = usdtOrderDetailsMapper.getSaleTotal(userId); Double saleTotal = usdtOrderDetailsMapper.getSaleTotal(userId);
// 5.将查询出来的信息整合到dto类 // 5.将查询出来的信息整合到dto类
userInfoDto.setUserId(userId);
BeanUtils.copyProperties(user, userInfoDto); BeanUtils.copyProperties(user, userInfoDto);
if (null != userInfo) { if (null != userInfo) {
BeanUtils.copyProperties(userInfo, userInfoDto); BeanUtils.copyProperties(userInfo, userInfoDto);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment