Browse Source

优化代码

Your Name 2 years ago
parent
commit
72d62bdede

+ 3 - 0
java110-db/src/main/resources/mapper/report/ReportFeeStatisticsServiceDaoImplMapper.xml

@@ -1297,6 +1297,7 @@
         and t.cur_month_time < #{endDate}
         and t.cur_month_time < #{endDate}
         and t.detail_id = '-1'
         and t.detail_id = '-1'
         and t.community_id = #{communityId}
         and t.community_id = #{communityId}
+        and t.receivable_amount > 0
         <if test="feeTypeCd != null and feeTypeCd != ''">
         <if test="feeTypeCd != null and feeTypeCd != ''">
             and pf.fee_type_cd = #{feeTypeCd}
             and pf.fee_type_cd = #{feeTypeCd}
         </if>
         </if>
@@ -1327,6 +1328,7 @@
         and t.cur_month_time &gt;= #{startDate}
         and t.cur_month_time &gt;= #{startDate}
         and t.cur_month_time &lt; #{endDate}
         and t.cur_month_time &lt; #{endDate}
         and t.detail_id = '-1'
         and t.detail_id = '-1'
+        and t.receivable_amount &gt; 0
         and t.community_id = #{communityId}
         and t.community_id = #{communityId}
         <if test="feeTypeCd != null and feeTypeCd != ''">
         <if test="feeTypeCd != null and feeTypeCd != ''">
             and pf.fee_type_cd = #{feeTypeCd}
             and pf.fee_type_cd = #{feeTypeCd}
@@ -1361,6 +1363,7 @@
         and t.cur_month_time &lt; #{endDate}
         and t.cur_month_time &lt; #{endDate}
         and t.detail_id = '-1'
         and t.detail_id = '-1'
         and t.community_id = #{communityId}
         and t.community_id = #{communityId}
+        and t.receivable_amount &gt; 0
         <if test="feeTypeCd != null and feeTypeCd != ''">
         <if test="feeTypeCd != null and feeTypeCd != ''">
             and pf.fee_type_cd = #{feeTypeCd}
             and pf.fee_type_cd = #{feeTypeCd}
         </if>
         </if>