java110
2020-10-16 b737a7369f05b5a9b31423055f014f698cec4057
优化代码
4个文件已修改
232 ■■■■ 已修改文件
java110-bean/src/main/java/com/java110/dto/reportFeeMonthStatistics/ReportFeeMonthStatisticsDto.java 179 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
service-report/src/main/java/com/java110/report/api/ReportFeeMonthStatisticsApi.java 27 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
service-report/src/main/java/com/java110/report/bmo/reportFeeMonthStatistics/IGetReportFeeMonthStatisticsBMO.java 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
service-report/src/main/java/com/java110/report/bmo/reportFeeMonthStatistics/impl/GetReportFeeMonthStatisticsBMOImpl.java 18 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
java110-bean/src/main/java/com/java110/dto/reportFeeMonthStatistics/ReportFeeMonthStatisticsDto.java
@@ -1,6 +1,7 @@
package com.java110.dto.reportFeeMonthStatistics;
import com.java110.dto.PageDto;
import java.io.Serializable;
import java.util.Date;
@@ -15,21 +16,28 @@
public class ReportFeeMonthStatisticsDto extends PageDto implements Serializable {
    private String receivableAmount;
private String statisticsId;
private String updateTime;
private String remark;
private String objName;
private String receivedAmount;
private String feeYear;
private String feeMonth;
private String feeId;
private String configId;
private String objId;
private String feeName;
private String oweAmount;
private String communityId;
private String feeCreateTime;
private String objType;
    private String statisticsId;
    private String updateTime;
    private String remark;
    private String objName;
    private String receivedAmount;
    private String feeYear;
    private String feeMonth;
    private String feeId;
    private String configId;
    private String objId;
    private String feeName;
    private String oweAmount;
    private String communityId;
    private String feeCreateTime;
    private String objType;
    private String floorId;
    private String floorNum;
    private String unitId;
    private String unitNum;
    private String roomId;
    private String roomNum;
    private Date createTime;
@@ -40,97 +48,128 @@
    public String getReceivableAmount() {
        return receivableAmount;
    }
public void setReceivableAmount(String receivableAmount) {
    public void setReceivableAmount(String receivableAmount) {
        this.receivableAmount = receivableAmount;
    }
public String getStatisticsId() {
    public String getStatisticsId() {
        return statisticsId;
    }
public void setStatisticsId(String statisticsId) {
    public void setStatisticsId(String statisticsId) {
        this.statisticsId = statisticsId;
    }
public String getUpdateTime() {
    public String getUpdateTime() {
        return updateTime;
    }
public void setUpdateTime(String updateTime) {
    public void setUpdateTime(String updateTime) {
        this.updateTime = updateTime;
    }
public String getRemark() {
    public String getRemark() {
        return remark;
    }
public void setRemark(String remark) {
    public void setRemark(String remark) {
        this.remark = remark;
    }
public String getObjName() {
    public String getObjName() {
        return objName;
    }
public void setObjName(String objName) {
    public void setObjName(String objName) {
        this.objName = objName;
    }
public String getReceivedAmount() {
    public String getReceivedAmount() {
        return receivedAmount;
    }
public void setReceivedAmount(String receivedAmount) {
    public void setReceivedAmount(String receivedAmount) {
        this.receivedAmount = receivedAmount;
    }
public String getFeeYear() {
    public String getFeeYear() {
        return feeYear;
    }
public void setFeeYear(String feeYear) {
    public void setFeeYear(String feeYear) {
        this.feeYear = feeYear;
    }
public String getFeeMonth() {
    public String getFeeMonth() {
        return feeMonth;
    }
public void setFeeMonth(String feeMonth) {
    public void setFeeMonth(String feeMonth) {
        this.feeMonth = feeMonth;
    }
public String getFeeId() {
    public String getFeeId() {
        return feeId;
    }
public void setFeeId(String feeId) {
    public void setFeeId(String feeId) {
        this.feeId = feeId;
    }
public String getConfigId() {
    public String getConfigId() {
        return configId;
    }
public void setConfigId(String configId) {
    public void setConfigId(String configId) {
        this.configId = configId;
    }
public String getObjId() {
    public String getObjId() {
        return objId;
    }
public void setObjId(String objId) {
    public void setObjId(String objId) {
        this.objId = objId;
    }
public String getFeeName() {
    public String getFeeName() {
        return feeName;
    }
public void setFeeName(String feeName) {
    public void setFeeName(String feeName) {
        this.feeName = feeName;
    }
public String getOweAmount() {
    public String getOweAmount() {
        return oweAmount;
    }
public void setOweAmount(String oweAmount) {
    public void setOweAmount(String oweAmount) {
        this.oweAmount = oweAmount;
    }
public String getCommunityId() {
    public String getCommunityId() {
        return communityId;
    }
public void setCommunityId(String communityId) {
    public void setCommunityId(String communityId) {
        this.communityId = communityId;
    }
public String getFeeCreateTime() {
    public String getFeeCreateTime() {
        return feeCreateTime;
    }
public void setFeeCreateTime(String feeCreateTime) {
    public void setFeeCreateTime(String feeCreateTime) {
        this.feeCreateTime = feeCreateTime;
    }
public String getObjType() {
    public String getObjType() {
        return objType;
    }
public void setObjType(String objType) {
    public void setObjType(String objType) {
        this.objType = objType;
    }
@@ -150,4 +189,52 @@
    public void setStatusCd(String statusCd) {
        this.statusCd = statusCd;
    }
    public String getFloorId() {
        return floorId;
    }
    public void setFloorId(String floorId) {
        this.floorId = floorId;
    }
    public String getFloorNum() {
        return floorNum;
    }
    public void setFloorNum(String floorNum) {
        this.floorNum = floorNum;
    }
    public String getUnitId() {
        return unitId;
    }
    public void setUnitId(String unitId) {
        this.unitId = unitId;
    }
    public String getUnitNum() {
        return unitNum;
    }
    public void setUnitNum(String unitNum) {
        this.unitNum = unitNum;
    }
    public String getRoomId() {
        return roomId;
    }
    public void setRoomId(String roomId) {
        this.roomId = roomId;
    }
    public String getRoomNum() {
        return roomNum;
    }
    public void setRoomNum(String roomNum) {
        this.roomNum = roomNum;
    }
}
service-report/src/main/java/com/java110/report/api/ReportFeeMonthStatisticsApi.java
@@ -102,4 +102,31 @@
        reportFeeMonthStatisticsDto.setCommunityId(communityId);
        return getReportFeeMonthStatisticsBMOImpl.get(reportFeeMonthStatisticsDto);
    }
    /**
     * 微信删除消息模板
     *
     * @param communityId 小区ID
     * @return
     * @serviceCode /reportFeeMonthStatistics/queryReportFeeMonthStatistics
     * @path /app/reportFeeMonthStatistics/queryReportFeeMonthStatistics
     */
    @RequestMapping(value = "/queryReportFeeSummary", method = RequestMethod.GET)
    public ResponseEntity<String> queryReportFeeSummary(@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 = "page") int page,
                                                        @RequestParam(value = "row") int row) {
        ReportFeeMonthStatisticsDto reportFeeMonthStatisticsDto = new ReportFeeMonthStatisticsDto();
        reportFeeMonthStatisticsDto.setPage(page);
        reportFeeMonthStatisticsDto.setRow(row);
        reportFeeMonthStatisticsDto.setCommunityId(communityId);
        reportFeeMonthStatisticsDto.setFloorId(floorId);
        reportFeeMonthStatisticsDto.setFloorNum(floorNum);
        return getReportFeeMonthStatisticsBMOImpl.queryReportFeeSummary(reportFeeMonthStatisticsDto);
    }
}
service-report/src/main/java/com/java110/report/bmo/reportFeeMonthStatistics/IGetReportFeeMonthStatisticsBMO.java
@@ -12,5 +12,13 @@
     */
    ResponseEntity<String> get(ReportFeeMonthStatisticsDto reportFeeMonthStatisticsDto);
    /**
     * 查询费用月统计
     * add by wuxw
     * @param  reportFeeMonthStatisticsDto
     * @return
     */
    ResponseEntity<String> queryReportFeeSummary(ReportFeeMonthStatisticsDto reportFeeMonthStatisticsDto);
}
service-report/src/main/java/com/java110/report/bmo/reportFeeMonthStatistics/impl/GetReportFeeMonthStatisticsBMOImpl.java
@@ -46,4 +46,22 @@
        return responseEntity;
    }
    @Override
    public ResponseEntity<String> queryReportFeeSummary(ReportFeeMonthStatisticsDto reportFeeMonthStatisticsDto) {
        int count = reportFeeMonthStatisticsInnerServiceSMOImpl.queryReportFeeMonthStatisticssCount(reportFeeMonthStatisticsDto);
        List<ReportFeeMonthStatisticsDto> reportFeeMonthStatisticsDtos = null;
        if (count > 0) {
            reportFeeMonthStatisticsDtos = reportFeeMonthStatisticsInnerServiceSMOImpl.queryReportFeeMonthStatisticss(reportFeeMonthStatisticsDto);
        } else {
            reportFeeMonthStatisticsDtos = new ArrayList<>();
        }
        ResultVo resultVo = new ResultVo((int) Math.ceil((double) count / (double) reportFeeMonthStatisticsDto.getRow()), count, reportFeeMonthStatisticsDtos);
        ResponseEntity<String> responseEntity = new ResponseEntity<String>(resultVo.toString(), HttpStatus.OK);
        return responseEntity;
    }
}