Commit f749e289 authored by cq990612's avatar cq990612

修改用户管理xml

parent 6640e265
......@@ -197,7 +197,7 @@
<!--*****************************************chenqi***************************************-->
<select id="getDownLevelAndTotalPeopleByUserId" resultType="cn.wisenergy.model.dto.UsersInfoDto">
SELECT id 'userId',
SELECT
MAX(rank)-rank 'bottom',
count(*)-1 'totalPeople'
FROM
......
......@@ -49,7 +49,6 @@ public class TestUserServiceImpl implements TestUserService {
@Override
public List<UserSimpleInfoDto> getDownUserInfoById(Long userId) {
log.info("TestUserServiceImpl[]getDownUserInfoById[]input.param.userId:" + userId);
long startTime = System.currentTimeMillis();
// 1.判断用户是否存在
userIsEmpty(userId);
// 2.获取用户伞下所有用户的信息
......@@ -79,6 +78,7 @@ public class TestUserServiceImpl implements TestUserService {
Double buyTotal = usdtOrderDetailsMapper.getBuyTotal(userId);
Double saleTotal = usdtOrderDetailsMapper.getSaleTotal(userId);
// 5.将查询出来的信息整合到dto类
userInfoDto.setUserId(userId);
BeanUtils.copyProperties(user, userInfoDto);
if (null != userInfo) {
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