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
e2fb00d2
Commit
e2fb00d2
authored
Jun 17, 2021
by
licc
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码提交2
parent
620e6514
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
6 deletions
+4
-6
UserDataServiceImpl.java
...va/cn/wisenergy/service/app/impl/UserDataServiceImpl.java
+4
-5
UserServiceImpl.java
...n/java/cn/wisenergy/service/app/impl/UserServiceImpl.java
+0
-1
No files found.
wisenergy-service/src/main/java/cn/wisenergy/service/app/impl/UserDataServiceImpl.java
View file @
e2fb00d2
...
...
@@ -9,7 +9,6 @@ import cn.wisenergy.model.dto.UsersInfoDto;
import
cn.wisenergy.service.Manager.UserDataManger
;
import
cn.wisenergy.service.app.UserDataService
;
import
org.apache.shiro.util.CollectionUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
javax.annotation.Resource
;
...
...
@@ -78,25 +77,25 @@ public class UserDataServiceImpl implements UserDataService {
//4、充值总额
Double
totalRecharge
=
userRechargeMapper
.
getTotalRecharge
(
userId
);
if
(
null
!=
totalRecharge
)
{
userData
.
setTotalRecharge
(
String
.
valueOf
(
totalRecharge
)
);
userData
.
setTotalRecharge
(
totalRecharge
);
}
//5、提现总额
Double
totalWithdrawal
=
withdrawsMapper
.
getTotalWithdrawal
(
userId
);
if
(
null
!=
totalWithdrawal
)
{
userData
.
setTotalWithdrawal
(
String
.
valueOf
(
totalWithdrawal
)
);
userData
.
setTotalWithdrawal
(
totalWithdrawal
);
}
//6、otc卖出总额
Double
buyTotal
=
orderDetailsMapper
.
getBuyTotal
(
userId
);
if
(
null
!=
buyTotal
)
{
userData
.
setBuyTotal
(
String
.
valueOf
(
buyTotal
)
);
userData
.
setBuyTotal
(
buyTotal
);
}
//7、otc买入总额
Double
saleTotal
=
orderDetailsMapper
.
getSaleTotal
(
userId
);
if
(
null
!=
saleTotal
)
{
userData
.
setSaleTotal
(
String
.
valueOf
(
saleTotal
)
);
userData
.
setSaleTotal
(
saleTotal
);
}
list
.
add
(
userData
);
}
...
...
wisenergy-service/src/main/java/cn/wisenergy/service/app/impl/UserServiceImpl.java
View file @
e2fb00d2
...
...
@@ -8,7 +8,6 @@ import cn.wisenergy.model.vo.UserVo;
import
cn.wisenergy.service.app.UserService
;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
javax.annotation.Resource
;
...
...
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