Pu Zhibing
2025-03-26 cbf2486983b77a27af9968bbb362cb8d43789115
ruoyi-service/ruoyi-other/src/main/java/com/ruoyi/other/service/impl/ShopBalanceStatementServiceImpl.java
@@ -51,14 +51,11 @@
        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);