瀏覽代碼

优化bug

wuxw 3 年之前
父節點
當前提交
cd4271a294

+ 14 - 2
java110-db/src/main/resources/mapper/report/ReportFeeMonthStatisticsServiceDaoImplMapper.xml

@@ -2781,10 +2781,10 @@
             and rfms.obj_name= #{objName}
         </if>
         <if test="feeYear !=null and feeYear != ''">
-            and t.fee_year= #{feeYear}
+            and rfms.fee_year= #{feeYear}
         </if>
         <if test="feeMonth !=null and feeMonth != ''">
-            and t.fee_month= #{feeMonth}
+            and rfms.fee_month= #{feeMonth}
         </if>
         GROUP BY t.floor_num
         ) a,
@@ -2804,6 +2804,9 @@
         <if test="feeYear !=null and feeYear != ''">
             and curT.fee_year= #{feeYear}
         </if>
+        <if test="feeMonth !=null and feeMonth != ''">
+            and curT.fee_month= #{feeMonth}
+        </if>
         GROUP BY t.floor_num
         ) b
         where a.floorNum = b.floorNum
@@ -2833,6 +2836,12 @@
         <if test="objName !=null and objName != ''">
             and rfms.obj_name= #{objName}
         </if>
+        <if test="feeYear !=null and feeYear != ''">
+            and rfms.fee_year= #{feeYear}
+        </if>
+        <if test="feeMonth !=null and feeMonth != ''">
+            and rfms.fee_month= #{feeMonth}
+        </if>
         GROUP BY t.floor_num
         ) a,
         (select t.floor_num floorNum,SUM(curT.owe_amount) curOweAmount
@@ -2851,6 +2860,9 @@
         <if test="feeYear !=null and feeYear != ''">
             and curT.fee_year= #{feeYear}
         </if>
+        <if test="feeMonth !=null and feeMonth != ''">
+            and curT.fee_month= #{feeMonth}
+        </if>
         GROUP BY t.floor_num
         ) b
         where a.floorNum = b.floorNum