## 月总奖金取值调整;
This commit is contained in:
parent
531fe365f9
commit
26345437c2
|
@ -207,15 +207,14 @@ public class ApiCuMemberBonusController extends BaseController {
|
||||||
if (CollectionUtil.isNotEmpty(cuMemberBonusList)) {
|
if (CollectionUtil.isNotEmpty(cuMemberBonusList)) {
|
||||||
if (DateUtils.beforeDate(1, ChronoUnit.DAYS, nowDate).equals(cuMemberBonusList.get(0).getSettleDate())) {
|
if (DateUtils.beforeDate(1, ChronoUnit.DAYS, nowDate).equals(cuMemberBonusList.get(0).getSettleDate())) {
|
||||||
// 最新数据是昨天的奖金数据
|
// 最新数据是昨天的奖金数据
|
||||||
|
memberRealIncomeVO.setRealIncomeTotal(cuMemberBonusList.get(0).getRealIncomeTotal());
|
||||||
|
}
|
||||||
BigDecimal monthTotal = BigDecimal.ZERO;
|
BigDecimal monthTotal = BigDecimal.ZERO;
|
||||||
for (CuMemberBonusExt cuMemberBonusExt : cuMemberBonusList) {
|
for (CuMemberBonusExt cuMemberBonusExt : cuMemberBonusList) {
|
||||||
monthTotal = monthTotal.add(cuMemberBonusExt.getRealIncomeTotal());
|
monthTotal = monthTotal.add(cuMemberBonusExt.getRealIncomeTotal());
|
||||||
}
|
}
|
||||||
memberRealIncomeVO.setMonthIncomeTotal(monthTotal);
|
memberRealIncomeVO.setMonthIncomeTotal(monthTotal);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
return getDataTable(Collections.singletonList(memberRealIncomeVO));
|
return getDataTable(Collections.singletonList(memberRealIncomeVO));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue