| | |
| | | shopCommissionStatisticsVO.setTotalAmount(totalAmount); |
| | | IPage<ShopBalanceStatement> statementIPage = this.baseMapper.queryShopBalanceStatementPage(page, shopBalanceStatement); |
| | | for (ShopBalanceStatement record : statementIPage.getRecords()) { |
| | | BigDecimal subtract = record.getHistoricalBalance().subtract(record.getBalance()); |
| | | if (subtract.compareTo(BigDecimal.ZERO)>0){ |
| | | if (record.getChangeDirection() == -1){ |
| | | // 减少 |
| | | record.setVariableAmountString("-¥"+record.getVariableAmount()); |
| | | }else if (subtract.compareTo(BigDecimal.ZERO)<0){ |
| | | record.setVariableAmountString("+¥"+record.getVariableAmount()); |
| | | }else{ |
| | | record.setVariableAmountString("¥"+record.getVariableAmount()); |
| | | record.setVariableAmountString("+¥"+record.getVariableAmount()); |
| | | } |
| | | } |
| | | shopCommissionStatisticsVO.setStatementIPage(statementIPage); |