wuxw
2023-10-31 8237814fbf04956e42c2cd68b7fd2db31fe6a886
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
package com.java110.report.dao.impl;
 
import com.java110.core.base.dao.BaseServiceDao;
import com.java110.report.dao.IBaseDataStatisticsServiceDao;
import org.springframework.stereotype.Service;
 
import java.util.List;
import java.util.Map;
 
/**
 * 基础数据dao
 */
@Service
public class BaseDataStatisticsServiceDaoImpl extends BaseServiceDao implements IBaseDataStatisticsServiceDao {
    @Override
    public int getRoomCount(Map info) {
        List<Map> businessReportFeeMonthStatisticsInfos = sqlSessionTemplate.selectList("baseDataStatisticsServiceDaoImpl.getRoomCount", info);
        if (businessReportFeeMonthStatisticsInfos.size() < 1) {
            return 0;
        }
 
        return Integer.parseInt(businessReportFeeMonthStatisticsInfos.get(0).get("count").toString());
    }
 
    /**
     * 查询 数据库
     * @param info
     * @return
     */
    @Override
    public List<Map> getRoomInfo(Map info) {
        List<Map> infos = sqlSessionTemplate.selectList("baseDataStatisticsServiceDaoImpl.getRoomInfo", info);
        return infos;
    }
 
    /**
     * 查询实收房屋数
     * @param info
     * @return
     */
    @Override
    public int getReceivedRoomCount(Map info) {
        List<Map> businessReportFeeMonthStatisticsInfos = sqlSessionTemplate.selectList("baseDataStatisticsServiceDaoImpl.getReceivedRoomCount", info);
        if (businessReportFeeMonthStatisticsInfos.size() < 1) {
            return 0;
        }
 
        return Integer.parseInt(businessReportFeeMonthStatisticsInfos.get(0).get("count").toString());
    }
 
    /**
     * 查询实收房屋
     * @param info
     * @return
     */
    @Override
    public List<Map> getReceivedRoomInfo(Map info) {
        List<Map> infos = sqlSessionTemplate.selectList("baseDataStatisticsServiceDaoImpl.getReceivedRoomInfo", info);
        return infos;
    }
 
    @Override
    public int getOweRoomCount(Map info) {
        List<Map> infos = sqlSessionTemplate.selectList("baseDataStatisticsServiceDaoImpl.getOweRoomCount", info);
        if (infos.size() < 1) {
            return 0;
        }
 
        return Integer.parseInt(infos.get(0).get("count").toString());
    }
 
    @Override
    public List<Map> getOweRoomInfo(Map info) {
        List<Map> infos = sqlSessionTemplate.selectList("baseDataStatisticsServiceDaoImpl.getOweRoomInfo", info);
        return infos;
    }
 
    @Override
    public List<Map> getCommunityFeeDetailCount(Map info) {
        List<Map> infos = sqlSessionTemplate.selectList("baseDataStatisticsServiceDaoImpl.getCommunityFeeDetailCount", info);
        return infos;
    }
 
    @Override
    public List<Map> getCommunityRepairCount(Map info) {
        List<Map> infos = sqlSessionTemplate.selectList("baseDataStatisticsServiceDaoImpl.getCommunityRepairCount", info);
        return infos;
    }
}