java110
2023-05-30 a13573d5ef8d16f4bc2535a3c89c2891e6f5b56c
service-report/src/main/java/com/java110/report/dao/impl/ReportFeeStatisticsServiceDaoImpl.java
@@ -53,6 +53,19 @@
    }
    @Override
    public double getOweFee(Map info) {
        logger.debug("查询单月欠费 入参 info : {}", JSONObject.toJSONString(info));
        List<Map> infos = sqlSessionTemplate.selectList("reportFeeStatisticsServiceDaoImpl.getOweFee", info);
        if (infos == null || infos.size() < 1) {
            return 0;
        }
        return Double.parseDouble(infos.get(0).get("oweFee").toString());
    }
    @Override
    public double getCurReceivableFee(Map info) {
        logger.debug("查询单月欠费 入参 info : {}", JSONObject.toJSONString(info));
@@ -68,6 +81,7 @@
    /**
     * 查询欠费追回
     *
     * @param info
     * @return
     */
@@ -86,6 +100,7 @@
    /**
     * 查询预交费用
     *
     * @param info
     * @return
     */
@@ -104,6 +119,7 @@
    /**
     * 实收费用
     *
     * @param info
     * @return
     */
@@ -147,5 +163,181 @@
        return Integer.parseInt(infos.get(0).get("feeRoomCount").toString());
    }
    @Override
    public List<Map> getFloorFeeSummary(Map info) {
        logger.debug("查询 楼栋收费率 入参 info : {}", JSONObject.toJSONString(info));
        List<Map> infos = sqlSessionTemplate.selectList("reportFeeStatisticsServiceDaoImpl.getFloorFeeSummary", info);
        return infos;
    }
    @Override
    public List<Map> getConfigFeeSummary(Map info) {
        logger.debug("查询 费用项收费率 入参 info : {}", JSONObject.toJSONString(info));
        List<Map> infos = sqlSessionTemplate.selectList("reportFeeStatisticsServiceDaoImpl.getConfigFeeSummary", info);
        return infos;
    }
    @Override
    public int getObjFeeSummaryCount(Map info) {
        logger.debug("查询 收费户数 入参 info : {}", JSONObject.toJSONString(info));
        List<Map> infos = sqlSessionTemplate.selectList("reportFeeStatisticsServiceDaoImpl.getObjFeeSummaryCount", info);
        if (infos == null || infos.size() < 1) {
            return 0;
        }
        return Integer.parseInt(infos.get(0).get("total").toString());
    }
    @Override
    public List<Map> getObjFeeSummary(Map info) {
        logger.debug("查询 房屋明细表 入参 info : {}", JSONObject.toJSONString(info));
        List<Map> infos = sqlSessionTemplate.selectList("reportFeeStatisticsServiceDaoImpl.getObjFeeSummary", info);
        return infos;
    }
    @Override
    public List<Map> getOwnerFeeSummary(Map info) {
        logger.debug("查询 业主明细表 入参 info : {}", JSONObject.toJSONString(info));
        List<Map> infos = sqlSessionTemplate.selectList("reportFeeStatisticsServiceDaoImpl.getOwnerFeeSummary", info);
        return infos;
    }
    /**
     * 查询优惠费用
     * @param info
     * @return
     */
    @Override
    public double getDiscountFee(Map info) {
        List<Map> infos = sqlSessionTemplate.selectList("reportFeeStatisticsServiceDaoImpl.getDiscountFee", info);
        if (infos == null || infos.size() < 1) {
            return 0;
        }
        return Double.parseDouble(infos.get(0).get("discountFee").toString());
    }
    /**
     * 查询滞纳金
     * @param info
     * @return
     */
    @Override
    public double getLateFee(Map info) {
        List<Map> infos = sqlSessionTemplate.selectList("reportFeeStatisticsServiceDaoImpl.getLateFee", info);
        if (infos == null || infos.size() < 1) {
            return 0;
        }
        return Double.parseDouble(infos.get(0).get("lateFee").toString());
    }
    /**
     * 查询预存账户
     * @param info
     * @return
     */
    @Override
    public double getPrestoreAccount(Map info) {
        List<Map> infos = sqlSessionTemplate.selectList("reportFeeStatisticsServiceDaoImpl.getPrestoreAccount", info);
        if (infos == null || infos.size() < 1) {
            return 0;
        }
        return Double.parseDouble(infos.get(0).get("prestoreAccount").toString());
    }
    /**
     * 查询扣款
     * @param info
     * @return
     */
    @Override
    public double getWithholdAccount(Map info) {
        List<Map> infos = sqlSessionTemplate.selectList("reportFeeStatisticsServiceDaoImpl.getWithholdAccount", info);
        if (infos == null || infos.size() < 1) {
            return 0;
        }
        return Double.parseDouble(infos.get(0).get("withholdAccount").toString());
    }
    @Override
    public double getTempCarFee(Map info) {
        List<Map> infos = sqlSessionTemplate.selectList("reportFeeStatisticsServiceDaoImpl.getTempCarFee", info);
        if (infos == null || infos.size() < 1) {
            return 0;
        }
        return Double.parseDouble(infos.get(0).get("tempCarFee").toString());
    }
    /**
     * 押金 退还
     * @param info
     * @return
     */
    @Override
    public double geRefundDeposit(Map info) {
        List<Map> infos = sqlSessionTemplate.selectList("reportFeeStatisticsServiceDaoImpl.geRefundDeposit", info);
        if (infos == null || infos.size() < 1) {
            return 0;
        }
        return Double.parseDouble(infos.get(0).get("refundDeposit").toString());
    }
    @Override
    public double geRefundOrderCount(Map info) {
        List<Map> infos = sqlSessionTemplate.selectList("reportFeeStatisticsServiceDaoImpl.geRefundOrderCount", info);
        if (infos == null || infos.size() < 1) {
            return 0;
        }
        return Double.parseDouble(infos.get(0).get("refundOrderCount").toString());
    }
    @Override
    public double geRefundFee(Map info) {
        List<Map> infos = sqlSessionTemplate.selectList("reportFeeStatisticsServiceDaoImpl.geRefundFee", info);
        if (infos == null || infos.size() < 1) {
            return 0;
        }
        return Double.parseDouble(infos.get(0).get("refundFee").toString());
    }
    @Override
    public double getChargeFee(Map info) {
        List<Map> infos = sqlSessionTemplate.selectList("reportFeeStatisticsServiceDaoImpl.getChargeFee", info);
        if (infos == null || infos.size() < 1) {
            return 0;
        }
        return Double.parseDouble(infos.get(0).get("chargeFee").toString());
    }
}