wuxw
2022-05-10 b2b5bdf6f42597e582da96aa56707e1f68d3936e
java110-db/src/main/resources/mapper/report/ReportFeeMonthStatisticsServiceDaoImplMapper.xml
@@ -692,7 +692,7 @@
            and pfc.start_time <= #{endTime}
        </if>
        <if test="yearMonth !=null and yearMonth != ''">
            and concat(t.fee_year,t.fee_month) = #{yearMonth}
            and concat(t.fee_year,lpad(t.fee_month,2,0)) = #{yearMonth}
        </if>
        group by t.config_id,t.fee_name,pfc.start_time
@@ -762,7 +762,7 @@
            and pfc.start_time &lt;= #{endTime}
        </if>
        <if test="yearMonth !=null and yearMonth != ''">
            and concat(t.fee_year,t.fee_month) = #{yearMonth}
            and concat(t.fee_year,lpad(t.fee_month,2,0)) = #{yearMonth}
        </if>
        group by t.config_id,t.fee_name,pfc.start_time
        order by t.create_time desc
@@ -831,7 +831,7 @@
            and pfc.start_time &lt;= #{endTime}
        </if>
        <if test="yearMonth !=null and yearMonth != ''">
            and concat(t.fee_year,t.fee_month) = #{yearMonth}
            and concat(t.fee_year,lpad(t.fee_month,2,0)) = #{yearMonth}
        </if>
        order by t.create_time desc
    </select>
@@ -948,6 +948,7 @@
            and t.create_time &lt;= #{endTime}
        </if>
        group by t.config_id,t.fee_name,t.fee_create_time,t.obj_id,t.obj_name,pfa.`value`,br.built_up_area
        order by pfa.`value`
        <if test="page != -1 and page != null ">
            limit #{page}, #{row}
        </if>
@@ -1108,6 +1109,7 @@
        </if>
        group by t.fee_name,t.payer_obj_id,t.payer_obj_name,pfa.`value`,br.built_up_area
        HAVING oweAmount > 0
        order by pfa.`value`
        <if test="page != -1 and page != null ">
            limit #{page}, #{row}
        </if>
@@ -1941,7 +1943,7 @@
        select 1 from pay_fee pf where t.room_id = pf.payer_obj_id and pf.status_cd = '0' and pf.state = '2008001'
        )
        and t.community_id = #{communityId}
        order by t.create_time desc
        order by bo.name
        <if test="page != -1 and page != null ">
            limit #{page}, #{row}
        </if>
@@ -2569,13 +2571,13 @@
        and t.create_time &lt; #{endTime}
        and t.fee_id = #{feeId}
        <if test="flag == 1">
            and concat(t.detail_year,t.detail_month) = #{yearMonth}
            and concat(t.detail_year,lpad(t.detail_month,2,0)) = #{yearMonth}
        </if>
        <if test="flag == 2">
            and concat(t.detail_year,t.detail_month) &lt; #{yearMonth}
            and concat(t.detail_year,lpad(t.detail_month,2,0)) &lt; #{yearMonth}
        </if>
        <if test="flag == 3">
            and concat(t.detail_year,t.detail_month) &gt; #{yearMonth}
            and concat(t.detail_year,lpad(t.detail_month,2,0)) &gt; #{yearMonth}
        </if>
        <if test="communityId !=null and communityId != ''">
            and t.community_id= #{communityId}