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
d53cf35f
Commit
d53cf35f
authored
Jun 19, 2021
by
licc
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增数据判空处理
parent
855c9d0e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
5 deletions
+15
-5
UserServiceImpl.java
...n/java/cn/wisenergy/service/app/impl/UserServiceImpl.java
+14
-4
application.yml
wisenergy-web-admin/src/main/resources/application.yml
+1
-1
No files found.
wisenergy-service/src/main/java/cn/wisenergy/service/app/impl/UserServiceImpl.java
View file @
d53cf35f
...
...
@@ -63,15 +63,25 @@ public class UserServiceImpl extends ServiceImpl<UsersMapper, Users> implements
//获取用户统计数据
UserData
userData
=
userDataMapper
.
getByUserId
(
userId
);
userVo
.
setRealName
(
userData
.
getRealName
());
userVo
.
setBuyTotal
(
userData
.
getBuyTotal
().
toString
());
if
(
null
!=
userData
.
getBuyTotal
())
{
userVo
.
setBuyTotal
(
userData
.
getBuyTotal
().
toString
());
}
userVo
.
setBottom
(
userData
.
getBottom
());
userVo
.
setIdNumber
(
userData
.
getIdNumber
());
userVo
.
setPhone
(
userData
.
getPhone
());
userVo
.
setRank
(
userData
.
getRank
());
userVo
.
setSaleTotal
(
userData
.
getSaleTotal
().
toString
());
if
(
null
!=
userData
.
getSaleTotal
())
{
userVo
.
setSaleTotal
(
userData
.
getSaleTotal
().
toString
());
}
userVo
.
setTotalPeople
(
userData
.
getTotalPeople
());
userVo
.
setTotalRecharge
(
userData
.
getTotalRecharge
().
toString
());
userVo
.
setTotalWithdrawal
(
userData
.
getTotalWithdrawal
().
toString
());
if
(
null
!=
userData
.
getTotalRecharge
())
{
userVo
.
setTotalRecharge
(
userData
.
getTotalRecharge
().
toString
());
}
if
(
null
!=
userData
.
getTotalWithdrawal
())
{
userVo
.
setTotalWithdrawal
(
userData
.
getTotalWithdrawal
().
toString
());
}
List
<
UserVo
>
list
=
new
ArrayList
<>();
list
.
add
(
userVo
);
return
R
.
ok
(
list
);
...
...
wisenergy-web-admin/src/main/resources/application.yml
View file @
d53cf35f
...
...
@@ -17,7 +17,7 @@ spring:
allow-bean-definition-overriding
:
true
# 环境 dev|test|prod
profiles
:
active
:
prod
active
:
dev
# jackson时间格式化
jackson
:
time-zone
:
GMT+8
...
...
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