Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
S
shop-Mall
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
shop-Mall
Commits
0ef65bf2
Commit
0ef65bf2
authored
Mar 25, 2021
by
licc
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
e22f8e31
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
5 deletions
+8
-5
UsersMapper.xml
wisenergy-mapper/src/main/resources/mapper/UsersMapper.xml
+4
-1
UserServiceImpl.java
...n/java/cn/wisenergy/service/app/impl/UserServiceImpl.java
+4
-3
AccountController.java
...wisenergy/web/admin/controller/app/AccountController.java
+0
-1
No files found.
wisenergy-mapper/src/main/resources/mapper/UsersMapper.xml
View file @
0ef65bf2
...
...
@@ -447,6 +447,9 @@
<if
test=
"userId != null and userId != ''"
>
user_id = #{userId}
</if>
<if
test=
"queryTime != null and queryTime != ''"
>
and `create_time` = #{queryTime}
</if>
</where>
order by create_time desc
limit #{startNum},#{endNum}
...
...
@@ -460,7 +463,7 @@
<if
test=
"userId != null and userId != ''"
>
user_id=#{userId}
</if>
<if
test=
"
create_t
ime != null and queryTime != ''"
>
<if
test=
"
queryT
ime != null and queryTime != ''"
>
and `create_time` = #{queryTime}
</if>
</where>
...
...
wisenergy-service/src/main/java/cn/wisenergy/service/app/impl/UserServiceImpl.java
View file @
0ef65bf2
...
...
@@ -145,7 +145,6 @@ public class UserServiceImpl extends ServiceImpl<UsersMapper, User> implements U
String
byqm
=
user
.
getBeInvitedCode
();
//通过被邀请码,比对本人邀请码查询本人id
String
idb
=
String
.
valueOf
(
usersMapper
.
beInvitedCode1
(
beInvitedCode
));
...
...
@@ -374,6 +373,7 @@ public class UserServiceImpl extends ServiceImpl<UsersMapper, User> implements U
/**
* 用户分页查询
*
* @param queryDto 查询参数
* @return
*/
...
...
@@ -386,7 +386,9 @@ public class UserServiceImpl extends ServiceImpl<UsersMapper, User> implements U
pageHandle
(
queryDto
);
Map
<
String
,
Object
>
map
=
new
HashMap
<>(
8
);
map
.
put
(
"userId"
,
queryDto
.
getUserId
());
if
(!
StringUtils
.
isBlank
(
queryDto
.
getUserId
()))
{
map
.
put
(
"userId"
,
queryDto
.
getUserId
());
}
if
(!
StringUtils
.
isBlank
(
queryDto
.
getQueryTime
()))
{
Date
date
=
DateUtil
.
convertStrToDate
(
queryDto
.
getQueryTime
(),
"yyyy-MM-dd"
);
map
.
put
(
"queryTime"
,
date
);
...
...
@@ -394,7 +396,6 @@ public class UserServiceImpl extends ServiceImpl<UsersMapper, User> implements U
int
total
=
usersMapper
.
count
(
map
);
map
.
put
(
"startNum"
,
queryDto
.
getStartNum
());
map
.
put
(
"endNum"
,
queryDto
.
getEndNum
());
List
<
User
>
list
=
usersMapper
.
getList
(
map
);
...
...
wisenergy-web-admin/src/main/java/cn/wisenergy/web/admin/controller/app/AccountController.java
View file @
0ef65bf2
...
...
@@ -2,7 +2,6 @@ package cn.wisenergy.web.admin.controller.app;
import
cn.wisenergy.common.utils.R
;
import
cn.wisenergy.model.app.AccountInfo
;
import
cn.wisenergy.model.app.User
;
import
cn.wisenergy.model.dto.AccountInfoQuery
;
import
cn.wisenergy.service.app.AccountService
;
import
cn.wisenergy.service.app.DayTaskService
;
...
...
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