java110
2021-10-19 b278a4b743d0cf45fd0b42bc78ff42f4e1124baf
java110-db/src/main/resources/mapper/report/ReportOweFeeServiceDaoImplMapper.xml
@@ -17,7 +17,9 @@
    <select id="getReportOweFeeInfo" parameterType="Map" resultType="Map">
        select distinct(t.payer_obj_id) payerObjId
        from report_owe_fee t
        LEFT JOIN pay_fee pf on t.fee_id = pf.fee_id
        where 1 =1
        and pf.status_cd = '0'
        <if test="configName !=null and configName != ''">
            and t.config_name= #{configName}
        </if>
@@ -30,7 +32,6 @@
        <if test="updateTime !=null and updateTime != ''">
            and t.update_time= #{updateTime}
        </if>
        <if test="oweId !=null and oweId != ''">
            and t.owe_id= #{oweId}
        </if>
@@ -42,6 +43,9 @@
        </if>
        <if test="amountOwed !=null and amountOwed != ''">
            and t.amount_owed= #{amountOwed}
        </if>
        <if test='hasOweFee !=null and hasOweFee == "Y"'>
            and t.amount_owed &gt; 0
        </if>
        <if test="payerObjName !=null and payerObjName != ''">
            and t.payer_obj_name= #{payerObjName}
@@ -157,7 +161,9 @@
    <select id="queryReportOweFeesCount" parameterType="Map" resultType="Map">
        select count(distinct(t.payer_obj_id)) count
        from report_owe_fee t
        LEFT JOIN pay_fee pf on t.fee_id = pf.fee_id
        where 1 =1
        and pf.status_cd = '0'
        <if test="configName !=null and configName != ''">
            and t.config_name= #{configName}
        </if>
@@ -181,6 +187,9 @@
        </if>
        <if test="amountOwed !=null and amountOwed != ''">
            and t.amount_owed= #{amountOwed}
        </if>
        <if test='hasOweFee !=null and hasOweFee == "Y"'>
            and t.amount_owed &gt; 0
        </if>
        <if test="payerObjName !=null and payerObjName != ''">
            and t.payer_obj_name= #{payerObjName}
@@ -224,7 +233,9 @@
        communityId,t.payer_obj_type,t.payer_obj_type payerObjType,t.payer_obj_id,t.payer_obj_id payerObjId,
        t.owner_id,t.owner_id ownerId,t.owner_name,t.owner_name ownerName
        from report_owe_fee t
        where 1 = 1
        LEFT JOIN pay_fee pf on t.fee_id = pf.fee_id
        where 1 =1
        and pf.status_cd = '0'
        <if test="configName !=null and configName != ''">
            and t.config_name= #{configName}
        </if>
@@ -258,6 +269,9 @@
        </if>
        <if test="configId !=null and configId != ''">
            and t.config_id= #{configId}
        </if>
        <if test='hasOweFee !=null and hasOweFee == "Y"'>
            and t.amount_owed &gt; 0
        </if>
        <if test="configIds !=null">
            and t.config_id in
@@ -304,7 +318,9 @@
        from report_owe_fee t
        left join building_owner_room_rel borr on borr.room_id = t.payer_obj_id and borr.status_cd = '0'
        left join building_owner bo on borr.owner_id = bo.owner_id and bo.owner_type_cd = '1001' and bo.status_cd = '0'
        where 1 = 1
        LEFT JOIN pay_fee pf on t.fee_id = pf.fee_id
        where 1 =1
        and pf.status_cd = '0'
        <if test="configName !=null and configName != ''">
            and t.config_name= #{configName}
        </if>
@@ -337,6 +353,9 @@
        </if>
        <if test="configId !=null and configId != ''">
            and t.config_id= #{configId}
        </if>
        <if test='hasOweFee !=null and hasOweFee == "Y"'>
            and t.amount_owed &gt; 0
        </if>
        <if test="configIds !=null">
            and t.config_id in
@@ -383,7 +402,9 @@
        from report_owe_fee t
        left join owner_car oc on oc.car_id = t.payer_obj_id and oc.status_cd = '0'
        left join building_owner bo on oc.owner_id = bo.owner_id and bo.owner_type_cd = '1001' and bo.status_cd = '0'
        where 1 = 1
        LEFT JOIN pay_fee pf on t.fee_id = pf.fee_id
        where 1 =1
        and pf.status_cd = '0'
        <if test="configName !=null and configName != ''">
            and t.config_name= #{configName}
        </if>
@@ -417,6 +438,9 @@
        <if test="configId !=null and configId != ''">
            and t.config_id= #{configId}
        </if>
        <if test='hasOweFee !=null and hasOweFee == "Y"'>
            and t.amount_owed &gt; 0
        </if>
        <if test="configIds !=null">
            and t.config_id in
            <foreach collection="configIds" item="item" index="index" open="(" close=")" separator=",">