ruoyi-system/src/main/resources/mapper/system/TBillMapper.xml
@@ -186,4 +186,15 @@ AND b.bill_type = 3 </where> </select> <select id="getStreetRentRank" resultType="com.ruoyi.system.vo.ScreenRentRankVO"> SELECT ts.street_name,ROUND(COALESCE(SUM(tb.pay_fees_money),0) /10000,2) AS rentAmount FROM t_street ts LEFT JOIN t_house th ON ts.id = th.street_id LEFT JOIN t_contract tc ON tc.house_id = th.id LEFT JOIN t_bill tb ON tc.id = tb.contract_id GROUP BY ts.id ORDER BY rentAmount DESC </select> </mapper>