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
72bd11fd
Commit
72bd11fd
authored
Mar 29, 2021
by
licc
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
钱包接口优化
parent
cc0ba83b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
TradeRecordMapper.xml
...gy-mapper/src/main/resources/mapper/TradeRecordMapper.xml
+1
-1
MoneyPackageDetailVo.java
...main/java/cn/wisenergy/model/vo/MoneyPackageDetailVo.java
+2
-2
WalletServiceImpl.java
...java/cn/wisenergy/service/app/impl/WalletServiceImpl.java
+1
-1
No files found.
wisenergy-mapper/src/main/resources/mapper/TradeRecordMapper.xml
View file @
72bd11fd
...
...
@@ -113,7 +113,7 @@
date_format(create_time,'%Y-%m') as yearMonth
FROM
<include
refid=
"table"
/>
WHERE date_format(create_time,'%Y-%m')
<
=
date_format(now(),'%Y-%m')
WHERE date_format(create_time,'%Y-%m')
<
date_format(now(),'%Y-%m')
and date_format(create_time,'%Y-%m') >= date_format(now() - interval 7 month,'%Y-%m')
and (status=1 or status=0)
and user_id=#{userId}
...
...
wisenergy-model/src/main/java/cn/wisenergy/model/vo/MoneyPackageDetailVo.java
View file @
72bd11fd
...
...
@@ -29,9 +29,9 @@ public class MoneyPackageDetailVo {
List
<
IncomeDetailVo
>
list
;
/**
* 累计收益
*
本月
累计收益
*/
@ApiModelProperty
(
value
=
"累计收益"
,
name
=
"totalIncome"
)
@ApiModelProperty
(
value
=
"
本月
累计收益"
,
name
=
"totalIncome"
)
private
BigDecimal
totalIncome
;
...
...
wisenergy-service/src/main/java/cn/wisenergy/service/app/impl/WalletServiceImpl.java
View file @
72bd11fd
...
...
@@ -132,7 +132,7 @@ public class WalletServiceImpl implements WalletService {
MoneyPackageDetailVo
detailVo
=
new
MoneyPackageDetailVo
();
detailVo
.
setUserId
(
userId
);
detailVo
.
setTotalIncome
(
accountInfo
.
getEarnings
Total
());
detailVo
.
setTotalIncome
(
accountInfo
.
getEarnings
Month
());
//获取本月交易记录
List
<
TradeRecord
>
list
=
getTradeRecordList
(
userId
);
...
...
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