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
package com.java110.report.api;
 
import com.java110.dto.ReportFeeMonthStatisticsPrepaymentDto.ReportFeeMonthStatisticsPrepaymentDto;
import com.java110.report.bmo.reportFeeMonthStatisticsPrepayment.IGetReportFeeMonthStatisticsPrepaymentBMO;
import com.java110.utils.util.StringUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
 
@RestController
@RequestMapping(value = "/reportFeeMonthStatisticsPrepayment")
public class ReportFeeMonthStatisticsPrepaymentApi {
 
    @Autowired
    private IGetReportFeeMonthStatisticsPrepaymentBMO getReportFeeMonthStatisticsPrepaymentBMOImpl;
 
    /**
     * 账单明细表
     *
     * @param communityId 小区ID
     * @return
     * @serviceCode /reportFeeMonthStatisticsPrepayment/queryPayFeePrepaymentDetail
     * @path /app/reportFeeMonthStatisticsPrepayment/queryPayFeePrepaymentDetail
     */
    @RequestMapping(value = "/queryPayFeePrepaymentDetail", method = RequestMethod.GET)
    public ResponseEntity<String> queryPayFeeDetail(@RequestParam(value = "communityId") String communityId,
                                                    @RequestParam(value = "floorId", required = false) String floorId,
                                                    @RequestParam(value = "floorNum", required = false) String floorNum,
                                                    @RequestParam(value = "unitNum", required = false) String unitNum,
                                                    @RequestParam(value = "unitId", required = false) String unitId,
                                                    @RequestParam(value = "roomId", required = false) String roomId,
                                                    @RequestParam(value = "roomNum", required = false) String roomNum,
                                                    @RequestParam(value = "primeRate", required = false) String primeRate,
                                                    @RequestParam(value = "state", required = false) String state,
                                                    @RequestParam(value = "prepaymentState", required = false) String prepaymentState,
                                                    @RequestParam(value = "billState", required = false) String billState,
                                                    @RequestParam(value = "feeTypeCd", required = false) String feeTypeCd,
                                                    @RequestParam(value = "configId", required = false) String configId,
                                                    @RequestParam(value = "startTime", required = false) String startTime,
                                                    @RequestParam(value = "endTime", required = false) String endTime,
                                                    @RequestParam(value = "startBeginTime", required = false) String startBeginTime,
                                                    @RequestParam(value = "startFinishTime", required = false) String startFinishTime,
                                                    @RequestParam(value = "endBeginTime", required = false) String endBeginTime,
                                                    @RequestParam(value = "endFinishTime", required = false) String endFinishTime,
                                                    @RequestParam(value = "objId", required = false) String objId,
                                                    @RequestParam(value = "roomName", required = false) String roomName,
                                                    @RequestParam(value = "page") int page,
                                                    @RequestParam(value = "row") int row) {
        ReportFeeMonthStatisticsPrepaymentDto reportFeeMonthStatisticsPrepaymentDto = new ReportFeeMonthStatisticsPrepaymentDto();
        reportFeeMonthStatisticsPrepaymentDto.setPage(page);
        reportFeeMonthStatisticsPrepaymentDto.setRow(row);
        reportFeeMonthStatisticsPrepaymentDto.setCommunityId(communityId);
        reportFeeMonthStatisticsPrepaymentDto.setFloorId(floorId);
        reportFeeMonthStatisticsPrepaymentDto.setFloorNum(floorNum);
        reportFeeMonthStatisticsPrepaymentDto.setUnitId(unitId);
        reportFeeMonthStatisticsPrepaymentDto.setUnitNum(unitNum);
        reportFeeMonthStatisticsPrepaymentDto.setRoomId(roomId);
        reportFeeMonthStatisticsPrepaymentDto.setRoomNum(roomNum);
        reportFeeMonthStatisticsPrepaymentDto.setPrimeRate(primeRate);
        reportFeeMonthStatisticsPrepaymentDto.setState(state);
        reportFeeMonthStatisticsPrepaymentDto.setPrepaymentState(prepaymentState);
        reportFeeMonthStatisticsPrepaymentDto.setbillState(billState);
        reportFeeMonthStatisticsPrepaymentDto.setFeeTypeCd(feeTypeCd);
        reportFeeMonthStatisticsPrepaymentDto.setConfigId(configId);
        reportFeeMonthStatisticsPrepaymentDto.setStartTime(startTime);
        reportFeeMonthStatisticsPrepaymentDto.setEndTime(endTime);
        reportFeeMonthStatisticsPrepaymentDto.setStartBeginTime(startBeginTime);
        reportFeeMonthStatisticsPrepaymentDto.setStartFinishTime(startFinishTime);
        reportFeeMonthStatisticsPrepaymentDto.setEndBeginTime(endBeginTime);
        reportFeeMonthStatisticsPrepaymentDto.setEndFinishTime(endFinishTime);
        reportFeeMonthStatisticsPrepaymentDto.setObjId(objId);
        if (!StringUtil.isEmpty(roomName)) {
            String[] roomNameArray = roomName.split("-", 3);
            reportFeeMonthStatisticsPrepaymentDto.setFloorNum(roomNameArray[0]);
            reportFeeMonthStatisticsPrepaymentDto.setUnitNum(roomNameArray[1]);
            reportFeeMonthStatisticsPrepaymentDto.setRoomNum(roomNameArray[2]);
        }
        return getReportFeeMonthStatisticsPrepaymentBMOImpl.queryPayFeeDetail(reportFeeMonthStatisticsPrepaymentDto);
    }
 
    /**
     * 收费状况表
     *
     * @param communityId 小区ID
     * @return
     * @serviceCode /reportFeeMonthStatisticsPrepayment/queryReportCollectFees
     * @path /app/reportFeeMonthStatisticsPrepayment/queryReportCollectFees
     */
    @RequestMapping(value = "/queryReportCollectFees", method = RequestMethod.GET)
    public ResponseEntity<String> queryReportCollectFees(@RequestParam(value = "communityId") String communityId,
                                                         @RequestParam(value = "floorId", required = false) String floorId,
                                                         @RequestParam(value = "floorNum", required = false) String floorNum,
                                                         @RequestParam(value = "unitNum", required = false) String unitNum,
                                                         @RequestParam(value = "unitId", required = false) String unitId,
                                                         @RequestParam(value = "roomId", required = false) String roomId,
                                                         @RequestParam(value = "roomNum", required = false) String roomNum,
                                                         @RequestParam(value = "primeRate", required = false) String primeRate,
                                                         @RequestParam(value = "state", required = false) String state,
                                                         @RequestParam(value = "prepaymentState", required = false) String prepaymentState,
                                                         @RequestParam(value = "billState", required = false) String billState,
                                                         @RequestParam(value = "feeTypeCd", required = false) String feeTypeCd,
                                                         @RequestParam(value = "configId", required = false) String configId,
                                                         @RequestParam(value = "startTime", required = false) String startTime,
                                                         @RequestParam(value = "endTime", required = false) String endTime,
                                                         @RequestParam(value = "startBeginTime", required = false) String startBeginTime,
                                                         @RequestParam(value = "startFinishTime", required = false) String startFinishTime,
                                                         @RequestParam(value = "endBeginTime", required = false) String endBeginTime,
                                                         @RequestParam(value = "endFinishTime", required = false) String endFinishTime,
                                                         @RequestParam(value = "objId", required = false) String objId,
                                                         @RequestParam(value = "roomName", required = false) String roomName,
                                                         @RequestParam(value = "page") int page,
                                                         @RequestParam(value = "row") int row) {
        ReportFeeMonthStatisticsPrepaymentDto reportFeeMonthStatisticsPrepaymentDto = new ReportFeeMonthStatisticsPrepaymentDto();
        reportFeeMonthStatisticsPrepaymentDto.setPage(page);
        reportFeeMonthStatisticsPrepaymentDto.setRow(row);
        reportFeeMonthStatisticsPrepaymentDto.setCommunityId(communityId);
        reportFeeMonthStatisticsPrepaymentDto.setFloorId(floorId);
        reportFeeMonthStatisticsPrepaymentDto.setFloorNum(floorNum);
        reportFeeMonthStatisticsPrepaymentDto.setUnitId(unitId);
        reportFeeMonthStatisticsPrepaymentDto.setUnitNum(unitNum);
        reportFeeMonthStatisticsPrepaymentDto.setRoomId(roomId);
        reportFeeMonthStatisticsPrepaymentDto.setRoomNum(roomNum);
        reportFeeMonthStatisticsPrepaymentDto.setPrimeRate(primeRate);
        reportFeeMonthStatisticsPrepaymentDto.setState(state);
        reportFeeMonthStatisticsPrepaymentDto.setPrepaymentState(prepaymentState);
        reportFeeMonthStatisticsPrepaymentDto.setbillState(billState);
        reportFeeMonthStatisticsPrepaymentDto.setFeeTypeCd(feeTypeCd);
        reportFeeMonthStatisticsPrepaymentDto.setConfigId(configId);
        reportFeeMonthStatisticsPrepaymentDto.setStartTime(startTime);
        reportFeeMonthStatisticsPrepaymentDto.setEndTime(endTime);
        reportFeeMonthStatisticsPrepaymentDto.setStartBeginTime(startBeginTime);
        reportFeeMonthStatisticsPrepaymentDto.setStartFinishTime(startFinishTime);
        reportFeeMonthStatisticsPrepaymentDto.setEndBeginTime(endBeginTime);
        reportFeeMonthStatisticsPrepaymentDto.setEndFinishTime(endFinishTime);
        reportFeeMonthStatisticsPrepaymentDto.setObjId(objId);
        if (!StringUtil.isEmpty(roomName)) {
            String[] roomNameArray = roomName.split("-", 3);
            reportFeeMonthStatisticsPrepaymentDto.setFloorNum(roomNameArray[0]);
            reportFeeMonthStatisticsPrepaymentDto.setUnitNum(roomNameArray[1]);
            reportFeeMonthStatisticsPrepaymentDto.setRoomNum(roomNameArray[2]);
        }
        return getReportFeeMonthStatisticsPrepaymentBMOImpl.queryReportCollectFees(reportFeeMonthStatisticsPrepaymentDto);
    }
 
}