mitao
2025-04-03 ac79f760b21529694f4257d508c989beb7a31194
bug修改
1个文件已修改
5 ■■■■■ 已修改文件
ruoyi-system/src/main/resources/mapper/system/TBillMapper.xml 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ruoyi-system/src/main/resources/mapper/system/TBillMapper.xml
@@ -210,10 +210,9 @@
        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
                LEFT JOIN t_contract tc ON tc.house_id = th.id AND tc.pay_type = 2
                LEFT JOIN t_bill tb ON tc.id = tb.contract_id AND tb.pay_fees_status != 5
            <where>
               tc.pay_type = 2 AND tb.pay_fees_status != 5
                <if test="businessDeptId != 0">
                    AND th.business_dept_id = #{businessDeptId}
                </if>