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
e3b058ef
Commit
e3b058ef
authored
Jun 22, 2021
by
licc
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增向下层级接口
parent
b5a47723
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
UserDataServiceImpl.java
...va/cn/wisenergy/service/app/impl/UserDataServiceImpl.java
+5
-1
No files found.
wisenergy-service/src/main/java/cn/wisenergy/service/app/impl/UserDataServiceImpl.java
View file @
e3b058ef
...
...
@@ -10,6 +10,7 @@ import cn.wisenergy.model.dto.UsersInfoDto;
import
cn.wisenergy.model.vo.UserQueryVo
;
import
cn.wisenergy.service.Manager.UserDataManger
;
import
cn.wisenergy.service.app.UserDataService
;
import
lombok.extern.slf4j.Slf4j
;
import
org.apache.shiro.util.CollectionUtils
;
import
org.springframework.stereotype.Service
;
...
...
@@ -21,6 +22,7 @@ import java.util.List;
* @author 86187
*/
@Service
@Slf4j
public
class
UserDataServiceImpl
implements
UserDataService
{
@Resource
private
UsersMapper
usersMapper
;
...
...
@@ -51,6 +53,7 @@ public class UserDataServiceImpl implements UserDataService {
}
Long
usersId
=
userDataMapper
.
getMaxId
();
log
.
info
(
"开始计算统计数据用户id:"
+
usersId
);
if
(
null
==
usersId
)
{
usersId
=
0L
;
}
...
...
@@ -123,10 +126,11 @@ public class UserDataServiceImpl implements UserDataService {
@Override
public
R
<
Boolean
>
getBottom
(
UserQueryVo
queryVo
)
{
Long
usersId
=
userDataMapper
.
getMaxId
();
log
.
info
(
"开始计算用户id:"
+
usersId
);
if
(
null
==
usersId
)
{
usersId
=
0L
;
}
Integer
startNo
=
Math
.
toIntExact
(
usersId
)
-
1
;
Integer
startNo
=
Math
.
toIntExact
(
usersId
)
-
1
;
Integer
endNo
=
queryVo
.
getNumber
();
//获取所有用户数据
List
<
UserData
>
list
=
userDataMapper
.
getBottom
(
startNo
,
endNo
);
...
...
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