wuxw
2022-05-10 b2b5bdf6f42597e582da96aa56707e1f68d3936e
service-report/src/main/java/com/java110/report/dao/impl/ReportFeeMonthStatisticsServiceDaoImpl.java
@@ -6,7 +6,7 @@
import com.java110.utils.constant.ResponseConstant;
import com.java110.utils.exception.DAOException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.java110.core.log.LoggerFactory;
import org.springframework.stereotype.Service;
import java.util.List;
@@ -85,6 +85,25 @@
        if (saveFlag < 1) {
            throw new DAOException(ResponseConstant.RESULT_PARAM_ERROR, "修改费用月统计信息Instance数据失败:" + JSONObject.toJSONString(info));
        }
    }
    @Override
    public double getReceivedAmountByMonth(Map info) {
        List<Map> businessReportFeeMonthStatisticsInfos = sqlSessionTemplate.selectList("reportFeeMonthStatisticsServiceDaoImpl.getReceivedAmountByMonth", info);
        if (businessReportFeeMonthStatisticsInfos.size() < 1) {
            return 0;
        }
        return Double.parseDouble(businessReportFeeMonthStatisticsInfos.get(0).get("total").toString());
    }
    @Override
    public List<Map> queryRoomAndParkingSpace(Map info) {
        logger.debug("查询费用月统计信息 入参 info : {}", info);
        List<Map> businessReportFeeMonthStatisticsInfos = sqlSessionTemplate.selectList("reportFeeMonthStatisticsServiceDaoImpl.queryRoomAndParkingSpace", info);
        return businessReportFeeMonthStatisticsInfos;
    }
    /**
@@ -201,6 +220,7 @@
        return businessReportFeeMonthStatisticsInfos;
    }
    @Override
    public Map queryFeeBreakdownMajor(Map info) {
        logger.debug("查询费用queryFeeBreakdownMajor 入参 info : {}", info);
@@ -209,6 +229,7 @@
        return businessReportFeeMonthStatisticsInfos.get(0);
    }
    @Override
    public int queryFeeDetailCount(Map info) {
        logger.debug("查询费用月统计数据 入参 info : {}", info);
@@ -231,7 +252,6 @@
    }
    @Override
    public int queryOweFeeDetailCount(Map info) {
        logger.debug("查询费用月统计数据 入参 info : {}", info);
@@ -252,6 +272,7 @@
        return businessReportFeeMonthStatisticsInfos;
    }
    @Override
    public Map queryOweFeeDetailMajor(Map info) {
        logger.debug("查询费用queryOweFeeDetailMajor 入参 info : {}", info);
@@ -575,8 +596,6 @@
        return deposits;
    }
}