Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
D
data-server
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
licc
data-server
Commits
f749e289
Commit
f749e289
authored
Jun 16, 2021
by
cq990612
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改用户管理xml
parent
6640e265
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
UsersMapper.xml
wisenergy-mapper/src/main/resources/mapper/UsersMapper.xml
+1
-1
TestUserServiceImpl.java
...va/cn/wisenergy/service/app/impl/TestUserServiceImpl.java
+1
-1
No files found.
wisenergy-mapper/src/main/resources/mapper/UsersMapper.xml
View file @
f749e289
...
...
@@ -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
...
...
wisenergy-service/src/main/java/cn/wisenergy/service/app/impl/TestUserServiceImpl.java
View file @
f749e289
...
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment