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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
package com.java110.report.smo.impl;
 
import com.alibaba.fastjson.JSONObject;
import com.java110.core.base.smo.BaseServiceSMO;
import com.java110.dto.PageDto;
import com.java110.dto.ReportFeeMonthStatisticsPrepaymentDto.ReportFeeMonthStatisticsPrepaymentDto;
import com.java110.dto.fee.FeeConfigDto;
import com.java110.dto.owner.OwnerDto;
import com.java110.intf.report.IReportFeeMonthStatisticsPrepaymentInnerServiceSMO;
import com.java110.po.ReportFeeMonthStatisticsPrepaymentPo.ReportFeeMonthStatisticsPrepaymentPo;
import com.java110.report.dao.IReportFeeMonthStatisticsPrepaymentServiceDao;
import com.java110.utils.util.BeanConvertUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;
 
import java.util.List;
import java.util.Map;
 
@RestController
public class ReportFeeMonthStatisticsPrepaymentInnerServiceSMOImpl extends BaseServiceSMO implements IReportFeeMonthStatisticsPrepaymentInnerServiceSMO {
 
    @Autowired
    private IReportFeeMonthStatisticsPrepaymentServiceDao reportFeeMonthStatisticsPrepaymentServiceDaoImpl;
 
    @Override
    public int saveReportFeeMonthStatisticsPrepayment(@RequestBody ReportFeeMonthStatisticsPrepaymentPo reportFeeMonthStatisticsPrepaymentPo) {
        int saveFlag = 1;
        reportFeeMonthStatisticsPrepaymentServiceDaoImpl.saveReportFeeMonthStatisticsPrepaymentInfo(BeanConvertUtil.beanCovertMap(reportFeeMonthStatisticsPrepaymentPo));
        return saveFlag;
    }
 
    @Override
    public int updateReportFeeMonthStatisticsPrepayment(@RequestBody ReportFeeMonthStatisticsPrepaymentPo reportFeeMonthStatisticsPrepaymentPo) {
        int saveFlag = 1;
        reportFeeMonthStatisticsPrepaymentServiceDaoImpl.updateReportFeeMonthStatisticsPrepaymentInfo(BeanConvertUtil.beanCovertMap(reportFeeMonthStatisticsPrepaymentPo));
        return saveFlag;
    }
 
    @Override
    public int deleteReportFeeMonthStatisticsPrepayment(@RequestBody ReportFeeMonthStatisticsPrepaymentPo reportFeeMonthStatisticsPrepaymentPo) {
        int saveFlag = 1;
        reportFeeMonthStatisticsPrepaymentPo.setStatusCd("1");
        reportFeeMonthStatisticsPrepaymentServiceDaoImpl.deleteReportFeeMonthStatisticsPrepaymentInfo(BeanConvertUtil.beanCovertMap(reportFeeMonthStatisticsPrepaymentPo));
        return saveFlag;
    }
 
    @Override
    public List<ReportFeeMonthStatisticsPrepaymentDto> queryReportFeeMonthStatisticsPrepayment(@RequestBody ReportFeeMonthStatisticsPrepaymentDto reportFeeMonthStatisticsPrepaymentDto) {
        //校验是否传了 分页信息
 
        int page = reportFeeMonthStatisticsPrepaymentDto.getPage();
 
        if (page != PageDto.DEFAULT_PAGE) {
            reportFeeMonthStatisticsPrepaymentDto.setPage((page - 1) * reportFeeMonthStatisticsPrepaymentDto.getRow());
        }
 
        List<ReportFeeMonthStatisticsPrepaymentDto> reportFeeMonthStatisticsPrepayments = BeanConvertUtil.covertBeanList(reportFeeMonthStatisticsPrepaymentServiceDaoImpl.getReportFeeMonthStatisticsPrepaymentInfo(BeanConvertUtil.beanCovertMap(reportFeeMonthStatisticsPrepaymentDto)), ReportFeeMonthStatisticsPrepaymentDto.class);
 
        return reportFeeMonthStatisticsPrepayments;
    }
 
    @Override
    public List<ReportFeeMonthStatisticsPrepaymentDto> queryPrepaymentConfigs(@RequestBody ReportFeeMonthStatisticsPrepaymentDto reportFeeMonthStatisticsPrepaymentDto) {
        //校验是否传了 分页信息
 
        int page = reportFeeMonthStatisticsPrepaymentDto.getPage();
 
        if (page != PageDto.DEFAULT_PAGE) {
            reportFeeMonthStatisticsPrepaymentDto.setPage((page - 1) * reportFeeMonthStatisticsPrepaymentDto.getRow());
        }
 
        List<ReportFeeMonthStatisticsPrepaymentDto> reportFeeMonthStatisticsPrepayments = BeanConvertUtil.covertBeanList(reportFeeMonthStatisticsPrepaymentServiceDaoImpl.queryPrepaymentConfigs(BeanConvertUtil.beanCovertMap(reportFeeMonthStatisticsPrepaymentDto)), ReportFeeMonthStatisticsPrepaymentDto.class);
 
        return reportFeeMonthStatisticsPrepayments;
    }
 
    @Override
    public List<ReportFeeMonthStatisticsPrepaymentDto> queryAllPrepaymentConfigs(@RequestBody ReportFeeMonthStatisticsPrepaymentDto reportFeeMonthStatisticsPrepaymentDto) {
        //校验是否传了 分页信息
 
        int page = reportFeeMonthStatisticsPrepaymentDto.getPage();
 
        if (page != PageDto.DEFAULT_PAGE) {
            reportFeeMonthStatisticsPrepaymentDto.setPage((page - 1) * reportFeeMonthStatisticsPrepaymentDto.getRow());
        }
 
        List<ReportFeeMonthStatisticsPrepaymentDto> reportFeeMonthStatisticsPrepayments = BeanConvertUtil.covertBeanList(reportFeeMonthStatisticsPrepaymentServiceDaoImpl.queryAllPrepaymentConfigs(BeanConvertUtil.beanCovertMap(reportFeeMonthStatisticsPrepaymentDto)), ReportFeeMonthStatisticsPrepaymentDto.class);
 
        return reportFeeMonthStatisticsPrepayments;
    }
 
    @Override
    public List<ReportFeeMonthStatisticsPrepaymentDto> queryAllPrepaymentDiscounts(@RequestBody ReportFeeMonthStatisticsPrepaymentDto reportFeeMonthStatisticsPrepaymentDto) {
        //校验是否传了 分页信息
 
        int page = reportFeeMonthStatisticsPrepaymentDto.getPage();
 
        if (page != PageDto.DEFAULT_PAGE) {
            reportFeeMonthStatisticsPrepaymentDto.setPage((page - 1) * reportFeeMonthStatisticsPrepaymentDto.getRow());
        }
 
        List<ReportFeeMonthStatisticsPrepaymentDto> reportFeeMonthStatisticsPrepaymentDtos = BeanConvertUtil.covertBeanList(reportFeeMonthStatisticsPrepaymentServiceDaoImpl.queryAllPrepaymentDiscounts(BeanConvertUtil.beanCovertMap(reportFeeMonthStatisticsPrepaymentDto)), ReportFeeMonthStatisticsPrepaymentDto.class);
 
        return reportFeeMonthStatisticsPrepaymentDtos;
    }
 
    @Override
    public int queryReportFeeMonthStatisticsPrepaymentsCount(@RequestBody ReportFeeMonthStatisticsPrepaymentDto reportFeeMonthStatisticsPrepaymentDto) {
        return reportFeeMonthStatisticsPrepaymentServiceDaoImpl.queryReportFeeMonthStatisticsPrepaymentCount(BeanConvertUtil.beanCovertMap(reportFeeMonthStatisticsPrepaymentDto));
    }
 
    @Override
    public JSONObject queryPayFeeDetailPrepaymentCount(@RequestBody ReportFeeMonthStatisticsPrepaymentDto reportFeeMonthStatisticsPrepaymentDto) {
        Map info = reportFeeMonthStatisticsPrepaymentServiceDaoImpl.queryPayFeeDetailCount(BeanConvertUtil.beanCovertMap(reportFeeMonthStatisticsPrepaymentDto));
 
        return JSONObject.parseObject(JSONObject.toJSONString(info));
    }
 
    @Override
    public JSONObject queryReportCollectFeesCount(@RequestBody ReportFeeMonthStatisticsPrepaymentDto reportFeeMonthStatisticsPrepaymentDto) {
        Map info = reportFeeMonthStatisticsPrepaymentServiceDaoImpl.queryReportCollectFeesCount(BeanConvertUtil.beanCovertMap(reportFeeMonthStatisticsPrepaymentDto));
 
        return JSONObject.parseObject(JSONObject.toJSONString(info));
    }
 
    @Override
    public List<ReportFeeMonthStatisticsPrepaymentDto> queryPayFeeDetailPrepayment(@RequestBody ReportFeeMonthStatisticsPrepaymentDto reportFeeMonthStatisticsPrepaymentDto) {
        //校验是否传了 分页信息
 
        int page = reportFeeMonthStatisticsPrepaymentDto.getPage();
 
        if (page != PageDto.DEFAULT_PAGE) {
            reportFeeMonthStatisticsPrepaymentDto.setPage((page - 1) * reportFeeMonthStatisticsPrepaymentDto.getRow());
        }
 
        List<ReportFeeMonthStatisticsPrepaymentDto> reportFeeMonthStatisticsPrepayments = BeanConvertUtil.covertBeanList(reportFeeMonthStatisticsPrepaymentServiceDaoImpl.queryPayFeeDetail(BeanConvertUtil.beanCovertMap(reportFeeMonthStatisticsPrepaymentDto)), ReportFeeMonthStatisticsPrepaymentDto.class);
 
        return reportFeeMonthStatisticsPrepayments;
    }
 
