Your Name
2023-06-30 9e22e9abd4a3c606ec51d491abf94d7a465356b9
service-report/src/main/java/com/java110/report/cmd/reportFeeMonthStatistics/QueryReportFeeDetailCarCmd.java
@@ -66,15 +66,15 @@
        queryStatisticsDto.setRow(reqJson.getInteger("row"));
        queryStatisticsDto.setStoreId(storeId);
        long count = baseDataStatisticsImpl.getCarCount(queryStatisticsDto);
        List<OwnerCarDto> contractDtos = null;
        List<OwnerCarDto> ownerCarDtos = null;
        if (count > 0) {
            contractDtos = baseDataStatisticsImpl.getCar(queryStatisticsDto);
            ownerCarDtos = baseDataStatisticsImpl.getCar(queryStatisticsDto);
        } else {
            contractDtos = new ArrayList<>();
            ownerCarDtos = new ArrayList<>();
        }
        // todo 计算 房屋欠费实收数据
        JSONArray datas = computeCarOweReceivedFee(contractDtos, queryStatisticsDto);
        JSONArray datas = computeCarOweReceivedFee(ownerCarDtos, queryStatisticsDto);
        ResultVo resultVo = new ResultVo((int) Math.ceil((double) count / (double) queryStatisticsDto.getRow()), count, datas);
@@ -116,9 +116,11 @@
            return datas;
        }
        BigDecimal oweFee = new BigDecimal(0.00);
        BigDecimal receivedFee = new BigDecimal(0.00);
        BigDecimal oweFee = null;
        BigDecimal receivedFee = null;
        for (int dataIndex = 0; dataIndex < datas.size(); dataIndex++) {
            oweFee = new BigDecimal(0.00);
            receivedFee = new BigDecimal(0.00);
            data = datas.getJSONObject(dataIndex);
            for (Map info : infos) {
                if (!data.get("carId").toString().equals(info.get("objId"))) {
@@ -126,7 +128,7 @@
                }
                oweFee = oweFee.add(new BigDecimal(info.get("oweFee").toString()));
                receivedFee = oweFee.add(new BigDecimal(info.get("receivedFee").toString()));
                receivedFee = receivedFee.add(new BigDecimal(info.get("receivedFee").toString()));
                data.put("oweFee" + info.get("feeTypeCd").toString(), info.get("oweFee"));
                data.put("receivedFee" + info.get("feeTypeCd").toString(), info.get("receivedFee"));
            }