ruoyi-system/src/main/resources/mapper/system/TBillMapper.xml
@@ -204,6 +204,11 @@ 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 <where> <if test="businessDeptId != 0"> AND th.business_dept_id = #{businessDeptId} </if> </where> GROUP BY ts.id ORDER BY rentAmount DESC </select>