    @Override
    public List<ReportFeeMonthStatisticsPrepaymentDto> queryNewPayFeeDetailPrepayment(@RequestBody ReportFeeMonthStatisticsPrepaymentDto reportFeeMonthStatisticsPrepaymentDto) {
        //校验是否传了 分页信息
 
        int page = reportFeeMonthStatisticsPrepaymentDto.getPage();
 
        if (page != PageDto.DEFAULT_PAGE) {
            reportFeeMonthStatisticsPrepaymentDto.setPage((page - 1) * reportFeeMonthStatisticsPrepaymentDto.getRow());
        }
 
        List<ReportFeeMonthStatisticsPrepaymentDto> reportFeeMonthStatisticsPrepayments = BeanConvertUtil.covertBeanList(reportFeeMonthStatisticsPrepaymentServiceDaoImpl.queryNewPayFeeDetail(BeanConvertUtil.beanCovertMap(reportFeeMonthStatisticsPrepaymentDto)), ReportFeeMonthStatisticsPrepaymentDto.class);
 
        return reportFeeMonthStatisticsPrepayments;
    }
 
    @Override
    public List<ReportFeeMonthStatisticsPrepaymentDto> queryAllPayFeeDetailPrepayment(@RequestBody ReportFeeMonthStatisticsPrepaymentDto reportFeeMonthStatisticsPrepaymentDto) {
        List<ReportFeeMonthStatisticsPrepaymentDto> reportFeeMonthStatisticsPrepayments = BeanConvertUtil.covertBeanList(
                reportFeeMonthStatisticsPrepaymentServiceDaoImpl.queryAllPayFeeDetail(BeanConvertUtil.beanCovertMap(reportFeeMonthStatisticsPrepaymentDto)),
                ReportFeeMonthStatisticsPrepaymentDto.class);
        return reportFeeMonthStatisticsPrepayments;
    }
 
    @Override
    public List<ReportFeeMonthStatisticsPrepaymentDto> queryPayFeeDetailPrepaymentSum(@RequestBody ReportFeeMonthStatisticsPrepaymentDto reportFeeMonthStatisticsPrepaymentDto) {
        List<ReportFeeMonthStatisticsPrepaymentDto> reportFeeMonthStatisticsPrepayments = BeanConvertUtil.covertBeanList(reportFeeMonthStatisticsPrepaymentServiceDaoImpl.queryPayFeeDetailSum(BeanConvertUtil.beanCovertMap(reportFeeMonthStatisticsPrepaymentDto)), ReportFeeMonthStatisticsPrepaymentDto.class);
        return reportFeeMonthStatisticsPrepayments;
    }
 
    @Override
    public List<FeeConfigDto> queryFeeConfigPrepayments(@RequestBody FeeConfigDto feeConfigDto) {
        List<FeeConfigDto> feeConfigs = BeanConvertUtil.covertBeanList(reportFeeMonthStatisticsPrepaymentServiceDaoImpl.getFeeConfigInfo(BeanConvertUtil.beanCovertMap(feeConfigDto)), FeeConfigDto.class);
        return feeConfigs;
    }
 
    @Override
    public List<OwnerDto> queryRoomAndParkingSpacePrepayment(@RequestBody OwnerDto ownerDto) {
        List<OwnerDto> deposits = BeanConvertUtil.covertBeanList(reportFeeMonthStatisticsPrepaymentServiceDaoImpl.queryRoomAndParkingSpace(BeanConvertUtil.beanCovertMap(ownerDto)),
                OwnerDto.class);
        return deposits;
    }
 
    public IReportFeeMonthStatisticsPrepaymentServiceDao getReportFeeMonthStatisticsPrepaymentServiceDaoImpl() {
        return reportFeeMonthStatisticsPrepaymentServiceDaoImpl;
    }
 
    public void setReportFeeMonthStatisticsPrepaymentServiceDaoImpl(IReportFeeMonthStatisticsPrepaymentServiceDao reportFeeMonthStatisticsPrepaymentServiceDaoImpl) {
        this.reportFeeMonthStatisticsPrepaymentServiceDaoImpl = reportFeeMonthStatisticsPrepaymentServiceDaoImpl;
    }
}