Commit 72bd11fd authored by licc's avatar licc

钱包接口优化

parent cc0ba83b
...@@ -113,7 +113,7 @@ ...@@ -113,7 +113,7 @@
date_format(create_time,'%Y-%m') as yearMonth date_format(create_time,'%Y-%m') as yearMonth
FROM FROM
<include refid="table"/> <include refid="table"/>
WHERE date_format(create_time,'%Y-%m') &lt;= date_format(now(),'%Y-%m') WHERE date_format(create_time,'%Y-%m') &lt; date_format(now(),'%Y-%m')
and date_format(create_time,'%Y-%m') >= date_format(now() - interval 7 month,'%Y-%m') and date_format(create_time,'%Y-%m') >= date_format(now() - interval 7 month,'%Y-%m')
and (status=1 or status=0) and (status=1 or status=0)
and user_id=#{userId} and user_id=#{userId}
......
...@@ -29,9 +29,9 @@ public class MoneyPackageDetailVo { ...@@ -29,9 +29,9 @@ public class MoneyPackageDetailVo {
List<IncomeDetailVo> list; List<IncomeDetailVo> list;
/** /**
* 累计收益 * 本月累计收益
*/ */
@ApiModelProperty(value = "累计收益", name = "totalIncome") @ApiModelProperty(value = "本月累计收益", name = "totalIncome")
private BigDecimal totalIncome; private BigDecimal totalIncome;
......
...@@ -132,7 +132,7 @@ public class WalletServiceImpl implements WalletService { ...@@ -132,7 +132,7 @@ public class WalletServiceImpl implements WalletService {
MoneyPackageDetailVo detailVo = new MoneyPackageDetailVo(); MoneyPackageDetailVo detailVo = new MoneyPackageDetailVo();
detailVo.setUserId(userId); detailVo.setUserId(userId);
detailVo.setTotalIncome(accountInfo.getEarningsTotal()); detailVo.setTotalIncome(accountInfo.getEarningsMonth());
//获取本月交易记录 //获取本月交易记录
List<TradeRecord> list = getTradeRecordList(userId); List<TradeRecord> list = getTradeRecordList(userId);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment