From ad398697078b9c341e41d42e88aba82418807e95 Mon Sep 17 00:00:00 2001
From: java110 <928255095@qq.com>
Date: 星期三, 16 六月 2021 08:42:42 +0800
Subject: [PATCH] 优化月缴费明细

---
 service-report/src/main/java/com/java110/report/api/ReportFeeMonthStatisticsApi.java |   51 +++++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 51 insertions(+), 0 deletions(-)

diff --git a/service-report/src/main/java/com/java110/report/api/ReportFeeMonthStatisticsApi.java b/service-report/src/main/java/com/java110/report/api/ReportFeeMonthStatisticsApi.java
old mode 100644
new mode 100755
index 7ea3bbe..93b8522
--- a/service-report/src/main/java/com/java110/report/api/ReportFeeMonthStatisticsApi.java
+++ b/service-report/src/main/java/com/java110/report/api/ReportFeeMonthStatisticsApi.java
@@ -1,6 +1,7 @@
 package com.java110.report.api;
 
 import com.alibaba.fastjson.JSONObject;
+import com.java110.dto.RoomDto;
 import com.java110.dto.repair.RepairUserDto;
 import com.java110.dto.reportFeeMonthStatistics.ReportFeeMonthStatisticsDto;
 import com.java110.po.reportFeeMonthStatistics.ReportFeeMonthStatisticsPo;
@@ -492,4 +493,54 @@
         return getReportFeeMonthStatisticsBMOImpl.queryOwePaymentCount(reportFeeMonthStatisticsDto);
     }
 
+
+    /**
+     * 鏌ヨ璐圭敤鍒嗛」琛�
+     *
+     * @param communityId 灏忓尯ID
+     * @return
+     * @serviceCode /reportFeeMonthStatistics/queryReportProficient
+     * @path /app/reportFeeMonthStatistics/queryReportProficient
+     */
+    @RequestMapping(value = "/queryReportProficient", method = RequestMethod.GET)
+    public ResponseEntity<String> queryReportProficient(@RequestParam(value = "communityId") String communityId) {
+        ReportFeeMonthStatisticsDto reportFeeMonthStatisticsDto = new ReportFeeMonthStatisticsDto();
+        reportFeeMonthStatisticsDto.setCommunityId(communityId);
+        return getReportFeeMonthStatisticsBMOImpl.queryReportProficientCount(reportFeeMonthStatisticsDto);
+    }
+
+    /**
+     * 鏌ヨ鏈敹璐规埧灞�
+     * select t.* from building_room t
+     * inner join building_unit bu on t.unit_id  = bu.unit_id and bu.status_cd = '0'
+     * inner join f_floor f on bu.floor_id = f.floor_id and f.status_cd = '0'
+     * where t.status_cd = '0'
+     * and not exists(
+     * 	select 1 from pay_fee pf where t.room_id = pf.payer_obj_id and pf.status_cd = '0' and pf.state = '2008001'
+     * )
+     *
+     * limit 10
+     */
+
+    /**
+     * 鏌ヨ璐圭敤鍒嗛」琛�
+     *
+     * @param communityId 灏忓尯ID
+     * @return
+     * @serviceCode /reportFeeMonthStatistics/queryNoFeeRooms
+     * @path /app/reportFeeMonthStatistics/queryNoFeeRooms
+     */
+    @RequestMapping(value = "/queryNoFeeRooms", method = RequestMethod.GET)
+    public ResponseEntity<String> queryNoFeeRooms(
+            @RequestParam(value = "communityId") String communityId,
+            @RequestParam(value = "page") int page,
+            @RequestParam(value = "row") int row
+            ) {
+        RoomDto roomDto = new RoomDto();
+        roomDto.setCommunityId(communityId);
+        roomDto.setPage(page);
+        roomDto.setRow(row);
+        return getReportFeeMonthStatisticsBMOImpl.queryNoFeeRooms(roomDto);
+    }
+
 }

--
Gitblit v1.8.0